91 lines
4.4 KiB
HTML
91 lines
4.4 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="https://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">Über uns</a></li>
|
|
<li class="divider-vertical"></li>
|
|
<li><a href="/virtuell.html">Virtueller c3e</a></li>
|
|
<!-- li class="divider-vertical"></li>
|
|
<li><a href="/location.html">Anfahrt</a></li -->
|
|
<li class="divider-vertical"></li>
|
|
<li><a href="/cms.html">Schule</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="/calendar.html">Termine</a></li>
|
|
</ul>
|
|
<ul class="nav navbar-nav navbar-right">
|
|
<script>
|
|
$.getJSON("https://status.chaospott.de/status.json").done(function (data) {
|
|
if (data.state.open) {
|
|
$("#status_open").css("display", "block");
|
|
$("#status_bar").css("borderColor", "#29A900");
|
|
} else {
|
|
$("#status_closed").css("display", "block");
|
|
$("#status_bar").css("borderColor", "#D9534F");
|
|
}
|
|
});
|
|
$.getJSON("https://status.chaospott.de/chaospott_mumble.json").done(function (data) {
|
|
if (data.connected_users-1 > 0) {
|
|
$("#status_mumble_open").css("display", "block");
|
|
document.getElementById("mumble_users_online").textContent=data.connected_users;
|
|
} else {
|
|
$("#status_mumble_closed").css("display", "block");
|
|
}
|
|
});
|
|
</script>
|
|
<li id="status_open" style="background-color:#29A900; display: none;">
|
|
<a href="#">
|
|
<span style="color:#ffffff !important;">Club: Auf</span>
|
|
</a>
|
|
</li>
|
|
<li id="status_closed" style="background-color:#D9534F; display: none;">
|
|
<a href="#">
|
|
<span style="color:#ffffff !important;">Club: Zu</span>
|
|
</a>
|
|
</li>
|
|
|
|
<li id="spacer" style="background-color:#ccc"> </li>
|
|
|
|
<li id="status_mumble_open" style="background-color:#29A900; display: none;">
|
|
<a href="mumble://mumble.chaospott.de" style="color:#ffffff !important;">
|
|
<i class="fa fa-microphone"></i> Nutzer im Mumble: <span id="mumble_users_online"></span>
|
|
</a>
|
|
</li>
|
|
<li id="status_mumble_closed" style="background-color:#D9534F; display: none;">
|
|
<a href="mumble://mumble.chaospott.de" style="color:#ffffff !important;">
|
|
<i class="fa fa-microphone-slash"></i> Keine Nutzer im Mumble
|
|
</a>
|
|
</li>
|
|
</ul>
|
|
</div>
|
|
</div>
|
|
<a href="/corona.html">
|
|
<div style="margin-bottom: 0;" class="alert alert-danger text-center">
|
|
|
|
<p> Unser neues Coronakonzept regelt den Besuch der Clubräume. Der Chaostreff findet weiterhin online statt.</p>
|
|
|
|
</div>
|
|
</a>
|
|
</nav>
|