Minor changes

This commit is contained in:
nicola 2022-10-31 10:06:19 +01:00
parent ccb7cc6fbb
commit 3eef2afeba
1 changed files with 28 additions and 4 deletions

View File

@ -920,6 +920,10 @@ $(document).ready(function() {
var CantiPurgatorio = false;
var CantiInferno = false;
var filtraPerOpen;
var CantiInfernoOpen = false;
var CantiPurgatorioOpen = false;
var CantiParadisoOpen = false;
jQuery(document).delegate('a.selectInferno', 'click', function(e) {
e.preventDefault();
@ -936,8 +940,14 @@ $(document).ready(function() {
$('#CantiInferno').append(tabellaCanti);
CantiInferno = true;
}
$('#CantiInferno').attr('style', "display:block;")
if (!CantiInfernoOpen){
$('#CantiInferno').attr('style', "display:block;")
CantiInfernoOpen = true;
}else{
$('#CantiInferno').attr('style', "display:none;")
CantiInfernoOpen = false;
}
$('#CantiParadiso').attr('style', "display:none;")
$('#CantiPurgatorio').attr('style', "display:none;")
@ -961,7 +971,14 @@ $(document).ready(function() {
CantiPurgatorio = true;
}
$('#CantiPurgatorio').attr('style', "display:block;")
if (!CantiPurgatorioOpen){
$('#CantiPurgatorio').attr('style', "display:block;")
CantiPurgatorioOpen = true;
}else{
$('#CantiPurgatorio').attr('style', "display:none;")
CantiPurgatorioOpen = false;
}
$('#CantiParadiso').attr('style', "display:none;")
$('#CantiInferno').attr('style', "display:none;")
@ -985,8 +1002,15 @@ $(document).ready(function() {
$('#CantiParadiso').append(tabellaCanti);
CantiParadiso = true;
}
$('#CantiParadiso').attr('style', "display:block;")
if (!CantiParadisoOpen){
$('#CantiParadiso').attr('style', "display:block;")
CantiParadisoOpen = true;
}else{
$('#CantiParadiso').attr('style', "display:none;")
CantiParadisoOpen = false;
}
$('#CantiPurgatorio').attr('style', "display:none;")
$('#CantiInferno').attr('style', "display:none;")