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