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 @@ OwlBoard Logo -
- BACK -

Help

OwlBoard gives you quick and easy access to departure boards for all National Rail stations in the UK.

diff --git a/static/index.html b/static/index.html index 09ead83..bf29ab4 100644 --- a/static/index.html +++ b/static/index.html @@ -10,7 +10,7 @@ - + OwlBoard @@ -49,15 +49,15 @@ apologies for any inconvinience caused to you.

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