]> git.cworth.org Git - zombocom-ai/blobdiff - index.html
Make the censored images more obvious in the stream
[zombocom-ai] / index.html
index b36254964a2212e889e68312db54f55e5c3c597e..fe30cc65f11171a521888cdefdf0eb6807671d30 100644 (file)
@@ -178,6 +178,10 @@ mute.addEventListener("click", () => {
         img.src = image.filename;
         figure.appendChild(img);
 
+        if (image.censored) {
+            img.style.display = "none";
+        }
+
         if (image.prompt && image.code) {
             const figcaption = document.createElement('figcaption');
             const caption_text = document.createTextNode(`${image.prompt} (${image.code}) `);
@@ -192,6 +196,10 @@ mute.addEventListener("click", () => {
                 window.scrollTo(0,0);
             });
 
+            if (image.censored) {
+                figcaption.style.display = "none";
+            }
+
             figure.appendChild(figcaption);
         }