From 648eb4eabf80d4197bc6632d3593d2d99ded2298 Mon Sep 17 00:00:00 2001
From: tvluke <tvluke@chaotikum.org>
Date: Sat, 10 Jun 2023 13:40:52 +0200
Subject: [PATCH] ok doch nicht

---
 _includes/nav-header.html | 4 ----
 1 file changed, 4 deletions(-)

diff --git a/_includes/nav-header.html b/_includes/nav-header.html
index fb20ff2a..1a32a7ad 100644
--- a/_includes/nav-header.html
+++ b/_includes/nav-header.html
@@ -46,7 +46,6 @@ applyToggle('.list--nav', '.button', 640)
 </script>
 
 <script>
-var space_is_open = false;
 
 $(document).ready(function(){
   spaceopen();
@@ -59,7 +58,6 @@ function spaceopen() {
 
   $.get( "https://status.nobreakspace.org/spaceapi.json", function( data ) {
     if(data.open) {
-      space_is_open = true;
       $("#spaceopen").css( "border", "3px solid green" );
       $("#spaceopen").html("<div style='float:left'><img src='{{ site.baseurl }}/assets/open.png' width='35'></div>Der Nbsp ist offen!<br><div style='text-align: right;'><a href='https://status.nobreakspace.org' target='_blank' style='color: #EAEAEA;'>Status</a></div>");
       $("#spaceopenmobile").css( "border", "3px solid green" );
@@ -96,7 +94,6 @@ function shuffleArray(array) {
 }
 
 function presence() {
-  if(space_is_open) {
     $.getJSON( "{{site.presence_service}}", function( data ) {
       console.log(data)
       shuffleArray(data);
@@ -119,7 +116,6 @@ function presence() {
         $("#presence_mobile" ).append('<img class="gravatar" src="https://chaotikum.org/assets/presence/plusplus.png" style="margin-left: -5px;"/>');
       }
     });
-  }
 }
 </script>
 
-- 
GitLab