Neocities.org

HAZEL HASNOGAME

hasnogame.neocities.org

54,970 views
11 followers
1,040 updates
0 tips
hi. i stumbled accross you site and noticed that the swag toggle button is not memorized between page reloads so i made an edited version of its javascript that stores the state in the localStorage (basically cookies but more permanent and only for clientside javascript). here is the pastbin link: https://pastebin.com/quV2v3gn if you want to know more about local storage read its MDN article: https://mzl.la/3LTNc9l
hasnogame 2 years ago

Hey thank you so much for this! I saw this months ago and finally got some time this morning to implement this it into my site. Your code was almost perfect, just needed to wrap the initial load of storedSwagEnable in a JSON.parse() as LocalStorage is always stored as a string. Thank you for taking time to help me out with this!

Website Stats

Last updated 2 weeks ago
CreatedOct 29, 2020
Site Traffic Stats

Tags

swag scene breakcore furry emo