forked from Chaospott/site
fix statusbar
This commit is contained in:
parent
babf6b2378
commit
1ba34e828c
@ -31,7 +31,7 @@
|
|||||||
<ul class="nav navbar-nav navbar-right">
|
<ul class="nav navbar-nav navbar-right">
|
||||||
<script>
|
<script>
|
||||||
$.getJSON("https://status.chaospott.de/api/").done(function(data) {
|
$.getJSON("https://status.chaospott.de/api/").done(function(data) {
|
||||||
if(!data.sensors.door_locked[0].value || !data.sensors.door_locked[1].value ) {
|
if(!data.state.open ) {
|
||||||
$( "#status_open" ).css( "display", "block" );
|
$( "#status_open" ).css( "display", "block" );
|
||||||
$( "#status_bar" ).css( "borderColor", "#5CB85C" );
|
$( "#status_bar" ).css( "borderColor", "#5CB85C" );
|
||||||
} else {
|
} else {
|
||||||
|
Loading…
Reference in New Issue
Block a user