site/_includes/header.html

50 lines
1.7 KiB
HTML
Raw Normal View History

<nav class="navbar navbar-default navbar-fixed-top" role="navigation">
2014-11-04 00:49:09 +00:00
<hr id="status_bar">
2014-10-26 13:11:10 +00:00
<div class="container">
<div class="navbar-header">
<button type="button" class="navbar-toggle collapsed" data-toggle="collapse" data-target=".navbar-collapse">
<span class="sr-only">Toggle navigation</span>
<span class="icon-bar"></span>
<span class="icon-bar"></span>
<span class="icon-bar"></span>
</button>
</div>
2014-10-26 13:11:10 +00:00
<div class="navbar-collapse collapse">
<ul class="nav navbar-nav">
<li><a href="/">Home</a></li>
2014-11-04 00:49:09 +00:00
<li class="divider-vertical"></li>
2014-10-26 13:11:10 +00:00
<li><a href="/blog.html">Logbuch</a></li>
2014-11-04 00:49:09 +00:00
<li class="divider-vertical"></li>
2014-10-26 13:11:10 +00:00
<li><a href="/#about">&Uuml;ber uns</a></li>
2014-11-04 00:49:09 +00:00
<li class="divider-vertical"></li>
2014-10-26 13:11:10 +00:00
<li><a href="#contact">Kontakt</a></li>
2014-11-04 00:49:09 +00:00
<li class="divider-vertical"></li>
<li><a href="http://wiki.chaospott.de">Wiki</a></li>
2014-10-26 13:11:10 +00:00
</ul>
<ul class="nav navbar-nav navbar-right">
2014-10-28 23:26:48 +00:00
<script>
2014-11-02 22:34:24 +00:00
$.getJSON("http://status.chaospott.de/status.json").done(function(data) {
2014-10-28 23:26:48 +00:00
if(data.state.open) {
2014-11-04 00:49:09 +00:00
$( "#status_open" ).css( "display", "block" );
2014-11-05 10:33:04 +00:00
$( "#status_bar" ).css( "borderColor", "#32AB3C" );
2014-10-28 23:26:48 +00:00
} else {
2014-11-04 00:49:09 +00:00
$( "#status_closed" ).css( "display", "block" );
$( "#status_bar" ).css( "borderColor", "#ff0000" );
2014-11-03 23:40:10 +00:00
}
2014-10-28 23:26:48 +00:00
});
</script>
2014-11-04 00:49:09 +00:00
<li id="status_open">
2014-11-05 10:33:04 +00:00
<a href="#" style="color:#32AB3C !important;">
2014-11-04 00:49:09 +00:00
Raum offen
2014-10-28 23:26:48 +00:00
</a>
</li>
2014-11-04 00:49:09 +00:00
<li id="status_closed">
<a href="#">
Raum geschlossen
2014-10-28 23:26:48 +00:00
</a>
</li>
</ul>
2014-10-26 13:11:10 +00:00
</div>
2014-10-20 20:33:40 +00:00
</div>
2014-10-26 13:11:10 +00:00
</nav>