Add apply button to scheme swap, make it easier to read
This commit is contained in:
parent
6f5740ecee
commit
1bfc111503
3 changed files with 13 additions and 3 deletions
|
@ -46,7 +46,8 @@ function cookieExists(cname) {
|
|||
* Swaps the colorscheme
|
||||
* @param {string} scheme Color scheme ID
|
||||
*/
|
||||
function swapScheme(scheme) {
|
||||
function swapScheme() {
|
||||
let scheme = document.getElementById('scheme-selector').value ;
|
||||
setCookie("colorscheme", scheme, 90);
|
||||
document.getElementById("css-colorscheme").href = `/css/colorschemes/${scheme}.css`;
|
||||
console.log(`Set colorscheme to ${getCookie("colorscheme")}`)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue