using spaceAPI v0.13

gh-pages
Thierry Degeling 2014-08-17 03:29:34 +02:00
parent 80760e3852
commit 6de460dcfc
1 changed files with 2 additions and 2 deletions

View File

@ -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');