From 2e139d629bcd62d0f33e905eedda8ea757e626e0 Mon Sep 17 00:00:00 2001 From: crupest Date: Sun, 27 Nov 2022 15:56:55 +0800 Subject: Add ; between status and title. --- docker/crupest-nginx/sites/www/src/main.js | 13 ++++++++----- 1 file changed, 8 insertions(+), 5 deletions(-) (limited to 'docker/crupest-nginx/sites/www/src') 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); }); -- cgit v1.2.3