#also the way that the keysmash generator button works is kinda scuffed
Explore tagged Tumblr posts
Text
so on the keysmash generator site there's a checkbox for “color” that switches the stylesheet using javascript
I like the way that this works and want to implement something similar on my main site (https://horsescary.com/) but it has 2 problems
1) The choices made wont persist over multiple pages of the website
2) The choices wont save when you reload the site
I thought of a kindof janky solution for the first problem but not the second. The site would still switch out a stylesheet, but instead of having more than one page, it would just swap out the HTML with javascript. This would probably work but im not sure if its actually a good idea.
The probably better solution would be to use cookies but idrk who those work and like what i need to disclose and stuff.
#also the way that the keysmash generator button works is kinda scuffed#cause i put ALL of the css in both stylesheets#when it would have been better to have the site use 2 stylesheets#one for color and one for the acutal structure of the site
0 notes