SW/assets/js/cambiarCSS.js
2021-05-11 10:11:10 +02:00

12 lines
307 B
JavaScript

function cambiarCSS(nuevo){
let highContrast;
if(highContrast === true){
highContrast = false;
} else {
highContrast = true;
}
//window.location.href += "?highContrast=" + highContrast;
document.getElementById('estilo').setAttribute('href', nuevo);
}