From cbc17db44c18a19702938b3fe70ea3de81d326ea Mon Sep 17 00:00:00 2001 From: "Alex Pooley (@zuedev)" Date: Mon, 1 Dec 2025 00:45:09 +0000 Subject: make it work --- projects/about/public/tabAnimation.js | 27 --------------------------- 1 file changed, 27 deletions(-) delete mode 100644 projects/about/public/tabAnimation.js (limited to 'projects/about/public/tabAnimation.js') diff --git a/projects/about/public/tabAnimation.js b/projects/about/public/tabAnimation.js deleted file mode 100644 index f0040d0..0000000 --- a/projects/about/public/tabAnimation.js +++ /dev/null @@ -1,27 +0,0 @@ -// animated tab -const animation = [ - { - emoji: "🌍", - title: "AROUND the world", - }, - { - emoji: "🌏", - title: "around THE world", - }, - { - emoji: "🌎", - title: "around the WORLD", - }, -]; - -let tabAnimationStep = 0; -const favicon = document.querySelector("link[rel='icon']"); -const updateTab = () => { - const currentAnimation = animation[tabAnimationStep % animation.length]; - favicon.href = `data:image/svg+xml,${currentAnimation.emoji}`; - document.title = currentAnimation.title; - tabAnimationStep++; - setTimeout(updateTab, 1000); -}; - -updateTab(); -- cgit v1.2.3