Update to svelte 5
This commit is contained in:
@@ -1,7 +1,7 @@
|
||||
<script lang="ts">
|
||||
import { user } from "lib/UserStore";
|
||||
|
||||
let nav: HTMLElement;
|
||||
let nav: HTMLElement = $state();
|
||||
|
||||
export const toggle = () => {
|
||||
var body = document.getElementById("page_body");
|
||||
@@ -21,7 +21,7 @@ export const reset = () => {
|
||||
}
|
||||
</script>
|
||||
|
||||
<button id="button_toggle_navigation" class="button_toggle_navigation" on:click={toggle}>☰</button>
|
||||
<button id="button_toggle_navigation" class="button_toggle_navigation" onclick={toggle}>☰</button>
|
||||
<nav bind:this={nav} id="page_navigation" class="page_navigation">
|
||||
<a href="/#">Home</a>
|
||||
<a href="/#prepaid">For Creators</a>
|
||||
|
||||
Reference in New Issue
Block a user