Add files via upload
This commit is contained in:
@ -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
7
assets/js/goBack.js
Normal file
@ -0,0 +1,7 @@
|
||||
$(document).ready(function(){
|
||||
document.getElementById('go-back').addEventListener('click', function(event){
|
||||
event.preventDefault();
|
||||
history.back();
|
||||
//window.history.go(-1);
|
||||
});
|
||||
});
|
@ -1,4 +1,5 @@
|
||||
$(document).ready(function(){
|
||||
|
||||
$('.go-up').click(function(){
|
||||
$('body, html').animate({
|
||||
scrollTop: '0px'
|
||||
|
@ -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();
|
||||
|
Reference in New Issue
Block a user