]> git.cworth.org Git - zombocom-ai/blobdiff - index.html
Add a closing message and make the reboot button functional
[zombocom-ai] / index.html
index b36254964a2212e889e68312db54f55e5c3c597e..92e115ede8e264b75a77843e21cf39ebbd5aff7f 100644 (file)
@@ -176,7 +176,19 @@ mute.addEventListener("click", () => {
 
         const img = document.createElement('img');
         img.src = image.filename;
-        figure.appendChild(img);
+
+        if (image.link) {
+            const a = document.createElement('a');
+            a.href = image.link;
+            a.appendChild(img);
+            figure.appendChild(a);
+        } else {
+            figure.appendChild(img);
+        }
+
+        if (image.censored) {
+            img.style.display = "none";
+        }
 
         if (image.prompt && image.code) {
             const figcaption = document.createElement('figcaption');
@@ -192,6 +204,10 @@ mute.addEventListener("click", () => {
                 window.scrollTo(0,0);
             });
 
+            if (image.censored) {
+                figcaption.style.display = "none";
+            }
+
             figure.appendChild(figcaption);
         }