site/_includes/header.html

84 lines
4.2 KiB
HTML
Raw Normal View History

<nav class="navbar navbar-default navbar-fixed-top" role="navigation">
<hr id="status_bar">
<div class="container">
<div class="navbar-header">
2022-04-15 13:39:14 +00:00
<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>
2019-08-13 22:04:35 +00:00
<li><a href="/about.html">&Uuml;ber uns</a></li>
<li class="divider-vertical"></li>
2021-12-18 17:42:25 +00:00
<li><a href="/virtuell.html">Virtueller c3e</a></li>
2021-02-20 16:10:16 +00:00
<!-- li class="divider-vertical"></li>
<li><a href="/location.html">Anfahrt</a></li -->
<li class="divider-vertical"></li>
2021-12-18 17:42:25 +00:00
<li><a href="/cms.html">Schule</a></li>
2021-05-29 19:36:41 +00:00
<li class="divider-vertical"></li>
<li><a href="/contact.html">Kontakt</a></li>
<li class="divider-vertical"></li>
2020-12-24 13:38:23 +00:00
<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>
2021-02-20 16:10:16 +00:00
<li><a href="/calendar.html">Termine</a></li>
</ul>
2021-02-18 17:51:01 +00:00
<ul class="nav navbar-nav navbar-right">
<script>
2022-04-15 13:39:14 +00:00
$.getJSON("https://status.chaospott.de/status.json").done(function (data) {
if (data.state.open) {
$("#status_open").css("display", "block");
2019-08-06 17:37:25 +00:00
$("#status_bar").css("borderColor", "#29A900");
} else {
$("#status_closed").css("display", "block");
$("#status_bar").css("borderColor", "#D9534F");
}
});
2022-04-15 13:39:14 +00:00
$.getJSON("https://status.chaospott.de/chaospott_mumble.json").done(function (data) {
2022-04-15 14:00:37 +00:00
if (data.connected_users-1 > 0) {
2022-04-15 13:39:14 +00:00
$("#status_mumble_open").css("display", "block");
document.getElementById("mumble_users_online").textContent=data.connected_users;
} else {
$("#status_mumble_closed").css("display", "block");
}
});
</script>
2022-04-15 13:43:19 +00:00
<li id="status_open" style="background-color:#29A900; display: none;">
2022-04-15 14:14:25 +00:00
<a href="#" title="Der Club ist geöffnet">
2022-04-15 14:07:21 +00:00
<span style="color:#ffffff !important;">Club: <i class="fa fa-lock-open"></i></span>
2022-04-15 13:52:50 +00:00
</a>
2022-04-15 13:39:14 +00:00
</li>
2022-04-15 13:43:19 +00:00
<li id="status_closed" style="background-color:#D9534F; display: none;">
2022-04-15 14:14:25 +00:00
<a href="#" title="Der Club ist geschlossen">
2022-04-15 14:11:32 +00:00
<span style="color:#ffffff !important;">Club: <i class="fa fa-lock"></i></span>
2022-04-15 13:52:50 +00:00
</a>
2022-04-15 13:39:14 +00:00
</li>
2022-04-15 13:47:25 +00:00
<li id="spacer" style="background-color:#ccc">&nbsp;</li>
2022-04-15 13:43:19 +00:00
<li id="status_mumble_open" style="background-color:#29A900; display: none;">
2021-02-18 17:51:01 +00:00
<a href="mumble://mumble.chaospott.de" style="color:#ffffff !important;">
2022-04-15 14:06:19 +00:00
<i class="fa fa-microphone"></i> Mumble: <span id="mumble_users_online"></span>
</a>
</li>
2022-04-15 13:43:19 +00:00
<li id="status_mumble_closed" style="background-color:#D9534F; display: none;">
2021-02-18 17:51:01 +00:00
<a href="mumble://mumble.chaospott.de" style="color:#ffffff !important;">
2022-04-15 14:06:19 +00:00
<i class="fa fa-microphone-slash"></i> Mumble: 0
</a>
</li>
2021-02-18 17:51:01 +00:00
</ul>
</div>
</div>
2014-10-26 13:11:10 +00:00
</nav>