Add files via upload

This commit is contained in:
Fernando Méndez
2021-06-04 12:38:17 +02:00
committed by GitHub
parent 22977e8091
commit 8dafa546b6
9 changed files with 57 additions and 20 deletions

View File

@ -4,5 +4,21 @@
*/
function cambiarCSS(nuevo){
document.getElementById('estilo').setAttribute('href', 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();
}

7
assets/js/goBack.js Normal file
View File

@ -0,0 +1,7 @@
$(document).ready(function(){
document.getElementById('go-back').addEventListener('click', function(event){
event.preventDefault();
history.back();
//window.history.go(-1);
});
});

View File

@ -1,4 +1,5 @@
$(document).ready(function(){
$('.go-up').click(function(){
$('body, html').animate({
scrollTop: '0px'

View File

@ -10,7 +10,7 @@ window.onload = function(){
function select_cinema(){
var select = document.getElementById("select_cinema");
console.log(select);
if(select != undefined){
select.onchange = function(){
location.href += "&cinema=" + $('select[id=cinemas]').val();