owlboard-svelte/src/routes/ldb/+page.svelte

25 lines
564 B
Svelte
Raw Normal View History

2023-06-13 13:38:59 +01:00
<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} />