fix statusbar

This commit is contained in:
gidsi 2018-09-09 12:20:53 +02:00
parent babf6b2378
commit 1ba34e828c
No known key found for this signature in database
GPG Key ID: B47291090A6E5604

View File

@ -31,7 +31,7 @@
<ul class="nav navbar-nav navbar-right">
<script>
$.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_bar" ).css( "borderColor", "#5CB85C" );
} else {