chaospott-site/_includes/header.html

65 lines
3.2 KiB
HTML

<nav class="navbar navbar-default navbar-fixed-top" role="navigation">
<hr id="status_bar">
<div class="container">
<div class="navbar-header">
<a class="navbar-brand" href="//chaospott.de">
chaospott
</a>
<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>
<div class="navbar-collapse collapse">
<ul class="nav navbar-nav">
<li><a href="/">Home</a></li>
<li class="divider-vertical"></li>
<li><a href="/blog/">Logbuch</a></li>
<li class="divider-vertical"></li>
<li><a href="/about.html">&Uuml;ber uns</a></li>
<li class="divider-vertical"></li>
<li><a href="/location.html">Anfahrt</a></li>
<li class="divider-vertical"></li>
<li><a href="/contact.html">Kontakt</a></li>
<li class="divider-vertical"></li>
<li><a href="https://wiki.chaospott.de">Wiki</a></li>
<li class="divider-vertical"></li>
<li><a href="https://podcast.chaospott.de">Podcast</a></li>
<li class="divider-vertical"></li>
<li><a href="https://chaospott.de/calendar.html">Termine</a></li>
</ul>
<ul class="nav navbar-nav navbar-right">
<script>
$.getJSON("https://apoc.uber.space/chaospott_mumble.json").done(function (data) {
if (data.connected_users > 0) {
$("#status_open").css("display", "block");
$("#status_bar").css("borderColor", "#29A900");
document.getElementById("mumble_users_online").text_content=data.connected_users;
} else {
$("#status_closed").css("display", "block");
$("#status_bar").css("borderColor", "#D9534F");
}
});
</script>
<li id="status_open" style="background-color:#29A900;">
<a href="mumble://mumble.chaospott.de" style="color:#ffffff !important;">
<i class="fa fa-unlock"></i> Nutzer online: <span id="mumble_users_online"></span>
</a>
</li>
<li id="status_closed" style="background-color:#D9534F;">
<a href="mumble://mumble.chaospott.de" style="color:#ffffff !important;">
<i class="fa fa-lock"></i> Keine Nutzer online
</a>
</li>
</ul>
</div>
</div>
<a href="/2020/03/28/virtueller-chaostreff.html">
<div style="margin-bottom: 0;" class="alert alert-danger text-center">
<p>Aufgrund der aktuellen Situation sind die Clubräume bis auf Weiteres geschlossen. Der Chaostreff findet online statt.</p>
</div>
</a>
</nav>