From eb9bb301433b40bf202203bb1f3f46ec2a902e7c Mon Sep 17 00:00:00 2001 From: Andrew Williams Date: Sat, 10 Feb 2024 12:01:28 +0000 Subject: [PATCH] Cleanup the site JS --- assets/js/site.js | 14 ++++++-------- 1 file changed, 6 insertions(+), 8 deletions(-) diff --git a/assets/js/site.js b/assets/js/site.js index 753dcbe..6ecd3e7 100644 --- a/assets/js/site.js +++ b/assets/js/site.js @@ -10,7 +10,7 @@ $(document).ready(function () { // Hackspace status if ($('span#hackspace-status').length) { if (data.state.open) { - message = 'Open' + message = 'Open' if ('message' in data.state) { message = message + ': ' + data.state.message; } @@ -19,7 +19,6 @@ $(document).ready(function () { } else { $('span#hackspace-status').html('Closed'); } - console.log(atob('aHR0cHM6Ly93d3cueW91dHViZS5jb20vd2F0Y2g/dj1IcDdBSVh5UkpwdyAtIERhYm8uLi4u')); } // 'printers' shortcode @@ -53,17 +52,14 @@ $(document).ready(function () { source: new ol.source.Vector({ features: [new ol.Feature({ geometry: new ol.geom.Point(center), - name: "Leigh Hackspace", })] }), style: new ol.style.Style({ image: new ol.style.Icon({ - scale: .06, - anchorXUnits: 'fraction', - anchorYUnits: 'pixels', - src: '../images/rose_logo.svg', + scale: .06, + src: '../images/rose_logo.svg', }), - }), + }), }) ], view: new ol.View({ @@ -74,4 +70,6 @@ $(document).ready(function () { }); } }); + + console.log(atob('aHR0cHM6Ly93d3cueW91dHViZS5jb20vd2F0Y2g/dj1IcDdBSVh5UkpwdyAtIERhYm8uLi4u')); });