Compare commits
No commits in common. "6ec0abc93669ead0a20af776e515dbbdb353de7d" and "b92c23472e229bda99df383362383dde74c8f7a4" have entirely different histories.
6ec0abc936
...
b92c23472e
|
@ -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