using spaceAPI v0.13
parent
80760e3852
commit
6de460dcfc
|
@ -213,14 +213,14 @@ function l2status() {
|
|||
|
||||
var request = $.ajax({
|
||||
type: 'get',
|
||||
url: 'https://www.hackerspace.lu/od/',
|
||||
url: 'https://spaceapi.syn2cat.lu/status/json',
|
||||
complete: function( response ) {
|
||||
|
||||
var status = JSON.parse( response.responseText );
|
||||
|
||||
$('.status').removeClass('open').removeClass('closed');
|
||||
|
||||
if ( status.open ) {
|
||||
if ( status.state.open ) {
|
||||
$('.status').addClass('open').text('Open');
|
||||
} else {
|
||||
$('.status').addClass('closed').text('Closed');
|
||||
|
|
Loading…
Reference in New Issue