Mehr Status

This commit is contained in:
Bandie 2022-04-15 16:00:37 +02:00
parent 5d71bbb640
commit 1cee8390c9
Signed by: Bandie
GPG Key ID: F4E0AB327841A877

View File

@ -46,7 +46,7 @@
}
});
$.getJSON("https://status.chaospott.de/chaospott_mumble.json").done(function (data) {
if (data.connected_users > 0) {
if (data.connected_users-1 > 0) {
$("#status_mumble_open").css("display", "block");
document.getElementById("mumble_users_online").textContent=data.connected_users;
} else {
@ -56,12 +56,12 @@
</script>
<li id="status_open" style="background-color:#29A900; display: none;">
<a href="#">
<span style="color:#ffffff !important;">Club: Offen</span>
<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: Geschlossen</span>
<span style="color:#ffffff !important;">Club: Zu</span>
</a>
</li>