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"
|
- imgurl: "sweetcharm.png"
|
||||||
link: "https://sweetcharm.net/"
|
link: "https://sweetcharm.net/"
|
||||||
alt: "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
|
# this space intentionally left blank
|
||||||
#- imgurl: ""
|
#- 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
|
- out-of-context quotes page
|
||||||
- a [/uses](https://indieweb.org/using) page ✅
|
- a [/uses](https://indieweb.org/using) page ✅
|
||||||
- what's in my bag
|
- 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
|
- reviews
|
||||||
- anime
|
- anime
|
||||||
- music?
|
- 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)
|
- plushies (with introductions for each one)
|
||||||
- makeup
|
- makeup
|
||||||
- stationery, pens, inks, etc.
|
- 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
|
- personal philosophy
|
||||||
- my approach to sns/fediverse
|
- my approach to sns/fediverse
|
||||||
- block well & block often
|
- 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
|
- about my bg3 character
|
||||||
- maybe talk more about vns/what kind of vns I like/vns I am looking forward to
|
- maybe talk more about vns/what kind of vns I like/vns I am looking forward to
|
||||||
- minecwap builds
|
- 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:
|
- stuff I plan to:
|
||||||
- read: [manga]({% link _pages/manga.md %}) ![new](/img/emoji/new.gif)
|
- read: [manga]({% link _pages/manga.md %}) ✅
|
||||||
- watch: [anime]({% link _pages/anime.md %}) ![new](/img/emoji/new.gif)
|
- watch: [anime]({% link _pages/anime.md %}) ✅
|
||||||
- play
|
- play
|
||||||
- poetry? (people have asked for it but ![@_@](/img/emoji/keroweh.gif))
|
- 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).
|
- 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 |
29
theme.js
29
theme.js
|
@ -1,26 +1,17 @@
|
||||||
const storedStyle = localStorage.getItem('style');
|
var DEFAULT_THEME = "peach";
|
||||||
if (!storedStyle) {
|
var THEMES = [DEFAULT_THEME, "moon", "sakura", "honey"];
|
||||||
setTheme('green');
|
|
||||||
} else {
|
function setTheme(theme) {
|
||||||
setTheme(storedStyle);
|
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');
|
const switches = document.getElementsByClassName('switch');
|
||||||
for (const el of switches) {
|
for (const el of switches) {
|
||||||
el.addEventListener('click', () => {
|
el.addEventListener('click', () => {
|
||||||
setTheme(el.dataset.theme);
|
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