aboutsummaryrefslogtreecommitdiff
path: root/docker/crupest-nginx/sites/www/src/main.js
diff options
context:
space:
mode:
authorcrupest <crupest@outlook.com>2022-11-27 15:56:55 +0800
committercrupest <crupest@outlook.com>2022-11-27 15:56:55 +0800
commit2e139d629bcd62d0f33e905eedda8ea757e626e0 (patch)
tree25513975d75a038fc6605e39f8490b6ed97bc61a /docker/crupest-nginx/sites/www/src/main.js
parent4fa1f65c5d099971e94f7f5af4c710fe297d9285 (diff)
downloadcrupest-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.js13
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);
});