More TEsting
This commit is contained in:
25
src/routes/ldb/+page.svelte
Normal file
25
src/routes/ldb/+page.svelte
Normal file
@@ -0,0 +1,25 @@
|
||||
<script>
|
||||
import Menu from '../../components/header.svelte'
|
||||
import Footer from '../../components/footer.svelte'
|
||||
|
||||
import {onMount} from 'svelte'
|
||||
|
||||
const title = "Public Board"
|
||||
const page = "ldb"
|
||||
|
||||
async function getHeadcode() {
|
||||
return new URLSearchParams(window.location.search).get('station');
|
||||
}
|
||||
|
||||
onMount(async () => {
|
||||
const headcode = await getHeadcode();
|
||||
document.getElementById('station').textContent = headcode;
|
||||
})
|
||||
|
||||
</script>
|
||||
|
||||
<Menu {title} />
|
||||
|
||||
<p>Station: <span id="station"></span></p>
|
||||
|
||||
<Footer {page} />
|
||||
Reference in New Issue
Block a user