This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* | |
* RSSS: Really simple stylesheet switcher | |
* | |
* This script will generate buttons to switch stylesheets. | |
* It will use localstorage to store the users choice between sessions. | |
* | |
* Three variables need to be defined: | |
* - themeCss: Array of the available stylesheets. The first | |
* item in the array is the default style and | |
* should already exist in HEAD of the page as |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* | |
* OORSSS: Object oriented really simple stylesheet switcher | |
* | |
* This script will generate buttons to switch stylesheets. | |
* It will use localstorage to store the users choice between sessions. | |
* | |
* STEP 1 | |
* ====== | |
* To get started you need to create a new themePicker, providing: | |
* - the id of the element within which the picker will be created [Required] |