miglioramento nell'interazione

This commit is contained in:
nicola 2022-11-04 19:24:34 +01:00
parent 4fd23bc14b
commit 72a606f001
1 changed files with 24 additions and 2 deletions

View File

@ -1123,6 +1123,18 @@ $(document).ready(function() {
$('#apricerca').attr('style', "display:block;") $('#apricerca').attr('style', "display:block;")
$('#advanSW').prop('checked',false) $('#advanSW').prop('checked',false)
$('#PagineCanti').highlightWithinTextarea('destroy');
$('#CantiInferno').empty()
$('#CantiPurgatorio').empty()
$('#CantiParadiso').empty()
CantiParadiso = false;
CantiInferno = false;
CantiPurgatorio = false;
return true return true
} }
) )
@ -1132,7 +1144,7 @@ $(document).ready(function() {
setTimeout(function() { setTimeout(function() {
$("#loader").hide(); $("#loader").hide();
fakeResult(); fakeResult();
}, 3000); }, 2000);
} }
) )
@ -1140,7 +1152,8 @@ $(document).ready(function() {
e.preventDefault(); e.preventDefault();
//var areaText = $('#PagineCanti'); //var areaText = $('#PagineCanti');
$('#PagineCanti').highlightWithinTextarea({ $('#PagineCanti').highlightWithinTextarea({
highlight: 'paura' highlight: 'paura',
className: 'red'
}); });
}); });
@ -1194,6 +1207,15 @@ $(document).ready(function() {
}); });
function fakeResult(){ function fakeResult(){
$('#CantiInferno').empty()
$('#CantiPurgatorio').empty()
$('#CantiParadiso').empty()
CantiParadisoOpen = false;
CantiPurgatorioOpen = false;
CantiInfernoOpen = false;
tabellaCanti =""; tabellaCanti ="";
for (j=1;j<20;j++){ for (j=1;j<20;j++){