diff --git a/assets/icons/close-circle.png b/assets/icons/close-circle.png index 42b54d1..265d8f6 100644 Binary files a/assets/icons/close-circle.png and b/assets/icons/close-circle.png differ diff --git a/error-pages/403.php b/error-pages/403.php new file mode 100644 index 0000000..3334b71 --- /dev/null +++ b/error-pages/403.php @@ -0,0 +1,23 @@ + + +
+ +Just type in a three character CRS code or a TIPLOC into the text + box and tap the Lookup button.
+If you enter a TIPLOC, this will not be verified - if it is + incorrect or unavailable on Tiger, you will be redirected to a + blank board. CRS codes will be verified against a lookup file + before redirecting.
+Some stations are not on Tiger and these stations are not supported + here either. Notably TfW and Chiltern stations that border the GWR + network. Most GWR Central served stations are now available to + lookup.
+I am working on a new version that will provide data for every + station in the National Rail database.
+This is an Alpha release and is under testing.
-Some features may not work and some stations may not be available.
- - -Just type in a three character CRS code or a TIPLOC into the text - box and tap the Lookup button.
-If you enter a TIPLOC, this will not be verified - if it is - incorrect or unavailable on Tiger, you will be redirected to a - blank board. CRS codes will be verified against a lookup file - before redirecting.
-Use the TIPLOC Lookup option from the menu to look up a TIPLOC from - a given CRS code.
-Some stations are not on Tiger and these stations are not supported - here either. Notably TfW and Chiltern stations that border the GWR - network. Most GWR Central served stations are now available to - lookup.
-Until there is a more modern public API offering access to Darwin, - I have no interest in supporting any more than simply linking to - the relevent Tiger page.
-Enter a CRS Code in the textbox and tap Go.
-All GWR managed stations can be looked up but others cannot be - gauranteed.
-THIS FEATURE IS NOT YET IMPLEMENTED
- - -CRS:
-Name:
-TIPLOC:
-STANME:
-STANOX:
-This is an Alpha release and is under testing.
+Some features may not work and some stations may not be available.
+Give as much detail as possible so we can try to fix the problem.
+ + + + + + + + + diff --git a/scripts/nav.js b/js/nav.js similarity index 100% rename from scripts/nav.js rename to js/nav.js diff --git a/scripts/sw.js b/js/sw.js similarity index 100% rename from scripts/sw.js rename to js/sw.js diff --git a/scripts/tiploc-finder.js b/js/tiploc-finder.js similarity index 65% rename from scripts/tiploc-finder.js rename to js/tiploc-finder.js index 68b1a56..edbcbfa 100644 --- a/scripts/tiploc-finder.js +++ b/js/tiploc-finder.js @@ -1,7 +1,7 @@ const url = "https://tiger.worldline.global/"; const view = "/staff;scrollbar=true"; -console.group("Athena - v0.2.1-alpha") +console.group("Athena - Departure Boards") console.info("Initialising"); @@ -88,38 +88,3 @@ function gotoInfoBoard(station) { console.groupEnd(); return 0; } - -/*This function provides the Lookup TIPLOC from CRS function from the menu*/ -function tiplocFinder() { - console.group("Athena: function: tiplocFinder()"); - let crs_to_find = document.getElementById("lookup-tiploc").value; - console.info("You are trying to lookup the TIPLOC for:" + crs_to_find.toUpperCase()); - console.info("Checking if CRS code exists in look up data"); - let hasKey = dataGlobal.hasOwnProperty(crs_to_find); - if (hasKey) { //If key exists then log and continue - console.info(crs_to_find.toUpperCase() + " does exist in lookup file"); - } else { //If key does not exist then stop further processing - console.warn(crs_to_find.toUpperCase() + "does not exist in lookup file"); - console.error(crs_to_find.toUpperCase() + " is an incorrect code or not supported."); - alert(crs_to_find.toUpperCase() + " is not a valid or supported CRS, " + - "please see the help section for more information"); - console.groupEnd(); - return 0; - } - let crs_obj = dataGlobal[crs_to_find]; - let name = crs_obj['name'].toUpperCase(); - let crs = crs_to_find.toUpperCase(); - let stanme = crs_obj['stanme'].toUpperCase(); - let stanox = crs_obj['stanox']; - let tiploc = crs_obj['tiploc']; - console.info("Found Data for " + crs +": Name: " + name + ", STANME: " + stanme + - ", STANOX: " + stanox + ", TIPLOC: " + tiploc); - console.warn("Attempt writing to DOM, feature incomplete"); - document.getElementById("resultCRS").innerHTML = "CRS: " + crs_to_find.toUpperCase(); - document.getElementById("resultTIPLOC").innerHTML = "TIPLOC: " + tiploc.toUpperCase(); - document.getElementById("resultSTANME").innerHTML = "STANME: " + stanme.toUpperCase(); - document.getElementById("resultName").innerHTML = "Name: " + name.toUpperCase(); - document.getElementById("resultSTANOX").innerHTML = "STANOX: " + stanox; - console.info("Writing to DOM Complete") - console.groupEnd(); -} diff --git a/page-blocks/footer.php b/page-blocks/footer.php new file mode 100644 index 0000000..df5398d --- /dev/null +++ b/page-blocks/footer.php @@ -0,0 +1,5 @@ +"; +echo "Created by Fred Boniface - v$athenaVersion
"; +echo ""; diff --git a/page-blocks/headers.php b/page-blocks/headers.php new file mode 100644 index 0000000..6f0a09f --- /dev/null +++ b/page-blocks/headers.php @@ -0,0 +1,10 @@ +'; +echo ''; +echo ''; +echo ''; +echo ''; +echo ''; +echo ''; +echo ''; diff --git a/page-blocks/nav-menu.php b/page-blocks/nav-menu.php new file mode 100644 index 0000000..7ec96f1 --- /dev/null +++ b/page-blocks/nav-menu.php @@ -0,0 +1,12 @@ +'; + +echo ' '; +echo ' '; diff --git a/page-blocks/title-image.php b/page-blocks/title-image.php new file mode 100644 index 0000000..6b8d5b3 --- /dev/null +++ b/page-blocks/title-image.php @@ -0,0 +1,3 @@ +'; diff --git a/php/LDB-Tests/example.php b/php/LDB-Tests/example.php new file mode 100644 index 0000000..30e423a --- /dev/null +++ b/php/LDB-Tests/example.php @@ -0,0 +1,8 @@ + GetDepartureBoardByCRS(10,"BRI",date("H:i:s",time()),120,"","","","","True"); + header("Content-Type: text/plain"); + print_r($response); +?> diff --git a/php/LDB-Tests/test.php b/php/LDB-Tests/test.php new file mode 100755 index 0000000..4e1b63b --- /dev/null +++ b/php/LDB-Tests/test.php @@ -0,0 +1,3 @@ + diff --git a/php/openLDBSVWS.php b/php/openLDBSVWS.php new file mode 100644 index 0000000..66d6dc6 --- /dev/null +++ b/php/openLDBSVWS.php @@ -0,0 +1,341 @@ + +Thanks for your report or suggestion.
+You're helping to make Athena better for everyone.
+You will be redirected to the homepage in five seconds.
+