diff options
| author | Alex Pooley (@zuedev) <zuedev@gmail.com> | 2026-03-03 10:24:12 +0000 |
|---|---|---|
| committer | Alex Pooley (@zuedev) <zuedev@gmail.com> | 2026-03-03 10:24:12 +0000 |
| commit | 14e968309da5036711ee0e3995362aa19d7bd7d8 (patch) | |
| tree | d3f630ac612fabe4380caa8f7c7b24d64e21f1a8 /source/about/public/tabAnimation.js | |
| parent | 119e396029a5fd845d32e6c7b1c717254e9546a6 (diff) | |
| download | zue.dev-14e968309da5036711ee0e3995362aa19d7bd7d8.tar zue.dev-14e968309da5036711ee0e3995362aa19d7bd7d8.tar.gz zue.dev-14e968309da5036711ee0e3995362aa19d7bd7d8.tar.bz2 zue.dev-14e968309da5036711ee0e3995362aa19d7bd7d8.tar.xz zue.dev-14e968309da5036711ee0e3995362aa19d7bd7d8.zip | |
big update!
Diffstat (limited to 'source/about/public/tabAnimation.js')
| -rw-r--r-- | source/about/public/tabAnimation.js | 27 |
1 files changed, 0 insertions, 27 deletions
diff --git a/source/about/public/tabAnimation.js b/source/about/public/tabAnimation.js deleted file mode 100644 index f0040d0..0000000 --- a/source/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(); |
