gray status
This commit is contained in:
@@ -39,46 +39,41 @@
|
|||||||
<script>
|
<script>
|
||||||
$.getJSON("https://status.chaospott.de/status.json").done(function (data) {
|
$.getJSON("https://status.chaospott.de/status.json").done(function (data) {
|
||||||
if (data.state.open) {
|
if (data.state.open) {
|
||||||
$("#status_open").css("display", "block");
|
$("#foodoor").removeClass("unknown").addClass("open");
|
||||||
$("#status_bar").css("borderColor", "#29A900");
|
$("#status_bar").css("borderColor", "#29A900");
|
||||||
} else {
|
} else {
|
||||||
$("#status_closed").css("display", "block");
|
$("#foodoor").removeClass("unknown").addClass("closed");
|
||||||
$("#status_bar").css("borderColor", "#D9534F");
|
$("#status_bar").css("borderColor", "#D9534F");
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
$.getJSON("https://status.chaospott.de/chaospott_mumble.json").done(function (data) {
|
$.getJSON("https://status.chaospott.de/chaospott_mumble.json").done(function (data) {
|
||||||
if (data.connected_users-1 > 0) {
|
if (data.connected_users > 1) {
|
||||||
$("#status_mumble_open").css("display", "block");
|
$("#mumble").removeClass("unknown").addClass("open");
|
||||||
document.getElementById("mumble_users_online").textContent=data.connected_users;
|
document.getElementById("mumble_users_online").textContent = data.connected_users;
|
||||||
} else {
|
} else {
|
||||||
$("#status_mumble_closed").css("display", "block");
|
$("#mumble").removeClass("unknown").addClass("closed");
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
</script>
|
</script>
|
||||||
<li id="status_open" style="background-color:#29A900; display: none;">
|
|
||||||
<a href="#" title="Der Club ist geöffnet">
|
<li id="foodoor" class="status unknown">
|
||||||
<span style="color:#ffffff !important;">Club: <i class="fa fa-lock-open"></i></span>
|
<a href="#" style="color:#ffffff !important;">
|
||||||
</a>
|
<span class="ifunknown" title="Clubstatus unbekannt">Club: <i class="fa fa-question"></i></span>
|
||||||
</li>
|
<span class="ifopen" title="Der Club ist geöffnet">Club: <i class="fa fa-lock-open"></i></span>
|
||||||
<li id="status_closed" style="background-color:#D9534F; display: none;">
|
<span class="ifclosed" title="Der Club ist geschlossen">Club: <i class="fa fa-lock"></i></span>
|
||||||
<a href="#" title="Der Club ist geschlossen">
|
|
||||||
<span style="color:#ffffff !important;">Club: <i class="fa fa-lock"></i></span>
|
|
||||||
</a>
|
</a>
|
||||||
</li>
|
</li>
|
||||||
|
|
||||||
<li id="spacer" style="background-color:#d2d4bc"> </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;">
|
<a href="mumble://mumble.chaospott.de" style="color:#ffffff !important;">
|
||||||
<i class="fa fa-microphone"></i> Mumble: <span id="mumble_users_online"></span>
|
<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>
|
</a>
|
||||||
</li>
|
</li>
|
||||||
<li id="status_mumble_closed" style="background-color:#D9534F; display: none;">
|
</ul>
|
||||||
<a href="mumble://mumble.chaospott.de" style="color:#ffffff !important;">
|
|
||||||
<i class="fa fa-microphone-slash"></i> Mumble: 0
|
|
||||||
</a>
|
|
||||||
</li>
|
|
||||||
</ul>
|
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
<hr id="status_bar">
|
<hr id="status_bar">
|
||||||
|
@@ -22,11 +22,13 @@ body {
|
|||||||
.jumbotron {
|
.jumbotron {
|
||||||
margin: 0;
|
margin: 0;
|
||||||
padding: 0;
|
padding: 0;
|
||||||
|
|
||||||
.post-title {
|
.post-title {
|
||||||
font-size: 42px;
|
font-size: 42px;
|
||||||
font-weight: normal;
|
font-weight: normal;
|
||||||
}
|
}
|
||||||
&>hr {
|
|
||||||
|
& > hr {
|
||||||
background-color: #333;
|
background-color: #333;
|
||||||
height: 1px;
|
height: 1px;
|
||||||
border: 3px #333 solid;
|
border: 3px #333 solid;
|
||||||
@@ -47,7 +49,7 @@ body {
|
|||||||
}
|
}
|
||||||
|
|
||||||
.navbar-fixed-top .navbar-collapse, .navbar-fixed-bottom .navbar-collapse {
|
.navbar-fixed-top .navbar-collapse, .navbar-fixed-bottom .navbar-collapse {
|
||||||
max-height: 600px;
|
max-height: 600px;
|
||||||
}
|
}
|
||||||
|
|
||||||
ul.navbar-right {
|
ul.navbar-right {
|
||||||
@@ -75,6 +77,7 @@ ul.navbar-nav li a {
|
|||||||
|
|
||||||
a {
|
a {
|
||||||
color: $nav-link-color;
|
color: $nav-link-color;
|
||||||
|
|
||||||
&:visited {
|
&:visited {
|
||||||
color: $nav-link-color;
|
color: $nav-link-color;
|
||||||
}
|
}
|
||||||
@@ -82,6 +85,7 @@ a {
|
|||||||
|
|
||||||
.row {
|
.row {
|
||||||
padding: 75px 0;
|
padding: 75px 0;
|
||||||
|
|
||||||
&-centered {
|
&-centered {
|
||||||
text-align: center;
|
text-align: center;
|
||||||
margin: 0;
|
margin: 0;
|
||||||
@@ -94,6 +98,7 @@ a {
|
|||||||
height: 300px;
|
height: 300px;
|
||||||
margin: 0 0 100px 0;
|
margin: 0 0 100px 0;
|
||||||
padding: 0;
|
padding: 0;
|
||||||
|
|
||||||
img {
|
img {
|
||||||
position: relative;
|
position: relative;
|
||||||
top: 30px;
|
top: 30px;
|
||||||
@@ -108,7 +113,7 @@ a {
|
|||||||
margin-right: -4px;
|
margin-right: -4px;
|
||||||
}
|
}
|
||||||
|
|
||||||
ul.nav>li>a {
|
ul.nav > li > a {
|
||||||
color: $nav-link-color;
|
color: $nav-link-color;
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -117,18 +122,35 @@ ul.nav>li>a {
|
|||||||
margin: auto;
|
margin: auto;
|
||||||
}
|
}
|
||||||
|
|
||||||
#status_open,
|
.status {
|
||||||
#status_closed {
|
|
||||||
display: none;
|
display: none;
|
||||||
border: 0;
|
border: 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
#status_open a {
|
.status {
|
||||||
color: #fff !important;
|
color: #fff !important;
|
||||||
}
|
}
|
||||||
|
|
||||||
#status_closed a {
|
.unknown {
|
||||||
color: #fff !important;
|
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 {
|
#status_bar {
|
||||||
@@ -152,7 +174,7 @@ ul.nav>li>a {
|
|||||||
.navbar-brand {
|
.navbar-brand {
|
||||||
display: block;
|
display: block;
|
||||||
}
|
}
|
||||||
.navbar-collapse .nav>.divider-vertical {
|
.navbar-collapse .nav > .divider-vertical {
|
||||||
display: none;
|
display: none;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@@ -1,31 +1,30 @@
|
|||||||
---
|
---
|
||||||
# Only the main Sass file needs front matter (the dashes are enough)
|
# Only the main Sass file needs front matter (the dashes are enough)
|
||||||
---
|
---
|
||||||
@charset "utf-8";
|
|
||||||
|
|
||||||
|
@charset "utf-8";
|
||||||
|
|
||||||
|
|
||||||
// Our variables
|
// Our variables
|
||||||
$base-font-family: 'Share Tech', sans-serif;
|
$base-font-family: 'Share Tech', sans-serif;
|
||||||
$base-font-size: 16px;
|
$base-font-size: 16px;
|
||||||
$small-font-size: $base-font-size * 0.875;
|
$small-font-size: $base-font-size * 0.875;
|
||||||
$base-line-height: 1.5;
|
$base-line-height: 1.5;
|
||||||
|
|
||||||
$spacing-unit: 30px;
|
$spacing-unit: 30px;
|
||||||
|
|
||||||
$text-color: #111;
|
$text-color: #111;
|
||||||
$background-color: #d2d4bc;
|
$background-color: #d2d4bc;
|
||||||
$brand-color: #2a7ae2;
|
$brand-color: #2a7ae2;
|
||||||
|
|
||||||
$grey-color: #828282;
|
$grey-color: #828282;
|
||||||
$grey-color-light: lighten($grey-color, 40%);
|
$grey-color-light: lighten($grey-color, 40%);
|
||||||
$grey-color-dark: darken($grey-color, 25%);
|
$grey-color-dark: darken($grey-color, 25%);
|
||||||
|
|
||||||
$on-palm: 600px;
|
$on-palm: 600px;
|
||||||
$on-laptop: 800px;
|
$on-laptop: 800px;
|
||||||
|
|
||||||
$nav-link-color: #800032;
|
|
||||||
|
|
||||||
|
$nav-link-color: #800032;
|
||||||
|
|
||||||
|
|
||||||
// Using media queries with like this:
|
// Using media queries with like this:
|
||||||
@@ -36,20 +35,15 @@ $nav-link-color: #800032;
|
|||||||
// }
|
// }
|
||||||
// }
|
// }
|
||||||
@mixin media-query($device) {
|
@mixin media-query($device) {
|
||||||
@media screen and (max-width: $device) {
|
@media screen and (max-width: $device) {
|
||||||
@content;
|
@content;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
// Import partials from `sass_dir` (defaults to `_sass`)
|
// Import partials from `sass_dir` (defaults to `_sass`)
|
||||||
@import
|
@import "base",
|
||||||
"base",
|
"layout",
|
||||||
"layout",
|
"syntax-highlighting",
|
||||||
"syntax-highlighting",
|
"chaospott",
|
||||||
"chaospott",
|
"calendar";
|
||||||
"calendar"
|
|
||||||
;
|
|
||||||
|
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user