Skip to content

Commit

Permalink
fix uggo formatting
Browse files Browse the repository at this point in the history
  • Loading branch information
Juliapixel committed Jun 27, 2024
1 parent 4f1c2bb commit f2e9b6b
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 4 deletions.
1 change: 1 addition & 0 deletions src/lib/Leaderboards.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
export let folder: string;
</script>

{#if folder == "global"}
<div class="w-fit max-w-full my-24 mx-auto">
<AsyncMarkdownReq
Expand Down
13 changes: 9 additions & 4 deletions src/routes/+page.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -18,9 +18,9 @@
function changeParams(this: HTMLSelectElement) {
let params = new URLSearchParams(window.location.search);
params.set("channel", this.value)
let url = window.location.pathname + "?" + String(params)
window.history.replaceState(null, "", url)
params.set("channel", this.value);
let url = window.location.pathname + "?" + String(params);
window.history.replaceState(null, "", url);
}
function storeChannel(this: HTMLSelectElement) {
Expand All @@ -32,7 +32,12 @@

<div class="ml-8 mr-8 lg:ml-32 lg:mr-32">
<h1 class="mb-4 mt-8">gofish leaderboards! 🎣 🤩 🏆</h1>
<span>channel: </span><select bind:value={selected} on:change={changeParams} on:change={storeChannel} class="mt-5 mb-5">
<span>channel: </span><select
bind:value={selected}
on:change={changeParams}
on:change={storeChannel}
class="mt-5 mb-5"
>
<option value="global">global</option>
<option value="breadworms">breadworms</option>
<option value="psp1g">psp1g</option>
Expand Down

0 comments on commit f2e9b6b

Please # to comment.