From 86f60814d80789f0a331caf231858d3cf7c32e95 Mon Sep 17 00:00:00 2001 From: Fred Boniface Date: Mon, 26 Jun 2023 00:52:02 +0100 Subject: [PATCH] Finish implementing PIS lookup page --- src/routes/pis/+page.svelte | 150 ++++++++++++++++++++++++++++++------ 1 file changed, 125 insertions(+), 25 deletions(-) diff --git a/src/routes/pis/+page.svelte b/src/routes/pis/+page.svelte index fbc1421..ed8ca40 100644 --- a/src/routes/pis/+page.svelte +++ b/src/routes/pis/+page.svelte @@ -1,53 +1,153 @@
-

To search by headcode use the Train Finder on the homepage

-

Find By Start/End CRS:

-
- - -
- -
- -

Find By PIS Code:

-
- +{#if error} + +

{errMsg}

+
+{:else if data.length} + + + + + + + + {#each data as item} + + + + + + {/each} +
TOCCodeStops
{item.operator.toUpperCase()}{item.code}{item.stops.join(", ").toUpperCase() + " "}
+
+{:else} +

To search by headcode use the Train Finder on the homepage

+

Find By Start/End CRS:

+ + +
-
+ -{#if data.length} - {#each data as entry} -

{JSON.stringify(entry)}

- {/each} +

Find By PIS Code:

+
+ +
+ +
{/if} +