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 | 149d7fc280d2620986a55e82a85c0e89ee9748a6 (patch) | |
| tree | 25513975d75a038fc6605e39f8490b6ed97bc61a /docker/crupest-nginx/sites/www/src | |
| parent | c4e083863e8476ca70d8b895beea5a172fcb7ecd (diff) | |
| download | crupest-149d7fc280d2620986a55e82a85c0e89ee9748a6.tar.gz crupest-149d7fc280d2620986a55e82a85c0e89ee9748a6.tar.bz2 crupest-149d7fc280d2620986a55e82a85c0e89ee9748a6.zip  | |
Add ; between status and title.
Diffstat (limited to 'docker/crupest-nginx/sites/www/src')
| -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);      });  | 
