forked from Chaospott/site
changed logo and fixed status
This commit is contained in:
@ -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>
|
||||
|
Reference in New Issue
Block a user