-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.html
executable file
·45 lines (36 loc) · 2.28 KB
/
index.html
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
<!DOCTYPE html>
<html lang="it">
<head>
<script src="https://cdn.jsdelivr.net/npm/favico.js@0.3.10"></script>
<link href='https://fonts.googleapis.com/css?family=Poppins' rel='stylesheet'>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Emoji url</title>
<link rel="icon" type="image/png" href="https://static-00.iconduck.com/assets.00/earth-globe-americas-emoji-2048x2048-ujjzy2mu.png" id="dynamicFavicon">
</head>
<body>
<h1 style="text-align: center; font-family: Poppins; font-size: 50px;">Titolo e url animati</h1>
<div id="emoji" style="text-align: center; font-family: Poppins; font-size: 50px;"></div>
<script>
let favicon = new Favico({ animation: 'pop' });
let myEmojis = [
"😀", "😃", "😄", "😁", "😆", "😅", "🤣", "😂", "🙂", "🙃", "🫠", "😉", "😊", "😇", "🥰", "😍", "🤩", "😘", "😗", "😚", "😙", "🥲", "😋", "😛", "😜", "🤪", "😝", "🤑", "🤗", "🤭", "🫢", "🫣", "🤫", "🤔", "🫡", "🤐", "🤨", "😐", "😑", "😶", "😏", "😒", "🙄", "😬", "🤥", "🫨", "😌", "😔", "😪", "🤤", "😴", "😷", "🤒", "🤕", "🤢", "🤮", "🤧", "🥵", "🥶", "🥴", "😵", "🤯", "🤠", "🥳", "🥸", "😎", "🤓", "🧐", "😕", "🫤", "😟", "🙁", "😮", "😯", "😲", "😳", "🥺", "🥹", "😦", "😧", "😨", "😰", "😥", "😢", "😭", "😱", "😖", "😣", "😞", "😓", "😩", "😫", "🥱", "😤", "😡", "😠", "🤬", "😈", "👿"
];
let urlAnimate = () => {
window.location.hash = myEmojis[Math.floor((Date.now() / 200) % myEmojis.length)];
setTimeout(urlAnimate, 70);
};
urlAnimate();
let titleAnimate = () => {
document.title = myEmojis[Math.floor((Date.now() / 200) % myEmojis.length)] + " Emoji url";
setTimeout(titleAnimate, 70);
};
titleAnimate();
let contentAnimate = () => {
document.getElementById("emoji").innerText = myEmojis[Math.floor((Date.now() / 200) % myEmojis.length)];
setTimeout(contentAnimate, 70);
};
contentAnimate();
</script>
</body>
</html>