Update js/main.js

This commit is contained in:
2025-10-27 15:26:29 +01:00
parent 57a98a1cbd
commit 91890c9091

View File

@@ -32,6 +32,7 @@ bgClassContainer = [
]
searchEngines = {
"Google": "https://www.google.com/search?q=",
"FindShit": "https://findsh.it/search?q=",
"DuckDuckGo": "https://duckduckgo.com/?q=",
"Brave": "https://search.brave.com/search?q=",
"Yahoo": "https://search.yahoo.com/search?p=",
@@ -111,17 +112,17 @@ function buildMsg() {
currentTime = currentHour + (0.01 * currentMinute)
if (inRange(currentTime, 0, 5.59))
return "It's too late, take some sleep"
if (inRange(currentTime, 6, 8.59))
return "You're up early"
if (inRange(currentTime, 9, 11.59))
return "Have a good day ahead"
return "Rendort toi..."
if (inRange(currentTime, 6, 8.30))
return "Trop tot pour bosser"
if (inRange(currentTime, 8.31, 11.59))
return "Je sens que ca va etre une bonne journée"
if (inRange(currentTime, 12, 16.59))
return "Good Afternoon"
return "Bon aprem"
if (inRange(currentTime, 17, 19.59))
return "Good Evening"
return "Bonne soirée"
if (inRange(currentTime, 20, 24))
return "It's time to wrap up for the day"
return "Allez hop, on remballe"
else
return ""
}
@@ -136,7 +137,7 @@ function handleMessage(userName) {
*/
var builtMsg = buildMsg()
builtMsg == "" ?
builtMsg = `Hello ${userName}` : builtMsg = `Hey ${userName}, ${builtMsg}!`
builtMsg = `Salut ${userName}` : builtMsg = `Hey ${userName}, ${builtMsg}!`
return builtMsg;
}