From d9511054979c2a88b4674b74365d50c801857ee1 Mon Sep 17 00:00:00 2001 From: dwebmm Date: Tue, 21 Jan 2025 00:12:37 -0600 Subject: [PATCH] Relaxed spam timeout. --- index.html | 11 +++++++---- 1 file changed, 7 insertions(+), 4 deletions(-) diff --git a/index.html b/index.html index 5c0f1a3..afc83a3 100644 --- a/index.html +++ b/index.html @@ -215,8 +215,8 @@ } let lastFumbleTime = 0; - const cooldownPeriod = 2000; // Reduce to 2 seconds cooldown - const warningThreshold = 3; // Number of quick fumbles before warning + const cooldownPeriod = 5000; // Increase to 5 seconds cooldown + const warningThreshold = 5; // Increase threshold to 5 quick fumbles before warning let quickFumbleCount = 0; let cooldownTimer = null; @@ -235,7 +235,7 @@ closeBtn.disabled = true; // Update countdown timer - let remainingTime = 3; // Reduce to 3 second countdown for closing + let remainingTime = 5; // Keep 5 second countdown for closing cooldownSeconds.textContent = remainingTime; if (cooldownTimer) clearInterval(cooldownTimer); @@ -254,7 +254,10 @@ return; } } else { - quickFumbleCount = 0; // Reset counter if enough time has passed + // Only reset counter if significant time has passed (10 seconds) + if (timeSinceLastFumble > 10000) { + quickFumbleCount = 0; + } } lastFumbleTime = currentTime;