Use public status-s.php api instead of internal status.txt
This commit is contained in:
parent
655a5fec36
commit
0d78dadf4e
1 changed files with 2 additions and 6 deletions
|
@ -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')
|
||||
|
|
Loading…
Reference in a new issue