Compare commits
No commits in common. "0d78dadf4e73b6285670ee776333c86a3346d78f" and "bfb51455be7f825ff1d07689cba0c8fc7796e922" have entirely different histories.
0d78dadf4e
...
bfb51455be
|
@ -46,8 +46,12 @@ var its = (function() {
|
|||
}
|
||||
|
||||
function refresh() {
|
||||
$.get('https://spaceapi.it-syndikat.org/api/status-s.php')
|
||||
.then(function(isitopen) {
|
||||
$.get('https://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);
|
||||
|
||||
var state;
|
||||
|
||||
if(isitopen === 'true')
|
||||
|
|
Loading…
Reference in a new issue