From a7f668919c4fc9e95461e854a1035b11f75bf250 Mon Sep 17 00:00:00 2001 From: Ardis Lu Date: Wed, 7 Jun 2023 22:15:13 -0700 Subject: [PATCH] Flatten inner text nodes when all settled --- index.html | 3 +++ 1 file changed, 3 insertions(+) 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)); -- 2.47.3