]> git.ardis.lu - ard.is/commitdiff
Flatten inner text nodes when all settled
authorArdis Lu <ardisglu@gmail.com>
Thu, 8 Jun 2023 05:15:13 +0000 (22:15 -0700)
committerArdis Lu <ardisglu@gmail.com>
Thu, 8 Jun 2023 05:15:13 +0000 (22:15 -0700)
index.html

index 4373c71e98ffb443637597a08863f84826333496..b733806fcf1c724a1bf516988ebbd9d83ae0433c 100644 (file)
@@ -68,6 +68,9 @@
       };
       setTimeout(tick, startOffset);
     }
+
+    // Flatten all inner text nodes into one text node in the outer container
+    setTimeout(() => asciiContainer.textContent = asciiContainer.innerText, timePerTick * (maxTicks + 1));
   </script>
 </body>
 
This page took 0.031917 seconds and 4 git commands to generate.