From a754c9d05174a19b7705b5199028e4515bf9c954 Mon Sep 17 00:00:00 2001 From: Fred Boniface Date: Sun, 25 Jun 2023 00:26:12 +0100 Subject: [PATCH] Begin PIS Finder page --- src/routes/more/corpus/+page.svelte | 3 ++ src/routes/pis/+page.svelte | 51 ++++++++++++++++++++++++++--- 2 files changed, 49 insertions(+), 5 deletions(-) diff --git a/src/routes/more/corpus/+page.svelte b/src/routes/more/corpus/+page.svelte index 3804d57..40689c2 100644 --- a/src/routes/more/corpus/+page.svelte +++ b/src/routes/more/corpus/+page.svelte @@ -21,6 +21,9 @@ async function processData(data) { //console.log("data",JSON.stringify(data)) + if (data.ERROR == "Offline") { + return; + }; val = { crs: data[0]['3ALPHA'] || "None", tiploc: data[0]['TIPLOC'] || "None", diff --git a/src/routes/pis/+page.svelte b/src/routes/pis/+page.svelte index 1f65de4..fbc1421 100644 --- a/src/routes/pis/+page.svelte +++ b/src/routes/pis/+page.svelte @@ -3,10 +3,51 @@ import Nav from '$lib/navigation/nav.svelte' const title = "PIS Finder" - + let entryPIS; + let entryStartCRS = ""; + let entryEndCRS = ""; + let data = []; + + async function findByStartEnd() { + return; + } + + async function findByPis() { + data = [ + {"one": 1}, + {"two": 2} + ] + return; + } + -
+
-

- -