From cafab04d2df041f694b6a37392b0e3a98439692f Mon Sep 17 00:00:00 2001 From: Victor Giers Date: Mon, 26 May 2025 06:43:07 +0200 Subject: [PATCH] auto-git: [change] animeCat.js --- animeCat.js | 25 ++++++++++++++----------- 1 file changed, 14 insertions(+), 11 deletions(-) diff --git a/animeCat.js b/animeCat.js index 3300ae0..e60a6f9 100644 --- a/animeCat.js +++ b/animeCat.js @@ -108,17 +108,6 @@ window.AnimeCat = class AnimeCat { this.wrapper.appendChild(this.bubble); this.container.appendChild(this.wrapper); - // Zeigt Progress der täglichen Commits an - animateCatGlow(commitCount) { - if (!this.cat) return; - - const factor = Math.min(commitCount / 10, 1); - const glowStrength = 3 + factor * 22; - const glowColor = `rgba(255,230,100,${0.2 + factor * 0.7})`; - - this.cat.style.filter = `drop-shadow(0 0 ${glowStrength}px ${glowColor})`; - this.cat.classList.add('glow'); - } // Emitter für Herzen (abgekoppelt!) this.heartEmitter = document.createElement('div'); @@ -133,6 +122,20 @@ window.AnimeCat = class AnimeCat { }); this.container.appendChild(this.heartEmitter); } + + // Zeigt Progress der täglichen Commits an + _animateCatGlow(commitCount) { + if (!this.cat) return; + + const factor = Math.min(commitCount / 10, 1); + const glowStrength = 3 + factor * 22; + const glowColor = `rgba(255,230,100,${0.2 + factor * 0.7})`; + + this.cat.style.filter = `drop-shadow(0 0 ${glowStrength}px ${glowColor})`; + this.cat.classList.add('glow'); + } + + // Bubble-Position absolut anpassen, wenn detached _positionBubbleDetached() {