Delete cambiarCSS-FER_SURFACE.js

This commit is contained in:
Fernando Méndez 2021-07-12 09:31:10 +02:00 committed by GitHub
parent b71f54db46
commit 204dac6c78
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -1,24 +0,0 @@
/**
* Práctica - Sistemas Web | Grupo D
* CompluCine - FDI-cines
*/
function cambiarCSS(nuevo){
if(nuevo.includes("main.css")){
var viejo = "{$prefix}assets/css/highContrast.css";
var oldName = "Alto Contraste";
} else {
var viejo = "{$prefix}assets/css/main.css";
var oldName = "Contrast Normal";
}
var url = "../assets/php/common/changeCSS.php?css=" + nuevo;
$.get(url);
/* La idea era que cambiase todo dinámicamente sin refrescar la página */
//document.getElementById('estilo').setAttribute('href', nuevo);
//document.getElementById('cssChange').innerHTML = oldName;
//document.getElementById('cssChange').setAttribute('onClick', 'cambiarCSS('+viejo+')');
location.reload();
}