From 094bc615ebb0d5d5d830fc8e66e6c9d288c98bd0 Mon Sep 17 00:00:00 2001 From: Andrew Williams Date: Wed, 3 Apr 2024 15:32:30 +0100 Subject: [PATCH] Only show the hackspace status if successful, resolves #46 --- assets/js/site.js | 1 + themes/lhs/assets/sass/leighhack.scss | 5 +++++ 2 files changed, 6 insertions(+) diff --git a/assets/js/site.js b/assets/js/site.js index 6ecd3e7..1069294 100644 --- a/assets/js/site.js +++ b/assets/js/site.js @@ -19,6 +19,7 @@ $(document).ready(function () { } else { $('span#hackspace-status').html('Closed'); } + $('div#hackspace-open').fadeIn('slow'); } // 'printers' shortcode diff --git a/themes/lhs/assets/sass/leighhack.scss b/themes/lhs/assets/sass/leighhack.scss index b970fad..e007b44 100644 --- a/themes/lhs/assets/sass/leighhack.scss +++ b/themes/lhs/assets/sass/leighhack.scss @@ -368,4 +368,9 @@ footer { // Fix syntax highlighting to match Bulma pre div.highlight { padding-bottom: 1.25em; +} + +// Hackspace Status +div#hackspace-open { + display: none; } \ No newline at end of file