Made the number of hackers display in green box

gh-pages
Cyrille Médard de Chardon 2014-09-23 20:53:24 +02:00
parent 54ce204206
commit 77a67e06e5
3 changed files with 8 additions and 7 deletions

View File

@ -72,6 +72,10 @@ h1, h2, h3, h4, h5, h6 {
.weather {
}
.hackers {
font-size: 0.8em;
}
.logo {
text-align: center;
font-size: 4em;

View File

@ -1,4 +1,3 @@
<!DOCTYPE HTML>
<html>
@ -17,11 +16,11 @@
<div class="row">
<div class="col-sm-12 col-md-4 logo">
Level2
<div class="NbrHackers"></div>
</div>
<div class="col-sm-6 col-md-4">
<div class="panel status"></div>
<div class="panel status">
</div>
</div>
<div class="col-sm-6 col-md-4 datetime">

View File

@ -224,15 +224,13 @@ function l2status() {
if (status.state.open) {
$('.status')
.addClass('open')
.html('<h1>Open</h1> Opened ' + timeStamp);
.html('<h1>Open</h1> Opened ' + timeStamp + "<br>" +
'<div class="hackers">' +status.sensors.people_now_present[0].value + ' people inside</div>' );
} else {
$('.status')
.addClass('closed')
.html('<h1>Closed</h1> ' + timeStamp);
}
$('.NbrHackers').text( status.sensors.people_now_present[0].value + ' people inside' );
}
});