diff --git a/src/App.svelte b/src/App.svelte index 4189e3e..fc1c477 100644 --- a/src/App.svelte +++ b/src/App.svelte @@ -20,6 +20,17 @@ let divEl: HTMLDivElement let imgEl: HTMLImageElement + let quotes = [ + ['不畏迷茫,迷茫着也要砥砺前行。', '迷子でもいい、迷子でも進め!'], + ['那... 能陪我写一辈子的代码吗?', 'じゃ……一生 コードを書いてくれる?'], + ['因为我的代码,就是内心的呐喊!', 'だって 私のコードは 心の叫びだから!'] + ] + + // Load and store the quote index + let quoteIdx = localStorage.quoteIdx ? +localStorage.quoteIdx : -1 + quoteIdx = (quoteIdx + 1) % quotes.length + localStorage.quoteIdx = quoteIdx + function getInitTrans() { const dirC = dir === 'top' || dir === 'bottom' ? 'Y' : 'X' const dirN = dir === 'top' || dir === 'left' ? '-' : '' @@ -112,11 +123,15 @@

半熟迷子工作室

-
+
Maigo Labs
+
+

{quotes[quoteIdx][0]}

+

{quotes[quoteIdx][1]}

+