diff --git a/_data/link-button.yaml b/_data/link-button.yaml index 4828e68..b8dac2a 100644 --- a/_data/link-button.yaml +++ b/_data/link-button.yaml @@ -133,6 +133,12 @@ - imgurl: "sweetcharm.png" link: "https://sweetcharm.net/" alt: "sweetcharm.net" +- imgurl: "cherrywaves.gif" + link: "https://cherrywaves.neocities.org/" + alt: "nikki" +- imgurl: "cyberpeach.png" + link: "https://cyberpeach.net/" + alt: "cyber♡peach" # this space intentionally left blank #- imgurl: "" diff --git a/_pages/plans.md b/_pages/plans.md index 84574f1..8a41cde 100644 --- a/_pages/plans.md +++ b/_pages/plans.md @@ -9,7 +9,7 @@ this is just a place for me to keep track of my ideas for this webbed site. not - out-of-context quotes page - a [/uses](https://indieweb.org/using) page ✅ - what's in my bag - - [pc breakdown/specs]({% link _pages/uses.md %}) ![new](/img/emoji/new.gif) ✅ + - [pc breakdown/specs]({% link _pages/uses.md %}) ✅ - reviews - anime - music? @@ -25,7 +25,7 @@ this is just a place for me to keep track of my ideas for this webbed site. not - plushies (with introductions for each one) - makeup - stationery, pens, inks, etc. -- a [guestbook](https://mana.atabook.org/) ![new](/img/emoji/new.gif) or shoutbox or smth? ✅ +- a [guestbook](https://mana.atabook.org/) or shoutbox or smth? ✅ - personal philosophy - my approach to sns/fediverse - block well & block often @@ -42,10 +42,11 @@ this is just a place for me to keep track of my ideas for this webbed site. not - about my bg3 character - maybe talk more about vns/what kind of vns I like/vns I am looking forward to - minecwap builds -- covers, what songs i want to cover (need to find out if gitlab will let me host that many files D:) +- [covers]({% link _pages/songs.md %}) ![new](/img/emoji/new.gif) ✅ + - songs i want to cover - stuff I plan to: - - read: [manga]({% link _pages/manga.md %}) ![new](/img/emoji/new.gif) - - watch: [anime]({% link _pages/anime.md %}) ![new](/img/emoji/new.gif) + - read: [manga]({% link _pages/manga.md %}) ✅ + - watch: [anime]({% link _pages/anime.md %}) ✅ - play - poetry? (people have asked for it but ![@_@](/img/emoji/keroweh.gif)) - figure out how to make custom emotes work with [jemoji](https://github.com/jekyll/jemoji). \ No newline at end of file diff --git a/img/links/button/cherrywaves.gif b/img/links/button/cherrywaves.gif new file mode 100644 index 0000000..0eebd80 Binary files /dev/null and b/img/links/button/cherrywaves.gif differ diff --git a/img/links/button/cyberpeach.png b/img/links/button/cyberpeach.png new file mode 100644 index 0000000..1355fa0 Binary files /dev/null and b/img/links/button/cyberpeach.png differ diff --git a/theme.js b/theme.js index 428258b..c23fc12 100644 --- a/theme.js +++ b/theme.js @@ -1,26 +1,17 @@ -const storedStyle = localStorage.getItem('style'); -if (!storedStyle) { - setTheme('green'); -} else { - setTheme(storedStyle); -} - -const switches = document.getElementsByClassName('switch'); -for (const el of switches) { - el.addEventListener('click', () => { + var DEFAULT_THEME = "peach"; + var THEMES = [DEFAULT_THEME, "moon", "sakura", "honey"]; + + function setTheme(theme) { + if (THEMES.indexOf(theme) < 0) theme = DEFAULT_THEME; + document.getElementById('switcher-id').href = '/themes/' + theme + '.css'; + localStorage.setItem('style', theme); + } + + setTheme(localStorage.getItem('style')); + + const switches = document.getElementsByClassName('switch'); + for (const el of switches) { + el.addEventListener('click', () => { setTheme(el.dataset.theme); }); -} - -function setTheme(theme) { - if (theme === 'peach') { - document.getElementById('switcher-id').href = '/themes/peach.css'; - } else if (theme === 'moon') { - document.getElementById('switcher-id').href = '/themes/moon.css'; - } else if (theme === 'sakura') { - document.getElementById('switcher-id').href = '/themes/sakura.css'; - } else if (theme === 'honey') { - document.getElementById('switcher-id').href = '/themes/honey.css'; - } // when adding new themes, be sure to also add it to /includes/layout/sidebar.html and style.css under "switch" // - localStorage.setItem('style', theme); -} \ No newline at end of file +}; \ No newline at end of file