-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathindex.html
More file actions
120 lines (105 loc) · 3.34 KB
/
Copy pathindex.html
File metadata and controls
120 lines (105 loc) · 3.34 KB
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
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
<title>Moodie Clicker 🎯</title>
<style>
body {
background: linear-gradient(135deg, #ffdee9, #b5fffc);
font-family: 'Comic Sans MS', cursive, sans-serif;
text-align: center;
padding: 20px;
color: #333;
}
h1 {
font-size: 2.5rem;
margin-bottom: 10px;
}
.mood-buttons {
display: flex;
justify-content: center;
flex-wrap: wrap;
gap: 15px;
margin: 20px 0;
}
.mood {
font-size: 2.5rem;
padding: 15px;
background: white;
border-radius: 15px;
cursor: pointer;
box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
transition: transform 0.2s ease;
}
.mood:hover {
transform: scale(1.2);
background-color: #fff8dc;
}
#output {
font-size: 1.2rem;
margin-top: 25px;
padding: 10px;
background-color: #ffffffaa;
border-radius: 10px;
display: inline-block;
max-width: 80%;
}
.points {
font-size: 1.5rem;
margin-top: 15px;
color: #1a1a1a;
}
.rank {
font-size: 1.2rem;
margin-top: 8px;
color: #555;
}
</style>
</head>
<body>
<h1>Moodie Clicker 🎯</h1>
<p>How are you feeling today? Click below!</p>
<div class="mood-buttons">
<div class="mood" onclick="react('😊')">😊</div>
<div class="mood" onclick="react('😎')">😎</div>
<div class="mood" onclick="react('😢')">😢</div>
<div class="mood" onclick="react('😡')">😡</div>
<div class="mood" onclick="react('🤪')">🤪</div>
<div class="mood" onclick="react('🥱')">🥱</div>
</div>
<div id="output">Your mood message will appear here!</div>
<div class="points">✨ Vibe Points: <span id="vibePoints">0</span></div>
<div class="rank">🏅 Rank: <span id="vibeRank">Beginner Viber</span></div>
<script>
let vibePoints = parseInt(localStorage.getItem('vibePoints')) || 0;
document.getElementById("vibePoints").textContent = vibePoints;
updateRank();
function react(emoji) {
vibePoints++;
localStorage.setItem('vibePoints', vibePoints);
document.getElementById("vibePoints").textContent = vibePoints;
const messages = {
"😊": "Spread that joy like Wi-Fi!",
"😎": "Cool mode: Activated 🕶️",
"😢": "Even heroes cry. Here's a virtual hug 🤗",
"😡": "Take a deep breath. Smash a pillow 💢",
"🤪": "Certified goofball detected. Carry on 🤪",
"🥱": "Power nap? Or coffee? Decisions..."
};
const sound = new Audio('https://actions.google.com/sounds/v1/cartoon/cartoon_boing.ogg');
sound.play();
document.getElementById("output").textContent = `${emoji} → ${messages[emoji]}`;
updateRank();
}
function updateRank() {
const rankEl = document.getElementById("vibeRank");
if (vibePoints >= 50) rankEl.textContent = "Legendary Mood Master 🌟";
else if (vibePoints >= 30) rankEl.textContent = "Pro Viber 🔥";
else if (vibePoints >= 15) rankEl.textContent = "Intermediate Viber 😄";
else if (vibePoints >= 5) rankEl.textContent = "Casual Viber ✌️";
else rankEl.textContent = "Beginner Viber 🎈";
}
</script>
</body>
</html>