From 91890c9091780431eb35532b1080dbaab15826bf Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?S=C3=A9bastien=20QUEROL?= Date: Mon, 27 Oct 2025 15:26:29 +0100 Subject: [PATCH] Update js/main.js --- js/main.js | 19 ++++++++++--------- 1 file changed, 10 insertions(+), 9 deletions(-) diff --git a/js/main.js b/js/main.js index ccec525..128c391 100644 --- a/js/main.js +++ b/js/main.js @@ -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; }