]> git.cworth.org Git - zombocom-ai/commitdiff
Prepend images as they are generated
authorCarl Worth <cworth@cworth.org>
Thu, 8 Dec 2022 00:37:13 +0000 (16:37 -0800)
committerCarl Worth <cworth@cworth.org>
Thu, 8 Dec 2022 00:41:57 +0000 (16:41 -0800)
So that the most-recently-generated image is always there at the top,
without requiring a big scroll to reach it.

index.html

index a0ee564da71d9cf9498743c1ccc2bf1ee2e93617..13fc62af92a00c9e5dc6f0f3e7da2848c0ae0b72 100644 (file)
@@ -137,7 +137,7 @@ mute.addEventListener("click", () => {
         figcaption.appendChild(caption_text);
         figure.appendChild(img);
         figure.appendChild(figcaption);
-        images.appendChild(figure);
+        images.prepend(figure);
     });
 
     zombo_form.addEventListener('submit', function(e) {