You are going to block this site. This will do the following:
- You will no longer see this site in searches.
- Site will no longer see your site in searches.
- Site will not be able to comment on your site profile.
- Any comments this site has posted to your profile will not be displayed.
Are you sure you want to do this?
^ 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...
stack overflow really be like that doesn't it? why are they so rude on there
Wow, that's so lame.. I'm sorry people were like that??
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!?)