diff options
author | crupest <crupest@outlook.com> | 2022-11-27 15:56:55 +0800 |
---|---|---|
committer | crupest <crupest@outlook.com> | 2022-11-27 15:56:55 +0800 |
commit | 2e139d629bcd62d0f33e905eedda8ea757e626e0 (patch) | |
tree | 25513975d75a038fc6605e39f8490b6ed97bc61a /docker/crupest-nginx/sites/www/src/main.js | |
parent | 4fa1f65c5d099971e94f7f5af4c710fe297d9285 (diff) | |
download | crupest-2e139d629bcd62d0f33e905eedda8ea757e626e0.tar.gz crupest-2e139d629bcd62d0f33e905eedda8ea757e626e0.tar.bz2 crupest-2e139d629bcd62d0f33e905eedda8ea757e626e0.zip |
Add ; between status and title.
Diffstat (limited to 'docker/crupest-nginx/sites/www/src/main.js')
-rw-r--r-- | docker/crupest-nginx/sites/www/src/main.js | 13 |
1 files changed, 8 insertions, 5 deletions
diff --git a/docker/crupest-nginx/sites/www/src/main.js b/docker/crupest-nginx/sites/www/src/main.js index 13a85c3..fd09605 100644 --- a/docker/crupest-nginx/sites/www/src/main.js +++ b/docker/crupest-nginx/sites/www/src/main.js @@ -34,11 +34,14 @@ document.addEventListener("DOMContentLoaded", async () => { body.forEach((item) => { const { status, title, color } = item; const li = document.createElement("li"); - const span = document.createElement("span"); - span.textContent = status; - span.style.color = color; - li.appendChild(span); - li.append(title); + const statusSpan = document.createElement("span"); + const titleSpan = document.createElement("span"); + statusSpan.textContent = status; + statusSpan.style.color = color; + titleSpan.textContent = title; + li.appendChild(statusSpan); + li.append(" : "); + li.append(titleSpan); todoContainer.appendChild(li); }); |