Refreshing made faster ;)
parent
38d2a4b017
commit
501f8dc7c7
|
@ -192,8 +192,6 @@ function OWMIcon( imageCode ) {
|
|||
|
||||
function l2status() {
|
||||
|
||||
$('.status').removeClass('open').removeClass('closed');
|
||||
|
||||
var request = $.ajax({
|
||||
type: 'get',
|
||||
url: 'https://www.hackerspace.lu/od/',
|
||||
|
@ -201,6 +199,8 @@ function l2status() {
|
|||
|
||||
var status = JSON.parse( response.responseText );
|
||||
|
||||
$('.status').removeClass('open').removeClass('closed');
|
||||
|
||||
if ( status.open ) {
|
||||
$('.status').addClass('open').text('Open');
|
||||
} else {
|
||||
|
|
Loading…
Reference in New Issue