FOUND BIG BUG: on some pages you cant interact with anything under the transparent picture! you need to add this to the css for it: div.cur { pointer-events: none; position: fixed; top: 0; bottom: 0; left: 0; right: 0; width: 100%; height: 100%;} div.cur img {width: 100%; height: 100%;} this will make the mose "click though it". also the image is too small so this fixes it.
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
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!
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
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!