Skip to content

Commit cd7a838

Browse files
author
github-actions-bot
committed
Updates
1 parent 0a2c1fe commit cd7a838

File tree

13 files changed

+304
-83
lines changed

13 files changed

+304
-83
lines changed

Randomfavicon.js

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
(function () {
2+
function setRandomFavicon() {
3+
const favicons = [
4+
'favicon1.svg',
5+
'favicon2.svg',
6+
'favicon3.svg',
7+
'favicon4.svg',
8+
'favicon5.svg',
9+
'favicon6.svg',
10+
'favicon7.svg'
11+
];
12+
const randomIndex = Math.floor(Math.random() * favicons.length);
13+
const randomFavicon = 'favicons/' + favicons[randomIndex];
14+
const faviconLink = document.getElementById('dynamic');
15+
if (faviconLink) {
16+
faviconLink.href = randomFavicon;
17+
}
18+
}
19+
document.addEventListener('DOMContentLoaded', setRandomFavicon);
20+
})();

assets/index-BPTWYUyL.js

Lines changed: 104 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

assets/index-Bu7vS2pt.js

Lines changed: 0 additions & 78 deletions
This file was deleted.

assets/index-CRAHmNS8.css

Lines changed: 1 addition & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

assets/index-Dh14XnUL.css

Lines changed: 0 additions & 1 deletion
This file was deleted.

favicons/favicon1.svg

Lines changed: 25 additions & 0 deletions
Loading

favicons/favicon2.svg

Lines changed: 25 additions & 0 deletions
Loading

favicons/favicon3.svg

Lines changed: 25 additions & 0 deletions
Loading

favicons/favicon4.svg

Lines changed: 25 additions & 0 deletions
Loading

favicons/favicon5.svg

Lines changed: 25 additions & 0 deletions
Loading

0 commit comments

Comments
 (0)