Neocities.org

shishka

shishka.neocities.org

3,310,145 views
1,111 followers
9,678 updates
0 tips
...as for my question on stackoverflow, did not really get an answer, just a bit of... hostility 👽💦 then ignored. even so, a better scenario than expected. and i was able to interpret some, so im a little closer to my answer. maybe somewhere else i can ask. asking for help is so hard. javascript-heads sure are cut throat and discouraging...
6 likes
shishka 1 year ago

^ 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...

1 like
yudosai 1 year ago

stack overflow really be like that doesn't it? why are they so rude on there

1 like
cloudcover 1 year ago

Wow, that's so lame.. I'm sorry people were like that??

1 like
cityflowers 1 year ago

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

1 like
fri11s 1 year ago

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?

2 likes
hosma 1 year ago

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.

2 likes
shishka 1 year ago

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!?)

Website Stats

Last updated 16 hours ago
CreatedOct 27, 2018
Site Traffic Stats

Tags

videogames blinkies graphics art anime