Update code
This commit is contained in:
parent
234915f568
commit
5b53c9f51e
@ -12,8 +12,10 @@
|
||||
}
|
||||
|
||||
onMount(async () => {
|
||||
const headcode = await getHeadcode();
|
||||
document.getElementById('station').textContent = headcode;
|
||||
const station = await getHeadcode();
|
||||
document.getElementById('station').textContent = station;
|
||||
const data = await fetch(`https://owlboard.info/api/v1/ldb/${station}`)
|
||||
document.getElementById('data_raw').textContent = JSON.stringify(await data.json());
|
||||
})
|
||||
|
||||
</script>
|
||||
@ -21,5 +23,7 @@
|
||||
<Menu {title} />
|
||||
|
||||
<p>Station: <span id="station"></span></p>
|
||||
<p id="data_raw"></p>
|
||||
|
||||
|
||||
<Footer {page} />
|
Loading…
Reference in New Issue
Block a user