]> git.cworth.org Git - zombocom-ai/commitdiff
Fix class of comments element
authorCarl Worth <cworth@cworth.org>
Thu, 8 Dec 2022 07:56:10 +0000 (23:56 -0800)
committerCarl Worth <cworth@cworth.org>
Thu, 8 Dec 2022 08:00:49 +0000 (00:00 -0800)
So the new stlying actually works.

index.html

index bc6e61eb8556619858cbd27ecd0f7d7453be3767..d61e2d06e5d9f519db26b5e10adb67b98c6abfe2 100644 (file)
@@ -77,7 +77,7 @@
     <div id="images">
     </div>
 
-    <dl id="comments">
+    <dl id="comments" class="comments">
     </dl>
 
     <p>
@@ -161,7 +161,7 @@ mute.addEventListener("click", () => {
     socket.on('comment', function(comment) {
         const dt = document.createElement('dt');
         const dd = document.createElement('dd');
-        dt.textContent = comment.name;
+        dt.textContent = comment.name + ':';
         dd.textContent = comment.text;
         comments.appendChild(dt);
         comments.appendChild(dd);
@@ -174,6 +174,7 @@ mute.addEventListener("click", () => {
 
     socket.on('reset', () => {
         images.replaceChildren();
+        comments.replaceChildren();
     });
 
     socket.on('image', (image) => {