From d9380b354fec262262ef530634bf435ac1a52c2a Mon Sep 17 00:00:00 2001
From: Fred Boniface
Date: Tue, 20 Dec 2022 13:29:20 +0000
Subject: [PATCH] Organize client side code
---
static/help.html | 4 ----
static/index.html | 20 ++++++++++----------
static/js/{nav.js => main.js} | 9 +++++++--
3 files changed, 17 insertions(+), 16 deletions(-)
rename static/js/{nav.js => main.js} (68%)
diff --git a/static/help.html b/static/help.html
index 02113fb..0e9d63a 100644
--- a/static/help.html
+++ b/static/help.html
@@ -10,7 +10,6 @@
-
OwlBoard
@@ -24,9 +23,6 @@
Quick Links
-
-
-
-
-
-
-
-
-
+
+
+
+
+
+
+
+
+
diff --git a/static/js/nav.js b/static/js/main.js
similarity index 68%
rename from static/js/nav.js
rename to static/js/main.js
index b76e9b7..82eefaf 100644
--- a/static/js/nav.js
+++ b/static/js/main.js
@@ -1,11 +1,16 @@
-function sidebarOpen() {
+async function sidebarOpen() {
document.getElementById("sidebar").style.width = "50%";
document.getElementById("sidebar_open_short").style.display = "none";
document.getElementById("sidebar_close_short").style.display = "block";
}
-function sidebarClose() {
+async function sidebarClose() {
document.getElementById("sidebar").style.width = "0%"
document.getElementById("sidebar_open_short").style.display = "block";
document.getElementById("sidebar_close_short").style.display = "none";
+}
+
+async function gotoBoard(station){
+ console.log(`Finding ${station}`)
+ window.location.assign(`board.html?stn=${station}`)
}
\ No newline at end of file