Made changes to number of hackers - better layout

gh-pages
Cyrille Médard de Chardon 2014-09-23 21:23:56 +02:00
parent 77a67e06e5
commit a8a675616c
3 changed files with 6 additions and 3 deletions

View File

@ -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 {

View File

@ -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">

View File

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