From 93d0cb87e7e6ce142fc485ef419df98bcf56641c Mon Sep 17 00:00:00 2001 From: ltadeu6 Date: Sun, 7 Jun 2026 12:20:44 -0300 Subject: [PATCH] feat: fix skeleton to skeleton3 only, remove switcher --- plugin/contents/ui/dancer.html | 23 ++--------------------- 1 file changed, 2 insertions(+), 21 deletions(-) diff --git a/plugin/contents/ui/dancer.html b/plugin/contents/ui/dancer.html index 98faf50..20ab8b5 100644 --- a/plugin/contents/ui/dancer.html +++ b/plugin/contents/ui/dancer.html @@ -771,7 +771,7 @@ html, body {
- skeleton + skeleton
@@ -1134,26 +1134,7 @@ function nextDanceStyle() { document.body.setAttribute('data-dance', 'bounce'); setInterval(nextDanceStyle, 8000); -/* ============================================================ - SKELETON SWITCHER - Add new files to SKELETONS to include them in the rotation. - Switches on music change and randomly every 16 beats (8s). - ============================================================ */ -const SKELETONS = ['skeleton2.apng', 'skeleton3.apng', 'skeleton4.apng', 'skeleton5.apng', 'skeleton6.apng']; -const skeletonImg = document.querySelector('.skeleton-gif'); -let currentSkel = 2; - -// Preload all skeletons so switches are instant -const _preloaded = SKELETONS.map(src => { const i = new Image(); i.src = src; return i; }); - -function pickSkeleton() { - if (SKELETONS.length < 2) return; - let next; - do { next = Math.floor(Math.random() * SKELETONS.length); } - while (next === currentSkel); - currentSkel = next; - skeletonImg.src = SKELETONS[currentSkel]; -} +function pickSkeleton() {} /* ============================================================