From 0d78dadf4e73b6285670ee776333c86a3346d78f Mon Sep 17 00:00:00 2001 From: Xiretza Date: Mon, 15 Aug 2022 10:05:08 +0200 Subject: [PATCH] Use public status-s.php api instead of internal status.txt --- common/body_tag.html | 8 ++------ 1 file changed, 2 insertions(+), 6 deletions(-) diff --git a/common/body_tag.html b/common/body_tag.html index 93e9c70..c388cf8 100644 --- a/common/body_tag.html +++ b/common/body_tag.html @@ -46,12 +46,8 @@ var its = (function() { } function refresh() { - $.get('https://spaceapi.it-syndikat.org/api/status.txt') - .then(function(data) { - var a = data.split(','); - var isitopen = a[0]; - var up_date = new Date(parseInt(a[1]) * 1000); - + $.get('https://spaceapi.it-syndikat.org/api/status-s.php') + .then(function(isitopen) { var state; if(isitopen === 'true')