site/_includes/header.html

42 lines
1.4 KiB
HTML
Raw Normal View History

<nav class="navbar navbar-default navbar-fixed-top" role="navigation">
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>
<li><a href="/blog.html">Logbuch</a></li>
<li><a href="/#about">&Uuml;ber uns</a></li>
<li><a href="#contact">Kontakt</a></li>
</ul>
<ul class="nav navbar-nav navbar-right">
2014-10-28 23:26:48 +00:00
<script>
$.getJSON("js/status.json").done(function(data) {
if(data.state.open) {
document.getElementById('status_open').style.display='block';
} else {
document.getElementById('status_closed').style.display='block';
}
});
</script>
<li id="status_open" style="display:none;">
<a href="#" style="color:#00ff00;">
Raum: offen
</a>
</li>
<li id="status_closed" style="display:none;">
<a href="#" style="color:#ff0000;">
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>