Made changes to number of hackers - better layout
parent
77a67e06e5
commit
a8a675616c
|
@ -73,7 +73,8 @@ h1, h2, h3, h4, h5, h6 {
|
||||||
}
|
}
|
||||||
|
|
||||||
.hackers {
|
.hackers {
|
||||||
font-size: 0.8em;
|
font-size: 0.4em;
|
||||||
|
margin-bottom: 1em;
|
||||||
}
|
}
|
||||||
|
|
||||||
.logo {
|
.logo {
|
||||||
|
|
|
@ -16,6 +16,7 @@
|
||||||
<div class="row">
|
<div class="row">
|
||||||
<div class="col-sm-12 col-md-4 logo">
|
<div class="col-sm-12 col-md-4 logo">
|
||||||
Level2
|
Level2
|
||||||
|
<div class="hackers"></div>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<div class="col-sm-6 col-md-4">
|
<div class="col-sm-6 col-md-4">
|
||||||
|
|
|
@ -224,12 +224,13 @@ function l2status() {
|
||||||
if (status.state.open) {
|
if (status.state.open) {
|
||||||
$('.status')
|
$('.status')
|
||||||
.addClass('open')
|
.addClass('open')
|
||||||
.html('<h1>Open</h1> Opened ' + timeStamp + "<br>" +
|
.html('<h1>Open</h1> Opened ' + timeStamp);
|
||||||
'<div class="hackers">' +status.sensors.people_now_present[0].value + ' people inside</div>' );
|
$('.hackers').html( status.sensors.people_now_present[0].value + ' people inside' );
|
||||||
} else {
|
} else {
|
||||||
$('.status')
|
$('.status')
|
||||||
.addClass('closed')
|
.addClass('closed')
|
||||||
.html('<h1>Closed</h1> ' + timeStamp);
|
.html('<h1>Closed</h1> ' + timeStamp);
|
||||||
|
$('.hackers').html('');
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
|
Loading…
Reference in New Issue