diff --git a/counters.js b/counters.js index b74688e680..13b881c836 100644 --- a/counters.js +++ b/counters.js @@ -3,7 +3,7 @@ const MONTHNAME = [ "gennaio", "febbraio", "marzo", "aprile", "maggio", "giugno" function fetch_calendar() { const class_prefix = 'zerocalcare-' let ul = document.getElementById(class_prefix+"latest-events"); - fetch("https://golem.linux.it/cgi/zerocalcare-test/main.py?interval=4weeks") + fetch("https://cgi.golem.linux.it/zerocalcare/main.py?interval=4weeks") .then(response => response.json()) .then(json => { for (let i = 0; i < Math.min(3, json.length) ; ++i) { @@ -147,7 +147,7 @@ function fetch_calendar() { function counters() { fetch_calendar(); - fetch("https://golem.linux.it/wp/wp-json/wp/v2/posts") + fetch("https://blog.golem.linux.it/wp-json/wp/v2/posts") .then(response => response.json()) .then(json => { let ul = document.getElementById("wp-latest-posts"); @@ -169,7 +169,7 @@ function counters() { }) .catch(err => console.error(err)); - fetch("https://golem.linux.it/wp/wp-json/wp/v2/posts?sticky=true") + fetch("https://blog.golem.linux.it/wp-json/wp/v2/posts?sticky=true") .then(response => response.json()) .then(json => { let article = document.getElementById("wp-featured-posts"); @@ -194,7 +194,7 @@ function counters() { }) .catch(err => console.error(err)); - fetch("https://golem.linux.it/wiki/api.php?action=query&list=recentchanges&rcprop=title&rclimit=50&format=json&origin=*") + fetch("https://wiki.golem.linux.it/api.php?action=query&list=recentchanges&rcprop=title&rclimit=50&format=json&origin=*") .then(response => response.json()) .then(json => { let recentchanges = json.query.recentchanges; @@ -218,7 +218,7 @@ function counters() { }) .catch(function(error){console.log(error);}); - fetch("https://golem.linux.it/wp/wp-json/wp/v2/posts") + fetch("https://blog.golem.linux.it/wp-json/wp/v2/posts") .then(response => { let articles = response.headers.get("X-WP-Total"); @@ -227,7 +227,7 @@ function counters() { }) .catch(err => console.error(err)); - fetch("https://golem.linux.it/wiki/api.php?action=query&meta=siteinfo&siprop=statistics&format=json&origin=*") + fetch("https://wiki.golem.linux.it/api.php?action=query&meta=siteinfo&siprop=statistics&format=json&origin=*") .then(response => response.json()) .then(json => { let pages = json.query.statistics.articles;