Compare commits
2 Commits
| Author | SHA1 | Date | |
|---|---|---|---|
| 8f809b5f14 | |||
| edfe75e14f |
@@ -1216,10 +1216,6 @@
|
|||||||
const ageText = formatAge(cfg.birthday);
|
const ageText = formatAge(cfg.birthday);
|
||||||
ageEl.textContent = ageText;
|
ageEl.textContent = ageText;
|
||||||
ageEl.hidden = !ageText;
|
ageEl.hidden = !ageText;
|
||||||
// Use the puppy's name in the sleep-timeline heading rather than assuming a
|
|
||||||
// gender; fall back to a neutral phrase when no name is configured.
|
|
||||||
const sleepTitle = document.getElementById("sleep-timeline-title");
|
|
||||||
if (sleepTitle) sleepTitle.textContent = cfg.name ? `When ${cfg.name} sleeps` : "When sleeping";
|
|
||||||
}
|
}
|
||||||
|
|
||||||
function render() {
|
function render() {
|
||||||
|
|||||||
+1
-1
@@ -172,7 +172,7 @@
|
|||||||
</section>
|
</section>
|
||||||
|
|
||||||
<section class="patterns" data-panel="sleep-timeline">
|
<section class="patterns" data-panel="sleep-timeline">
|
||||||
<h2><span id="sleep-timeline-title">When sleeping</span> <span class="muted-note">(last 14 days)</span></h2>
|
<h2>When he sleeps <span class="muted-note">(last 14 days)</span></h2>
|
||||||
<svg id="chart-sleep-timeline" class="chart-svg" viewBox="0 0 320 228" role="img" aria-label="Sleep periods per day over the last 14 days"></svg>
|
<svg id="chart-sleep-timeline" class="chart-svg" viewBox="0 0 320 228" role="img" aria-label="Sleep periods per day over the last 14 days"></svg>
|
||||||
<p class="muted-note">Each row is a day, midnight to midnight; shaded = asleep. Tap a row to open that day.</p>
|
<p class="muted-note">Each row is a day, midnight to midnight; shaded = asleep. Tap a row to open that day.</p>
|
||||||
</section>
|
</section>
|
||||||
|
|||||||
Reference in New Issue
Block a user