H3's silly website

h3.yorniq.xyz

332,111 views
51 followers
1,791 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's avatar hasnogame 3 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!

h3 updated their site.
4 years ago
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
7 likes
bye2's avatar bye2 4 years 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
h3 updated their site.
4 years ago
h3 updated their site.
4 years ago
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's avatar dismas 4 years ago

Good idea ill do that now

2 likes
damn you outbutton me by a lot xD
5 likes
dann's avatar dann 4 years 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's avatar jlehr 4 years 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.

h3 updated their site.
4 years ago

Website Stats

Last updated 4 days ago
CreatedMay 1, 2022
Site Traffic Stats

Tags

computers arduino electronics webstuff programming