changed logo and fixed status

This commit is contained in:
Timm Szigat
2014-11-04 00:40:10 +01:00
parent 0b657b9791
commit c092c35c75
3 changed files with 317 additions and 4 deletions

View File

@ -1,4 +1,5 @@
<nav class="navbar navbar-default navbar-fixed-top" role="navigation">
<hr id="status_bar" style="margin:0; border-width:4px 0px;">
<div class="container">
<div class="navbar-header">
<button type="button" class="navbar-toggle collapsed" data-toggle="collapse" data-target=".navbar-collapse">
@ -20,13 +21,15 @@
$.getJSON("http://status.chaospott.de/status.json").done(function(data) {
if(data.state.open) {
document.getElementById('status_open').style.display='block';
document.getElementById('status_bar').style.borderColor='#00ff00';
} else {
document.getElementById('status_closed').style.display='block';
}
document.getElementById('status_bar').style.borderColor='#ff0000';
}
});
</script>
<li id="status_open" style="display:none;">
<a href="#" style="color:#00ff00;">
<li id="status_open" style="display:none; border-right:0;">
<a href="#" style="color:#00ff00 !important;">
Raum: offen
</a>
</li>