diff options
| author | Alex Pooley (@zuedev) <zuedev@gmail.com> | 2025-12-01 00:45:09 +0000 |
|---|---|---|
| committer | Alex Pooley (@zuedev) <zuedev@gmail.com> | 2025-12-01 00:45:09 +0000 |
| commit | cbc17db44c18a19702938b3fe70ea3de81d326ea (patch) | |
| tree | c44ef96fc9e66ecb013e99b5d8e2dc8ce333ffc9 /projects/about/public/tabAnimation.js | |
| parent | 3ea515a495e54d63f4d16c1448eb09eba527e976 (diff) | |
| download | zue.dev-cbc17db44c18a19702938b3fe70ea3de81d326ea.tar zue.dev-cbc17db44c18a19702938b3fe70ea3de81d326ea.tar.gz zue.dev-cbc17db44c18a19702938b3fe70ea3de81d326ea.tar.bz2 zue.dev-cbc17db44c18a19702938b3fe70ea3de81d326ea.tar.xz zue.dev-cbc17db44c18a19702938b3fe70ea3de81d326ea.zip | |
make it work
Diffstat (limited to 'projects/about/public/tabAnimation.js')
| -rw-r--r-- | projects/about/public/tabAnimation.js | 27 |
1 files changed, 0 insertions, 27 deletions
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,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><text y=".9em" font-size="90">${currentAnimation.emoji}</text></svg>`; - document.title = currentAnimation.title; - tabAnimationStep++; - setTimeout(updateTab, 1000); -}; - -updateTab(); |
