diff --git a/config.json b/config.json index 45ec745..7c8a82d 100644 --- a/config.json +++ b/config.json @@ -1,6 +1,6 @@ { - "navbarBrandText": "Mastowall 1.1 - written by ChatGPT4 - Prompting: Ralf Stockmann (rstockm)", - "defaultServerUrl": "https://mastodon.social", - "navbarColor": "#333355", + "navbarBrandText": "Netzbegrünung Mastowall", + "defaultServerUrl": "https://gruene.social", + "navbarColor": "#008939", "includeReplies": true } diff --git a/index.html b/index.html index 9475c6d..b6488d7 100644 --- a/index.html +++ b/index.html @@ -3,7 +3,7 @@ - Mastowall 1.1 + Netzbegrünung Mastowall @@ -52,8 +52,8 @@ diff --git a/mastowall-favicon.png b/mastowall-favicon.png index 5d1e3e7..88f9316 100644 Binary files a/mastowall-favicon.png and b/mastowall-favicon.png differ diff --git a/script.js b/script.js index 6b5c846..566c234 100644 --- a/script.js +++ b/script.js @@ -16,20 +16,20 @@ const secondsAgo = date => Math.floor((new Date() - date) / 1000); const timeAgo = function(seconds) { // An array of intervals for years, months, days, hours, and minutes. const intervals = [ - { limit: 31536000, text: 'years' }, - { limit: 2592000, text: 'months' }, - { limit: 86400, text: 'days' }, - { limit: 3600, text: 'hours' }, - { limit: 60, text: 'minutes' } + { limit: 31536000, text: 'Jahren' }, + { limit: 2592000, text: 'Monaten' }, + { limit: 86400, text: 'Tagen' }, + { limit: 3600, text: 'Stunden' }, + { limit: 60, text: 'Minuten' } ]; // Loop through the intervals to find which one is the best fit. for (let interval of intervals) { if (seconds >= interval.limit) { - return Math.floor(seconds / interval.limit) + ` ${interval.text} ago`; + return "Vor " + Math.floor(seconds / interval.limit) + ` ${interval.text}`; } } - return Math.floor(seconds) + " seconds ago"; + return "Vor " + Math.floor(seconds) + " Sekunden"; }; let includeReplies;