Neocities.org

H3's Neocities Seite

h3.neocities.org

39,994 views
18 followers
1,202 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 1 year 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!

If you dont have a 88x31 button already, i made you one. PNG: https://files.catbox.moe/0soibn.png | GIMP File: https://files.catbox.moe/p9m822.xcf
6 likes
bye2 1 year ago

sorry took me a while to see this but thank you so much!! thats so cool!! :o

1 like
didn't know your page is a neocites page. that so cool! do you have an 88x31 button for your page? i want to link you
I suggest you add something to your CSS that stops the buttons that go left-to-right and rtl from moving while hovering.
3 likes
dismas 1 year ago

Good idea ill do that now

2 likes
damn you outbutton me by a lot xD
5 likes
dann 1 year ago

And I still have a ton to catch up on

2 likes
To stop the caching problem, you could try adding this (not sure if it works): [meta http-equiv="cache-control" content="no-cache"] you will of course have to replace the ] by > and the [ by < . Its just to prevent neocities from filtering it out
jlehr 1 year ago

Thanks I’ll give that a test and if it works out it in all my html pages :) I certainly hope you are right.

Website Stats

Last updated 1 week ago
CreatedMay 1, 2022
Site Traffic Stats

Tags

computers electronics programming arduino webstuff