förenklat träningsdelen
This commit is contained in:
1 parent
4a74785791
commit
40d0c3fa90
8 files changed
+243
-94
No files matched your search
@@ -224,20 +224,22 @@ function renderProfile(data) {
|
||||
</section>
|
||||
</div>
|
||||
|
||||
<section class="profile-card" style="margin-top:14px">
|
||||
<div class="profile-card-head"><h2>${escapeHtml(t("goals"))}</h2></div>
|
||||
<div class="profile-card-body profile-goals">${goalMarkup}</div>
|
||||
</section>
|
||||
${goals.length ? `
|
||||
<section class="profile-card" style="margin-top:14px">
|
||||
<div class="profile-card-head"><h2>${escapeHtml(t("goals"))}</h2></div>
|
||||
<div class="profile-card-body profile-goals">${goalMarkup}</div>
|
||||
</section>
|
||||
` : ""}
|
||||
|
||||
<section class="profile-card" style="margin-top:14px">
|
||||
<div class="profile-card-head"><h2>${escapeHtml(t("history"))}</h2></div>
|
||||
<details class="profile-card profile-disclosure" style="margin-top:14px">
|
||||
<summary class="profile-card-head"><h2>${escapeHtml(t("history"))}</h2><span>+</span></summary>
|
||||
<div class="profile-history-wrap">
|
||||
<table class="profile-history">
|
||||
<thead><tr><th>${escapeHtml(t("date"))}</th><th>${escapeHtml(t("dayLaps"))}</th><th>${escapeHtml(t("best"))}</th><th>${escapeHtml(t("average"))}</th></tr></thead>
|
||||
<tbody>${historyRows}</tbody>
|
||||
</table>
|
||||
</div>
|
||||
</section>
|
||||
</details>
|
||||
`;
|
||||
bindTimerControls();
|
||||
updateTimerDisplay();
|
||||
|
||||
Reference in new issue
Block a user