3 Commits
taff ... perso

Author SHA1 Message Date
6110949622 Update js/main.js 2025-10-27 15:28:16 +01:00
91890c9091 Update js/main.js 2025-10-27 15:26:29 +01:00
57a98a1cbd Update config.json
Customization
2025-10-27 15:21:18 +01:00
2 changed files with 33 additions and 31 deletions

View File

@@ -3,50 +3,51 @@
{ "name": "media", { "name": "media",
"color": "#61afef", "color": "#61afef",
"links": [ "links": [
{ "name": "Spotify", "url": "https://open.spotify.com/" }, { "name": "Youtube", "url": "https://youtube.com" },
{ "name": "YoutubeMusic", "url": "https://music.youtube.com/" }, { "name": "Jellyfin", "url": "https://stream.kawa.zip/" },
{ "name": "Netflix", "url": "https://netflix.com" }, { "name": "KawaMusic", "url": "https://music.kawawete.xyz/" },
{ "name": "Youtube", "url": "https://youtube.com" } { "name": "Tidal", "url": "https://tidal.com" },
{ "name": "Tidal", "url": "https://zic.kawa.zip" }
] ]
}, },
{ "name": "work", { "name": "homelab",
"color": "#e06c75", "color": "#e06c75",
"links": [ "links": [
{ "name": "Github", "url": "https://github.com" }, { "name": "Front 1 Portainer", "url": "https://port.team4kw.fr" },
{ "name": "Heroku", "url": "http://heroku.com/" }, { "name": "Front 2 Portainer", "url": "https://port.azuze.fr/" },
{ "name": "localhost", "url": "http://localhost:8000/" } { "name": "IIRIAM Dockge", "url": "https://yacht.iiriam.fr/" }
] ]
}, },
{ "name": "social", { "name": "social",
"color": "#e5c07b", "color": "#e5c07b",
"links": [ "links": [
{ "name": "Reddit", "url": "https://reddit.com" }, { "name": "Reddit", "url": "https://reddit.com" },
{ "name": "Unixporn Love", "url": "https://deepjyoti30.github.io/unixporn-love/" }, { "name": "9GAG", "url": "https://9gag.com" },
{ "name": "r/unixporn", "url": "https://www.reddit.com/r/unixporn/" }, { "name": "Twitter", "url": "https://x.com/" },
{ "name": "r/mk", "url": "https://www.reddit.com/r/MechanicalKeyboards/" } { "name": "Instagram", "url": "https://instagram.com/" }
] ]
}, },
{ {
"name": "Others", "name": "tools",
"color": "#98c379", "color": "#98c379",
"links": [ "links": [
{"name": "Material Colors", "url": "http://materialuicolors.co/"}, {"name": "PDF", "url": "https://pdf.larrache.fr/"},
{"name": "Gmail", "url": "http://gmail.com/"}, {"name": "YT DL", "url": "https://ytdl.kawa.zip/"},
{"name": "neo4j Local", "url": "http://localhost:7474/"}, {"name": "OmniTools", "url": "https://tools.larrache.fr/"},
{"name": "rarbg", "url": "http://rarbg.to"} {"name": "Penpot", "url": "https://id.larrache.fr"}
] ]
} }
], ],
"searchEngine":"Brave", "searchEngine":"FindShit",
"user": "Pirate", "user": "Kawa",
"disableMessage": false, "disableMessage": false,
"disableDate": false, "disableDate": false,
"disableSearchBar": false, "disableSearchBar": false,
"disable24Hour": true, "disable24Hour": false,
"disableWeather": false, "disableWeather": false,
"timeZone": "Africa/Cairo", "timeZone": "Europe/Paris",
"weatherConf": { "weatherConf": {
"location": "Giza Egypt", "location": "Melun",
"unit": "cel" "unit": "cel"
}, },
"settingsIcon": false, "settingsIcon": false,

View File

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