^ tryin to use localstorage to remember if the visitor wants to keep freezeframe animated gifs on across pages, i swear it is possible, i just dont understand getItem, i think...
right? i'm sorry you've had to deal with this too... i've had some good experiences but if you ask a question even the wrong way they will show no mercy. i wish i knew anything really about javascript i would totally help you out
yes you can totally do this! that's how I remember if someone has change their theme mode across pages. I need to write up how to do it, but for now take a look at my JS file https://frills.dev/js/main.js under // Dark mode toggle. it has some extra bits to check for system preferences, but hopefully something for you to get started with?
You don't really have to use getItem, you can treat localStorage as any other object. localStorage.getItem('foo') and localStorage.foo are more or less equivalent, just that the former returns null for nonexistent keys and the latter undefined. Also keep in mind that you can only store Strings in localStorage, any other type will be casted to a String.
woa thx every1 ;u; @lookitslars~ im with u there! ive learned lots on stackoverflow from snoopin & thankful for the free resource however not every1 is so patient there, to put it kindly" @fri11s~ amazing, thank u!! i will test this out! and exactly, ive made localstorage work before with a theme checkbox so i figure its gotta work for buttons too. @hosma~ thank u, thats reassuring as i was doing string (i think!?)
taking a break from the javascript situation for bit -- wes's portraits are all updated in-game!