Update index.html

added more emojis
This commit is contained in:
Paweł Orzech 2025-06-28 17:01:32 +02:00
parent eb14201acf
commit e9c44332a5

View file

@ -328,11 +328,17 @@
// Determine emoji based on hour // Determine emoji based on hour
const hour = now.getHours(); const hour = now.getHours();
let emoji; let emoji;
if (hour >= 6 && hour < 18) { // 6 AM to 5:59 PM if (hour >= 5 && hour < 7) { // Dawn
emoji = '🌅';
} else if (hour >= 7 && hour < 12) { // Morning
emoji = '☀️'; emoji = '☀️';
} else if (hour >= 18 && hour < 20) { // 6 PM to 7:59 PM (sunset) } else if (hour >= 12 && hour < 17) { // Afternoon
emoji = '😎';
} else if (hour >= 17 && hour < 19) { // Dusk
emoji = '🌇'; emoji = '🌇';
} else { // 8 PM to 5:59 AM } else if (hour >= 19 && hour < 22) { // Evening
emoji = '🌆';
} else { // Night
emoji = '🌙'; emoji = '🌙';
} }