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
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
<!DOCTYPE html>
|
| 2 |
+
<html lang="en">
|
| 3 |
+
<head>
|
| 4 |
+
<meta charset="UTF-8">
|
| 5 |
+
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
| 6 |
+
<title>Universal Greetings</title>
|
| 7 |
+
<style>
|
| 8 |
+
* {
|
| 9 |
+
margin: 0;
|
| 10 |
+
padding: 0;
|
| 11 |
+
box-sizing: border-box;
|
| 12 |
+
}
|
| 13 |
+
|
| 14 |
+
:root {
|
| 15 |
+
--primary-gradient: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
|
| 16 |
+
--secondary-gradient: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
|
| 17 |
+
--tertiary-gradient: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%);
|
| 18 |
+
--dark-bg: #0f0f23;
|
| 19 |
+
--light-text: #ffffff;
|
| 20 |
+
--glass-bg: rgba(255, 255, 255, 0.1);
|
| 21 |
+
--glass-border: rgba(255, 255, 255, 0.2);
|
| 22 |
+
}
|
| 23 |
+
|
| 24 |
+
body {
|
| 25 |
+
font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
|
| 26 |
+
min-height: 100vh;
|
| 27 |
+
background: linear-gradient(-45deg, #ee7752, #e73c7e, #23a6d5, #23d5ab);
|
| 28 |
+
background-size: 400% 400%;
|
| 29 |
+
animation: gradientShift 15s ease infinite;
|
| 30 |
+
display: flex;
|
| 31 |
+
flex-direction: column;
|
| 32 |
+
align-items: center;
|
| 33 |
+
justify-content: center;
|
| 34 |
+
overflow-x: hidden;
|
| 35 |
+
position: relative;
|
| 36 |
+
}
|
| 37 |
+
|
| 38 |
+
@keyframes gradientShift {
|
| 39 |
+
0% { background-position: 0% 50%; }
|
| 40 |
+
50% { background-position: 100% 50%; }
|
| 41 |
+
100% { background-position: 0% 50%; }
|
| 42 |
+
}
|
| 43 |
+
|
| 44 |
+
.floating-shapes {
|
| 45 |
+
position: fixed;
|
| 46 |
+
width: 100%;
|
| 47 |
+
height: 100%;
|
| 48 |
+
overflow: hidden;
|
| 49 |
+
z-index: 1;
|
| 50 |
+
}
|
| 51 |
+
|
| 52 |
+
.shape {
|
| 53 |
+
position: absolute;
|
| 54 |
+
background: var(--glass-bg);
|
| 55 |
+
backdrop-filter: blur(10px);
|
| 56 |
+
border: 1px solid var(--glass-border);
|
| 57 |
+
animation: float 20s infinite;
|
| 58 |
+
}
|
| 59 |
+
|
| 60 |
+
.shape:nth-child(1) {
|
| 61 |
+
width: 80px;
|
| 62 |
+
height: 80px;
|
| 63 |
+
left: 10%;
|
| 64 |
+
animation-duration: 25s;
|
| 65 |
+
border-radius: 50%;
|
| 66 |
+
}
|
| 67 |
+
|
| 68 |
+
.shape:nth-child(2) {
|
| 69 |
+
width: 120px;
|
| 70 |
+
height: 120px;
|
| 71 |
+
right: 20%;
|
| 72 |
+
animation-duration: 30s;
|
| 73 |
+
animation-delay: 2s;
|
| 74 |
+
transform: rotate(45deg);
|
| 75 |
+
}
|
| 76 |
+
|
| 77 |
+
.shape:nth-child(3) {
|
| 78 |
+
width: 60px;
|
| 79 |
+
height: 60px;
|
| 80 |
+
left: 70%;
|
| 81 |
+
animation-duration: 35s;
|
| 82 |
+
animation-delay: 4s;
|
| 83 |
+
border-radius: 30% 70% 70% 30% / 30% 30% 70% 70%;
|
| 84 |
+
}
|
| 85 |
+
|
| 86 |
+
.shape:nth-child(4) {
|
| 87 |
+
width: 100px;
|
| 88 |
+
height: 100px;
|
| 89 |
+
right: 10%;
|
| 90 |
+
animation-duration: 28s;
|
| 91 |
+
animation-delay: 1s;
|
| 92 |
+
border-radius: 60% 40% 30% 70% / 60% 30% 70% 40%;
|
| 93 |
+
}
|
| 94 |
+
|
| 95 |
+
@keyframes float {
|
| 96 |
+
0%, 100% {
|
| 97 |
+
transform: translateY(0) rotate(0deg);
|
| 98 |
+
opacity: 0.5;
|
| 99 |
+
}
|
| 100 |
+
25% {
|
| 101 |
+
transform: translateY(-100px) rotate(90deg);
|
| 102 |
+
opacity: 0.8;
|
| 103 |
+
}
|
| 104 |
+
50% {
|
| 105 |
+
transform: translateY(-200px) rotate(180deg);
|
| 106 |
+
opacity: 0.5;
|
| 107 |
+
}
|
| 108 |
+
75% {
|
| 109 |
+
transform: translateY(-100px) rotate(270deg);
|
| 110 |
+
opacity: 0.8;
|
| 111 |
+
}
|
| 112 |
+
}
|
| 113 |
+
|
| 114 |
+
header {
|
| 115 |
+
position: fixed;
|
| 116 |
+
top: 0;
|
| 117 |
+
width: 100%;
|
| 118 |
+
padding: 20px;
|
| 119 |
+
z-index: 1000;
|
| 120 |
+
background: var(--glass-bg);
|
| 121 |
+
backdrop-filter: blur(10px);
|
| 122 |
+
border-bottom: 1px solid var(--glass-border);
|
| 123 |
+
}
|
| 124 |
+
|
| 125 |
+
.header-content {
|
| 126 |
+
max-width: 1200px;
|
| 127 |
+
margin: 0 auto;
|
| 128 |
+
display: flex;
|
| 129 |
+
justify-content: space-between;
|
| 130 |
+
align-items: center;
|
| 131 |
+
}
|
| 132 |
+
|
| 133 |
+
.logo {
|
| 134 |
+
font-size: 1.5rem;
|
| 135 |
+
font-weight: bold;
|
| 136 |
+
background: var(--primary-gradient);
|
| 137 |
+
-webkit-background-clip: text;
|
| 138 |
+
-webkit-text-fill-color: transparent;
|
| 139 |
+
background-clip: text;
|
| 140 |
+
}
|
| 141 |
+
|
| 142 |
+
.anycoder-link {
|
| 143 |
+
color: var(--light-text);
|
| 144 |
+
text-decoration: none;
|
| 145 |
+
font-size: 0.9rem;
|
| 146 |
+
transition: all 0.3s ease;
|
| 147 |
+
padding: 8px 16px;
|
| 148 |
+
border-radius: 20px;
|
| 149 |
+
background: var(--glass-bg);
|
| 150 |
+
backdrop-filter: blur(10px);
|
| 151 |
+
border: 1px solid var(--glass-border);
|
| 152 |
+
}
|
| 153 |
+
|
| 154 |
+
.anycoder-link:hover {
|
| 155 |
+
transform: translateY(-2px);
|
| 156 |
+
box-shadow: 0 5px 15px rgba(255, 255, 255, 0.3);
|
| 157 |
+
}
|
| 158 |
+
|
| 159 |
+
main {
|
| 160 |
+
position: relative;
|
| 161 |
+
z-index: 10;
|
| 162 |
+
text-align: center;
|
| 163 |
+
padding: 20px;
|
| 164 |
+
}
|
| 165 |
+
|
| 166 |
+
.greeting-container {
|
| 167 |
+
background: var(--glass-bg);
|
| 168 |
+
backdrop-filter: blur(20px);
|
| 169 |
+
border-radius: 30px;
|
| 170 |
+
padding: 60px 40px;
|
| 171 |
+
border: 2px solid var(--glass-border);
|
| 172 |
+
box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
|
| 173 |
+
max-width: 600px;
|
| 174 |
+
margin: 0 auto;
|
| 175 |
+
animation: slideInUp 0.8s ease-out;
|
| 176 |
+
}
|
| 177 |
+
|
| 178 |
+
@keyframes slideInUp {
|
| 179 |
+
from {
|
| 180 |
+
opacity: 0;
|
| 181 |
+
transform: translateY(50px);
|
| 182 |
+
}
|
| 183 |
+
to {
|
| 184 |
+
opacity: 1;
|
| 185 |
+
transform: translateY(0);
|
| 186 |
+
}
|
| 187 |
+
}
|
| 188 |
+
|
| 189 |
+
.main-greeting {
|
| 190 |
+
font-size: clamp(3rem, 8vw, 5rem);
|
| 191 |
+
font-weight: 800;
|
| 192 |
+
background: linear-gradient(135deg, #fff 0%, #f0f0f0 100%);
|
| 193 |
+
-webkit-background-clip: text;
|
| 194 |
+
-webkit-text-fill-color: transparent;
|
| 195 |
+
background-clip: text;
|
| 196 |
+
margin-bottom: 20px;
|
| 197 |
+
animation: pulse 2s ease-in-out infinite;
|
| 198 |
+
}
|
| 199 |
+
|
| 200 |
+
@keyframes pulse {
|
| 201 |
+
0%, 100% { transform: scale(1); }
|
| 202 |
+
50% { transform: scale(1.05); }
|
| 203 |
+
}
|
| 204 |
+
|
| 205 |
+
.time-greeting {
|
| 206 |
+
font-size: 1.5rem;
|
| 207 |
+
color: rgba(255, 255, 255, 0.9);
|
| 208 |
+
margin-bottom: 30px;
|
| 209 |
+
font-weight: 300;
|
| 210 |
+
}
|
| 211 |
+
|
| 212 |
+
.language-grid {
|
| 213 |
+
display: grid;
|
| 214 |
+
grid-template-columns: repeat(auto-fit, minmax(100px, 1fr));
|
| 215 |
+
gap: 15px;
|
| 216 |
+
margin-top: 40px;
|
| 217 |
+
}
|
| 218 |
+
|
| 219 |
+
.lang-btn {
|
| 220 |
+
padding: 15px 20px;
|
| 221 |
+
background: var(--glass-bg);
|
| 222 |
+
backdrop-filter: blur(10px);
|
| 223 |
+
border: 1px solid var(--glass-border);
|
| 224 |
+
border-radius: 15px;
|
| 225 |
+
color: var(--light-text);
|
| 226 |
+
font-size: 1.1rem;
|
| 227 |
+
cursor: pointer;
|
| 228 |
+
transition: all 0.3s ease;
|
| 229 |
+
position: relative;
|
| 230 |
+
overflow: hidden;
|
| 231 |
+
}
|
| 232 |
+
|
| 233 |
+
.lang-btn::before {
|
| 234 |
+
content: '';
|
| 235 |
+
position: absolute;
|
| 236 |
+
top: 50%;
|
| 237 |
+
left: 50%;
|
| 238 |
+
width: 0;
|
| 239 |
+
height: 0;
|
| 240 |
+
border-radius: 50%;
|
| 241 |
+
background: rgba(255, 255, 255, 0.3);
|
| 242 |
+
transform: translate(-50%, -50%);
|
| 243 |
+
transition: width 0.6s, height 0.6s;
|
| 244 |
+
}
|
| 245 |
+
|
| 246 |
+
.lang-btn:hover::before {
|
| 247 |
+
width: 300px;
|
| 248 |
+
height: 300px;
|
| 249 |
+
}
|
| 250 |
+
|
| 251 |
+
.lang-btn:hover {
|
| 252 |
+
transform: translateY(-3px) scale(1.05);
|
| 253 |
+
box-shadow: 0 10px 30px rgba(255, 255, 255, 0.2);
|
| 254 |
+
}
|
| 255 |
+
|
| 256 |
+
.lang-btn span {
|
| 257 |
+
position: relative;
|
| 258 |
+
z-index: 1;
|
| 259 |
+
}
|
| 260 |
+
|
| 261 |
+
.lang-code {
|
| 262 |
+
font-size: 0.7rem;
|
| 263 |
+
opacity: 0.7;
|
| 264 |
+
display: block;
|
| 265 |
+
margin-top: 5px;
|
| 266 |
+
}
|
| 267 |
+
|
| 268 |
+
.custom-input {
|
| 269 |
+
margin-top: 40px;
|
| 270 |
+
display: flex;
|
| 271 |
+
gap: 10px;
|
| 272 |
+
justify-content: center;
|
| 273 |
+
flex-wrap: wrap;
|
| 274 |
+
}
|
| 275 |
+
|
| 276 |
+
.input-field {
|
| 277 |
+
padding: 15px 25px;
|
| 278 |
+
background: var(--glass-bg);
|
| 279 |
+
backdrop-filter: blur(10px);
|
| 280 |
+
border: 1px solid var(--glass-border);
|
| 281 |
+
border-radius: 50px;
|
| 282 |
+
color: var(--light-text);
|
| 283 |
+
font-size: 1rem;
|
| 284 |
+
width: 250px;
|
| 285 |
+
transition: all 0.3s ease;
|
| 286 |
+
}
|
| 287 |
+
|
| 288 |
+
.input-field::placeholder {
|
| 289 |
+
color: rgba(255, 255, 255, 0.6);
|
| 290 |
+
}
|
| 291 |
+
|
| 292 |
+
.input-field:focus {
|
| 293 |
+
outline: none;
|
| 294 |
+
border-color: rgba(255, 255, 255, 0.5);
|
| 295 |
+
box-shadow: 0 0 20px rgba(255, 255, 255, 0.2);
|
| 296 |
+
}
|
| 297 |
+
|
| 298 |
+
.submit-btn {
|
| 299 |
+
padding: 15px 40px;
|
| 300 |
+
background: var(--primary-gradient);
|
| 301 |
+
border: none;
|
| 302 |
+
border-radius: 50px;
|
| 303 |
+
color: white;
|
| 304 |
+
font-size: 1rem;
|
| 305 |
+
font-weight: 600;
|
| 306 |
+
cursor: pointer;
|
| 307 |
+
transition: all 0.3s ease;
|
| 308 |
+
}
|
| 309 |
+
|
| 310 |
+
.submit-btn:hover {
|
| 311 |
+
transform: translateY(-2px);
|
| 312 |
+
box-shadow: 0 10px 30px rgba(102, 126, 234, 0.4);
|
| 313 |
+
}
|
| 314 |
+
|
| 315 |
+
.emoji-rain {
|
| 316 |
+
position: fixed;
|
| 317 |
+
top: -50px;
|
| 318 |
+
font-size: 2rem;
|
| 319 |
+
animation: fall linear;
|
| 320 |
+
z-index: 5;
|
| 321 |
+
pointer-events: none;
|
| 322 |
+
}
|
| 323 |
+
|
| 324 |
+
@keyframes fall {
|
| 325 |
+
to {
|
| 326 |
+
transform: translateY(calc(100vh + 50px));
|
| 327 |
+
}
|
| 328 |
+
}
|
| 329 |
+
|
| 330 |
+
.stats {
|
| 331 |
+
margin-top: 30px;
|
| 332 |
+
display: flex;
|
| 333 |
+
justify-content: center;
|
| 334 |
+
gap: 30px;
|
| 335 |
+
flex-wrap: wrap;
|
| 336 |
+
}
|
| 337 |
+
|
| 338 |
+
.stat-item {
|
| 339 |
+
text-align: center;
|
| 340 |
+
color: rgba(255, 255, 255, 0.9);
|
| 341 |
+
}
|
| 342 |
+
|
| 343 |
+
.stat-number {
|
| 344 |
+
font-size: 2rem;
|
| 345 |
+
font-weight: bold;
|
| 346 |
+
background: var(--secondary-gradient);
|
| 347 |
+
-webkit-background-clip: text;
|
| 348 |
+
-webkit-text-fill-color: transparent;
|
| 349 |
+
background-clip: text;
|
| 350 |
+
}
|
| 351 |
+
|
| 352 |
+
.stat-label {
|
| 353 |
+
font-size: 0.9rem;
|
| 354 |
+
opacity: 0.8;
|
| 355 |
+
}
|
| 356 |
+
|
| 357 |
+
@media (max-width: 768px) {
|
| 358 |
+
.greeting-container {
|
| 359 |
+
padding: 40px 20px;
|
| 360 |
+
}
|
| 361 |
+
|
| 362 |
+
.language-grid {
|
| 363 |
+
grid-template-columns: repeat(auto-fit, minmax(80px, 1fr));
|
| 364 |
+
}
|
| 365 |
+
|
| 366 |
+
.custom-input {
|
| 367 |
+
flex-direction: column;
|
| 368 |
+
align-items: center;
|
| 369 |
+
}
|
| 370 |
+
|
| 371 |
+
.input-field {
|
| 372 |
+
width: 100%;
|
| 373 |
+
max-width: 300px;
|
| 374 |
+
}
|
| 375 |
+
}
|
| 376 |
+
</style>
|
| 377 |
+
</head>
|
| 378 |
+
<body>
|
| 379 |
+
<div class="floating-shapes">
|
| 380 |
+
<div class="shape"></div>
|
| 381 |
+
<div class="shape"></div>
|
| 382 |
+
<div class="shape"></div>
|
| 383 |
+
<div class="shape"></div>
|
| 384 |
+
</div>
|
| 385 |
+
|
| 386 |
+
<header>
|
| 387 |
+
<div class="header-content">
|
| 388 |
+
<div class="logo">๐ Universal Greetings</div>
|
| 389 |
+
<a href="https://huggingface.co/spaces/akhaliq/anycoder" target="_blank" class="anycoder-link">
|
| 390 |
+
Built with anycoder
|
| 391 |
+
</a>
|
| 392 |
+
</div>
|
| 393 |
+
</header>
|
| 394 |
+
|
| 395 |
+
<main>
|
| 396 |
+
<div class="greeting-container">
|
| 397 |
+
<h1 class="main-greeting" id="mainGreeting">Hi</h1>
|
| 398 |
+
<p class="time-greeting" id="timeGreeting">Good day!</p>
|
| 399 |
+
|
| 400 |
+
<div class="stats">
|
| 401 |
+
<div class="stat-item">
|
| 402 |
+
<div class="stat-number" id="greetingCount">0</div>
|
| 403 |
+
<div class="stat-label">Greetings Shared</div>
|
| 404 |
+
</div>
|
| 405 |
+
<div class="stat-item">
|
| 406 |
+
<div class="stat-number" id="languageCount">1</div>
|
| 407 |
+
<div class="stat-label">Languages</div>
|
| 408 |
+
</div>
|
| 409 |
+
</div>
|
| 410 |
+
|
| 411 |
+
<div class="language-grid">
|
| 412 |
+
<button class="lang-btn" onclick="changeGreeting('Hello', 'English')">
|
| 413 |
+
<span>Hello<span class="lang-code">EN</span></span>
|
| 414 |
+
</button>
|
| 415 |
+
<button class="lang-btn" onclick="changeGreeting('Hola', 'Spanish')">
|
| 416 |
+
<span>Hola<span class="lang-code">ES</span></span>
|
| 417 |
+
</button>
|
| 418 |
+
<button class="lang-btn" onclick="changeGreeting('Bonjour', 'French')">
|
| 419 |
+
<span>Bonjour<span class="lang-code">FR</span></span>
|
| 420 |
+
</button>
|
| 421 |
+
<button class="lang-btn" onclick="changeGreeting('Ciao', 'Italian')">
|
| 422 |
+
<span>Ciao<span class="lang-code">IT</span></span>
|
| 423 |
+
</button>
|
| 424 |
+
<button class="lang-btn" onclick="changeGreeting('Hallo', 'German')">
|
| 425 |
+
<span>Hallo<span class="lang-code">DE</span></span>
|
| 426 |
+
</button>
|
| 427 |
+
<button class="lang-btn" onclick="changeGreeting('ใใใซใกใฏ', 'Japanese')">
|
| 428 |
+
<span>ใใใซใกใฏ<span class="lang-code">JA</span></span>
|
| 429 |
+
</button>
|
| 430 |
+
<button class="lang-btn" onclick="changeGreeting('์๋
ํ์ธ์', 'Korean')">
|
| 431 |
+
<span>์๋
ํ์ธ์<span class="lang-code">KO</span></span>
|
| 432 |
+
</button>
|
| 433 |
+
<button class="lang-btn" onclick="changeGreeting('ะัะธะฒะตั', 'Russian')">
|
| 434 |
+
<span>ะัะธะฒะตั<span class="lang-code">RU</span></span>
|
| 435 |
+
</button>
|
| 436 |
+
<button class="lang-btn" onclick="changeGreeting('ไฝ ๅฅฝ', 'Chinese')">
|
| 437 |
+
<span>ไฝ ๅฅฝ<span class="lang-code">ZH</span></span>
|
| 438 |
+
</button>
|
| 439 |
+
<button class="lang-btn" onclick="changeGreeting('ู
ุฑุญุจุง', 'Arabic')">
|
| 440 |
+
<span>ู
ุฑุญุจุง<span class="lang-code">AR</span></span>
|
| 441 |
+
</button>
|
| 442 |
+
</div>
|
| 443 |
+
|
| 444 |
+
<div class="custom-input">
|
| 445 |
+
<input type="text" class="input-field" id="customGreeting" placeholder="Enter your greeting..." maxlength="30">
|
| 446 |
+
<button class="submit-btn" onclick="submitCustomGreeting()">Share Greeting</button>
|
| 447 |
+
</div>
|
| 448 |
+
</div>
|
| 449 |
+
</main>
|
| 450 |
+
|
| 451 |
+
<script>
|
| 452 |
+
let greetingCount = 0;
|
| 453 |
+
let languagesUsed = new Set(['English']);
|
| 454 |
+
|
| 455 |
+
function updateTimeGreeting() {
|
| 456 |
+
const hour = new Date().getHours();
|
| 457 |
+
const timeGreeting = document.getElementById('timeGreeting');
|
| 458 |
+
|
| 459 |
+
if (hour < 12) {
|
| 460 |
+
timeGreeting.textContent = 'Good morning! โ๏ธ';
|
| 461 |
+
} else if (hour < 17) {
|
| 462 |
+
timeGreeting.textContent = 'Good afternoon! ๐ค๏ธ';
|
| 463 |
+
} else if (hour < 21) {
|
| 464 |
+
timeGreeting.textContent = 'Good evening! ๐
';
|
| 465 |
+
} else {
|
| 466 |
+
timeGreeting.textContent = 'Good night! ๐';
|
| 467 |
+
}
|
| 468 |
+
}
|
| 469 |
+
|
| 470 |
+
function changeGreeting(greeting, language) {
|
| 471 |
+
const mainGreeting = document.getElementById('mainGreeting');
|
| 472 |
+
mainGreeting.style.transform = 'scale(0.8)';
|
| 473 |
+
mainGreeting.style.opacity = '0.5';
|
| 474 |
+
|
| 475 |
+
setTimeout(() => {
|
| 476 |
+
mainGreeting.textContent = greeting;
|
| 477 |
+
mainGreeting.style.transform = 'scale(1)';
|
| 478 |
+
mainGreeting.style.opacity = '1';
|
| 479 |
+
}, 200);
|
| 480 |
+
|
| 481 |
+
greetingCount++;
|
| 482 |
+
languagesUsed.add(language);
|
| 483 |
+
updateStats();
|
| 484 |
+
createEmojiRain();
|
| 485 |
+
}
|
| 486 |
+
|
| 487 |
+
function submitCustomGreeting() {
|
| 488 |
+
const input = document.getElementById('customGreeting');
|
| 489 |
+
const greeting = input.value.trim();
|
| 490 |
+
|
| 491 |
+
if (greeting) {
|
| 492 |
+
changeGreeting(greeting, 'Custom');
|
| 493 |
+
input.value = '';
|
| 494 |
+
|
| 495 |
+
// Add celebration effect
|
| 496 |
+
for (let i = 0; i < 5; i++) {
|
| 497 |
+
setTimeout(() => createEmojiRain(), i * 100);
|
| 498 |
+
}
|
| 499 |
+
}
|
| 500 |
+
}
|
| 501 |
+
|
| 502 |
+
function updateStats() {
|
| 503 |
+
document.getElementById('greetingCount').textContent = greetingCount;
|
| 504 |
+
document.getElementById('languageCount').textContent = languagesUsed.size;
|
| 505 |
+
}
|
| 506 |
+
|
| 507 |
+
function createEmojiRain() {
|
| 508 |
+
const emojis = ['๐', '๐', '๐', 'โจ', '๐ซ', '๐'];
|
| 509 |
+
const emoji = document.createElement('div');
|
| 510 |
+
emoji.className = 'emoji-rain';
|
| 511 |
+
emoji.textContent = emojis[Math.floor(Math.random() * emojis.length)];
|
| 512 |
+
emoji.style.left = Math.random() * window.innerWidth + 'px';
|
| 513 |
+
emoji.style.animationDuration = (Math.random() * 3 + 2) + 's';
|
| 514 |
+
document.body.appendChild(emoji);
|
| 515 |
+
|
| 516 |
+
setTimeout(() => emoji.remove(), 5000);
|
| 517 |
+
}
|
| 518 |
+
|
| 519 |
+
// Handle Enter key for custom greeting
|
| 520 |
+
document.getElementById('customGreeting').addEventListener('keypress', function(e) {
|
| 521 |
+
if (e.key === 'Enter') {
|
| 522 |
+
submitCustomGreeting();
|
| 523 |
+
}
|
| 524 |
+
});
|
| 525 |
+
|
| 526 |
+
// Initialize
|
| 527 |
+
updateTimeGreeting();
|
| 528 |
+
setInterval(updateTimeGreeting, 60000); // Update every minute
|
| 529 |
+
|
| 530 |
+
// Add some initial emoji rain
|
| 531 |
+
setInterval(() => {
|
| 532 |
+
if (Math.random() > 0.7) {
|
| 533 |
+
createEmojiRain();
|
| 534 |
+
}
|
| 535 |
+
}, 3000);
|
| 536 |
+
|
| 537 |
+
// Add hover sound effect (visual feedback)
|
| 538 |
+
document.querySelectorAll('.lang-btn, .submit-btn').forEach(btn => {
|
| 539 |
+
btn.addEventListener('mouseenter', () => {
|
| 540 |
+
btn.style.transform = 'translateY(-3px) scale(1.05)';
|
| 541 |
+
});
|
| 542 |
+
});
|
| 543 |
+
</script>
|
| 544 |
+
</body>
|
| 545 |
+
</html>
|