From 7d248f5f13c543318fb26b626a204ec179c8745f Mon Sep 17 00:00:00 2001 From: avi Date: Sat, 9 May 2026 21:03:00 -0500 Subject: [PATCH] Save point: Scene 3 recruitment text types faster (20-50ms), incubator stays calm --- index.html | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/index.html b/index.html index 06c6ee2..06cd6e4 100644 --- a/index.html +++ b/index.html @@ -593,7 +593,7 @@ }, 500); } - function typeCalmly(elem, text, callback) { + function typeCalmly(elem, text, callback, minDelay, maxDelay) { let i = 0; const total = text.length; @@ -605,7 +605,9 @@ elem.textContent += text[i]; i++; const progress = i / total; - const delay = 70 + progress * progress * 130; + const dMin = minDelay || 70; + const dMax = maxDelay || 130; + const delay = dMin + progress * progress * (dMax - dMin); setTimeout(typeChar, delay); } typeChar(); @@ -767,7 +769,7 @@ }, 30); }); }, 3000); - }); + }, 20, 50); }); }, 2000); });