updated script & added link buttons
This commit is contained in:
parent
5eb269c4e1
commit
4b166283ff
5 changed files with 27 additions and 29 deletions
|
@ -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: ""
|
||||
|
|
|
@ -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).
|
BIN
img/links/button/cherrywaves.gif
Normal file
BIN
img/links/button/cherrywaves.gif
Normal file
Binary file not shown.
After Width: | Height: | Size: 29 KiB |
BIN
img/links/button/cyberpeach.png
Normal file
BIN
img/links/button/cyberpeach.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 1.1 KiB |
37
theme.js
37
theme.js
|
@ -1,26 +1,17 @@
|
|||
const storedStyle = localStorage.getItem('style');
|
||||
if (!storedStyle) {
|
||||
setTheme('green');
|
||||
} else {
|
||||
setTheme(storedStyle);
|
||||
}
|
||||
var DEFAULT_THEME = "peach";
|
||||
var THEMES = [DEFAULT_THEME, "moon", "sakura", "honey"];
|
||||
|
||||
const switches = document.getElementsByClassName('switch');
|
||||
for (const el of switches) {
|
||||
el.addEventListener('click', () => {
|
||||
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);
|
||||
}
|
||||
};
|
Loading…
Add table
Reference in a new issue