aboutsummaryrefslogtreecommitdiff
path: root/src/lib/component/Remarks.svelte
diff options
context:
space:
mode:
authornetop://ウィビ <paul@webb.page>2026-07-23 14:05:13 -0700
committernetop://ウィビ <paul@webb.page>2026-07-23 14:05:13 -0700
commit0946abd0bc866ca1f0c073eb45e8e2c7822e4e44 (patch)
tree5f74327da499a274af36691cf739265b82b846d6 /src/lib/component/Remarks.svelte
parentcc0677961c237748017fb5946455390af3a50ab6 (diff)
downloadhomepage-0946abd0bc866ca1f0c073eb45e8e2c7822e4e44.tar.gz
homepage-0946abd0bc866ca1f0c073eb45e8e2c7822e4e44.zip
updates deps and svelte config
Diffstat (limited to 'src/lib/component/Remarks.svelte')
-rw-r--r--src/lib/component/Remarks.svelte7
1 files changed, 4 insertions, 3 deletions
diff --git a/src/lib/component/Remarks.svelte b/src/lib/component/Remarks.svelte
index 6f88210..7db972c 100644
--- a/src/lib/component/Remarks.svelte
+++ b/src/lib/component/Remarks.svelte
@@ -1,6 +1,7 @@
<script lang="ts">
/*** STATE -------------------------------------------- ***/
const remarks = [
+ "WR-026.txt",
"WR-025.txt",
"WR-024.txt",
"WR-023.txt",
@@ -28,8 +29,8 @@
"WR-001.txt"
];
- let selectedRemark: string;
- let selectedRemarkContent: string;
+ let selectedRemark: string = $state("");
+ let selectedRemarkContent: string = $state("");
/*** HELPER ------------------------------------------- ***/
function processNote(filename: string): string {
@@ -169,7 +170,7 @@
<ul>
{#each remarks as remark}
<li class:active={selectedRemark === remark}>
- <button on:click={() => showNote(remark)}>{@html processNote(remark)}</button>
+ <button onclick={() => showNote(remark)}>{@html processNote(remark)}</button>
{#if selectedRemark === remark}
<div class="content">