gray status
This commit is contained in:
@@ -39,43 +39,38 @@
|
||||
<script>
|
||||
$.getJSON("https://status.chaospott.de/status.json").done(function (data) {
|
||||
if (data.state.open) {
|
||||
$("#status_open").css("display", "block");
|
||||
$("#foodoor").removeClass("unknown").addClass("open");
|
||||
$("#status_bar").css("borderColor", "#29A900");
|
||||
} else {
|
||||
$("#status_closed").css("display", "block");
|
||||
$("#foodoor").removeClass("unknown").addClass("closed");
|
||||
$("#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");
|
||||
if (data.connected_users > 1) {
|
||||
$("#mumble").removeClass("unknown").addClass("open");
|
||||
document.getElementById("mumble_users_online").textContent = data.connected_users;
|
||||
} else {
|
||||
$("#status_mumble_closed").css("display", "block");
|
||||
$("#mumble").removeClass("unknown").addClass("closed");
|
||||
}
|
||||
});
|
||||
</script>
|
||||
<li id="status_open" style="background-color:#29A900; display: none;">
|
||||
<a href="#" title="Der Club ist geöffnet">
|
||||
<span style="color:#ffffff !important;">Club: <i class="fa fa-lock-open"></i></span>
|
||||
</a>
|
||||
</li>
|
||||
<li id="status_closed" style="background-color:#D9534F; display: none;">
|
||||
<a href="#" title="Der Club ist geschlossen">
|
||||
<span style="color:#ffffff !important;">Club: <i class="fa fa-lock"></i></span>
|
||||
|
||||
<li id="foodoor" class="status unknown">
|
||||
<a href="#" style="color:#ffffff !important;">
|
||||
<span class="ifunknown" title="Clubstatus unbekannt">Club: <i class="fa fa-question"></i></span>
|
||||
<span class="ifopen" title="Der Club ist geöffnet">Club: <i class="fa fa-lock-open"></i></span>
|
||||
<span class="ifclosed" title="Der Club ist geschlossen">Club: <i class="fa fa-lock"></i></span>
|
||||
</a>
|
||||
</li>
|
||||
|
||||
<li id="spacer" style="background-color:#d2d4bc"> </li>
|
||||
|
||||
<li id="status_mumble_open" style="background-color:#29A900; display: none;">
|
||||
<li id="mumble" class="status unknown">
|
||||
<a href="mumble://mumble.chaospott.de" style="color:#ffffff !important;">
|
||||
<i class="fa fa-microphone"></i> 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> Mumble: 0
|
||||
<span class="ifunknown"><i class="fa fa-microphone-alt"></i> Mumble</span>
|
||||
<span class="ifopen"><i class="fa fa-microphone"></i> Mumble: <span id="mumble_users_online"></span></span>
|
||||
<span class="ifclosed"><i class="fa fa-microphone-slash"></i> Mumble: 0</span>
|
||||
</a>
|
||||
</li>
|
||||
</ul>
|
||||
|
@@ -22,10 +22,12 @@ body {
|
||||
.jumbotron {
|
||||
margin: 0;
|
||||
padding: 0;
|
||||
|
||||
.post-title {
|
||||
font-size: 42px;
|
||||
font-weight: normal;
|
||||
}
|
||||
|
||||
& > hr {
|
||||
background-color: #333;
|
||||
height: 1px;
|
||||
@@ -75,6 +77,7 @@ ul.navbar-nav li a {
|
||||
|
||||
a {
|
||||
color: $nav-link-color;
|
||||
|
||||
&:visited {
|
||||
color: $nav-link-color;
|
||||
}
|
||||
@@ -82,6 +85,7 @@ a {
|
||||
|
||||
.row {
|
||||
padding: 75px 0;
|
||||
|
||||
&-centered {
|
||||
text-align: center;
|
||||
margin: 0;
|
||||
@@ -94,6 +98,7 @@ a {
|
||||
height: 300px;
|
||||
margin: 0 0 100px 0;
|
||||
padding: 0;
|
||||
|
||||
img {
|
||||
position: relative;
|
||||
top: 30px;
|
||||
@@ -117,18 +122,35 @@ ul.nav>li>a {
|
||||
margin: auto;
|
||||
}
|
||||
|
||||
#status_open,
|
||||
#status_closed {
|
||||
.status {
|
||||
display: none;
|
||||
border: 0;
|
||||
}
|
||||
|
||||
#status_open a {
|
||||
.status {
|
||||
color: #fff !important;
|
||||
}
|
||||
|
||||
#status_closed a {
|
||||
color: #fff !important;
|
||||
.unknown {
|
||||
background-color: #808080;
|
||||
}
|
||||
|
||||
.open {
|
||||
background-color: #29A900;
|
||||
}
|
||||
|
||||
.closed {
|
||||
background-color: #D9534F;
|
||||
}
|
||||
|
||||
.ifopen, .ifclosed, .ifunknown {
|
||||
display: none !important;
|
||||
}
|
||||
|
||||
.status.open .ifopen,
|
||||
.status.closed .ifclosed,
|
||||
.status.unknown .ifunknown {
|
||||
display: unset !important;
|
||||
}
|
||||
|
||||
#status_bar {
|
||||
|
@@ -1,8 +1,8 @@
|
||||
---
|
||||
# Only the main Sass file needs front matter (the dashes are enough)
|
||||
---
|
||||
@charset "utf-8";
|
||||
|
||||
@charset "utf-8";
|
||||
|
||||
|
||||
// Our variables
|
||||
@@ -27,7 +27,6 @@ $on-laptop: 800px;
|
||||
$nav-link-color: #800032;
|
||||
|
||||
|
||||
|
||||
// Using media queries with like this:
|
||||
// @include media-query($palm) {
|
||||
// .wrapper {
|
||||
@@ -42,14 +41,9 @@ $nav-link-color: #800032;
|
||||
}
|
||||
|
||||
|
||||
|
||||
// Import partials from `sass_dir` (defaults to `_sass`)
|
||||
@import
|
||||
"base",
|
||||
@import "base",
|
||||
"layout",
|
||||
"syntax-highlighting",
|
||||
"chaospott",
|
||||
"calendar"
|
||||
;
|
||||
|
||||
|
||||
"calendar";
|
||||
|
Reference in New Issue
Block a user