Merge ../its-meta-theme-dark
This commit is contained in:
commit
dd7e532dc9
1 changed files with 18 additions and 15 deletions
|
@ -48,7 +48,7 @@ var its = (function() {
|
||||||
|
|
||||||
function refresh() {
|
function refresh() {
|
||||||
$.get('https://it-syndikat.org/api/status.txt')
|
$.get('https://it-syndikat.org/api/status.txt')
|
||||||
.done(function(data) {
|
.then(function(data) {
|
||||||
var a = data.split(',');
|
var a = data.split(',');
|
||||||
var isitopen = a[0];
|
var isitopen = a[0];
|
||||||
var up_date = new Date(parseInt(a[1]) * 1000);
|
var up_date = new Date(parseInt(a[1]) * 1000);
|
||||||
|
@ -64,6 +64,9 @@ var its = (function() {
|
||||||
|
|
||||||
console.log('isitopen: it is', state);
|
console.log('isitopen: it is', state);
|
||||||
update_dom(state);
|
update_dom(state);
|
||||||
|
}, function() {
|
||||||
|
console.log('isitopen: it is', 'error');
|
||||||
|
update_dom('error');
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue