3 Commits

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

View File

@@ -17,7 +17,7 @@ timeZ = undefined
otherContentId = "other-content"
userName = ""
disable24Hour = false;
appId = "fd2c04ed7f9802656bd2cc23bddc7ad9"
appId = "d319d5bd85895258efbd0bffc9e9a894"
apiUrl = "http://api.openweathermap.org/data/2.5/weather"
bgClassContainer = [
"media",
@@ -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;
}