Use public status-s.php api instead of internal status.txt

This commit is contained in:
Xiretza 2022-08-15 10:10:05 +02:00
parent 975bca21ab
commit 6ec0abc936

View file

@ -46,12 +46,8 @@ var its = (function() {
} }
function refresh() { function refresh() {
$.get('https://spaceapi.it-syndikat.org/api/status.txt') $.get('https://spaceapi.it-syndikat.org/api/status-s.php')
.then(function(data) { .then(function(isitopen) {
var a = data.split(',');
var isitopen = a[0];
var up_date = new Date(parseInt(a[1]) * 1000);
var state; var state;
if(isitopen === 'true') if(isitopen === 'true')