<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} />