From: Ardis Lu Date: Thu, 8 Jun 2023 05:15:13 +0000 (-0700) Subject: Flatten inner text nodes when all settled X-Git-Url: https://git.ardis.lu/?a=commitdiff_plain;h=a7f668919c4fc9e95461e854a1035b11f75bf250;p=ard.is Flatten inner text nodes when all settled --- diff --git a/index.html b/index.html index 4373c71..b733806 100644 --- a/index.html +++ b/index.html @@ -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));