migliorie

This commit is contained in:
nicola 2022-11-10 15:01:11 +01:00
parent 1b4c8b4cb3
commit 6f3a7c2bc4
2 changed files with 79 additions and 152 deletions

View File

@ -587,20 +587,38 @@
<!-- <div class="cf ph2-ns"> -->
<div class="row padding-right-xl padding-left-xl">
<div class="col-md-3 pl4 pt0 pr8 pb0 ml4">
<!-- <div class="labelSelect"> -->
<!-- <div>&nbsp;&nbsp;</div> -->
<!-- <div class="availability f3 b labelVai"> -->
<!-- <span>Vai al canto:</span> -->
<!-- </div> -->
<!-- </div> -->
<div class="flex flex-column">
<div class="w-45 pa1 mr1">
<div class="f5 link dim br1 bn pa0 mb0 dib dark-blue b"
id="occorrenze" style="display: none;">Totale Occorrenze:
23</div>
<div class="labelSelect">
<div>&nbsp;&nbsp;</div>
<div class="availability f3 b labelRisultatoRicerca">
<span style="display: none;">Risultati della ricerca:</span>
</div>
</div>
<div class="flex flex-column" >
<div class="w-45 pa1 mr1">
<div class="availability f4 b labelRisultatoInferno">
<span style="display: none;">Inferno:</span>
</div>
<div id="ResultCantiInferno" style="display: none;">
</div>
<div class="availability f4 b labelRisultatoPurgatorio">
<span style="display: none;">Purgatorio:</span>
</div>
<div id="ResultCantiPurgatorio" style="display: none;">
</div>
<div class="availability f4 b labelRisultatoParadiso">
<span style="display: none;">Paradiso:</span>
</div>
<div id="ResultCantiParadiso" style="display: none;">
</div>
<div class="f4 link dim br1 bn pa0 mb0 dib dark-blue b" id="occorrenze"style="display: none;"> Totale Occorrenze: 21 </div>
</div>
</div>
</div>
<div class="col-md-5 pa4 pl6 " id="browseArea">

View File

@ -169,51 +169,6 @@ $(document).ready(function() {
Funzioni per visualizzare le clausole
*/
jQuery(document).delegate('a.add-record', 'click', function(e) {
e.preventDefault();
if (clausolaVisibile)
return true;
else {
clausolaVisibile = true;
tipoClausola = 'grammaticale'
}
showCategoriaGrammaticale();
});
jQuery(document).delegate('a.add-record-sint', 'click', function(e) {
e.preventDefault();
if (clausolaVisibile)
return true;
else {
clausolaVisibile = true;
tipoClausola = 'sintattica'
}
$('#FiltriGrafici').attr('style', "display:none;")
filtraPerOpen = false;
var content = jQuery('#tiposintattico >div'),
size = jQuery('#condizioni >div').length + 1,
element = null,
element = content.clone();
element.attr('id', 'ts-' + size);
element.find('.remove-filter').attr('target', 'ts-' + size);
element.find('.set-filter').attr('targetfilter', 'ts-' + size);
element.appendTo('#condizioni');
element.find('.sn').html(size);
sintconditions = sintconditions + 1
if (size == 1)
jQuery('#grammarbutton').attr('style', "display:block;")
});
/**
SCELTA TIPO SINTATTICO
*/
jQuery(document).delegate('select.synttype', 'change', function(e) {
e.preventDefault();
@ -1184,123 +1139,77 @@ $(document).ready(function() {
function fakeResult(){
$('#CantiInferno').empty()
$('#CantiPurgatorio').empty()
$('#CantiParadiso').empty()
CantiParadisoOpen = false;
CantiPurgatorioOpen = false;
CantiInfernoOpen = false;
$('#ResultCantiInferno').empty()
$('#ResultCantiPurgatorio').empty()
$('#ResultCantiParadiso').empty()
tabellaCanti ="";
for (j=1;j<20;j++){
tabellaCanti = tabellaCanti +
'<a class="f5 link dim br1 bn pa0 mb0 dib dark-green selectParadiso' + j +
'href="#0" data-added="0">'+j+'</a> ';
}
tabellaCanti = tabellaCanti +
'<a class="f5 link dim br1 bn pa0 mb0 dib dark-red selectParadiso' + j +
'href="#0" data-added="0">'+'20(3)'+'</a> ';
for (j=21;j<30;j++){
tabellaCanti = tabellaCanti +
'<a class="f5 link dim br1 bn pa0 mb0 dib dark-green selectParadiso' + j +
'href="#0" data-added="0">'+j+'</a> ';
}
tabellaCanti = tabellaCanti +
'<a class="f5 link dim br1 bn pa0 mb0 dib dark-red selectParadiso' + j +
'href="#0" data-added="0">'+'30(2)'+'</a> ';
for (j=31;j<34;j++){
tabellaCanti = tabellaCanti +
'<a class="f5 link dim br1 bn pa0 mb0 dib dark-green selectParadiso' + j +
'href="#0" data-added="0">'+j+'</a> ';
}
$('#CantiParadiso').append(tabellaCanti);
$('#CantiParadiso').attr('style', "display:none;")
CantiParadiso = true;
tabellaCanti ="";
for (j=1;j<10;j++){
tabellaCanti = tabellaCanti +
'<a class="f5 link dim br1 bn pa0 mb0 dib dark-green selectPurgatorio' + j +
'href="#0" data-added="0">'+j+'</a> ';
}
tabellaCanti = tabellaCanti +
'<a class="f5 link dim br1 bn pa0 mb0 dib dark-red selectPurgatorio' + j +
'href="#0" data-added="0">'+'10(4)'+'</a> ';
for (j=11;j<25;j++){
tabellaCanti = tabellaCanti +
'<a class="f5 link dim br1 bn pa0 mb0 dib dark-green selectPurgatorio' + j +
'href="#0" data-added="0">'+j+'</a> ';
}
tabellaCanti = tabellaCanti +
'<a class="f5 link dim br1 bn pa0 mb0 dib dark-red selectPurgatorio' + j +
'href="#0" data-added="0">'+'25(2)'+'</a> ';
'<a class="f5 link dim br1 bn pa0 mb0 dib dark-red selectParadiso' + 20 +
'href="#0" data-added="0">'+'XX(3)'+'</a> ';
tabellaCanti = tabellaCanti +
'<a class="f5 link dim br1 bn pa0 mb0 dib dark-red selectParadiso' + 30 +
'href="#0" data-added="0">'+'XXX(2)'+'</a> ';
for (j=26;j<34;j++){
tabellaCanti = tabellaCanti +
'<a class="f5 link dim br1 bn pa0 mb0 dib dark-green selectPurgatorio' + j +
'href="#0" data-added="0">'+j+'</a> ';
}
$('#ResultCantiParadiso').append(tabellaCanti);
$('#ResultCantiParadiso').attr('style', "display:block;")
$('.labelRisultatoParadiso span').attr('style', "display:block;")
// CantiParadiso = true;
$('#CantiPurgatorio').append(tabellaCanti);
$('#CantiPurgatorio').attr('style', "display:none;")
tabellaCanti ="";
CantiPurgatorio = true;
tabellaCanti = tabellaCanti +
'<a class="f5 link dim br1 bn pa0 mb0 dib dark-red selectPurgatorio' + 10 +
'href="#0" data-added="0">'+'X(4)'+'</a> ';
tabellaCanti = tabellaCanti +
'<a class="f5 link dim br1 bn pa0 mb0 dib dark-red selectPurgatorio' + 25 +
'href="#0" data-added="0">'+'XXV(2)'+'</a> ';
$('#ResultCantiPurgatorio').append(tabellaCanti);
$('#ResultCantiPurgatorio').attr('style', "display:block;")
$('.labelRisultatoPurgatorio span').attr('style', "display:block;")
// CantiPurgatorio = true;
tabellaCanti ="";
tabellaCanti = tabellaCanti +
'<a class="f5 link dim br1 bn pa0 mb0 dib dark-red selectInferno' + '1' +
' href="#0" data-added="0">'+'1(5)'+'</a> ';
for (j=2;j<15;j++){
tabellaCanti = tabellaCanti +
'<a class="f5 link dim br1 bn pa0 mb0 dib dark-green selectInferno' + j +
'href="#0" data-added="0">'+j+'</a> ';
}
' href="#0" data-added="0">'+'I(5)'+'</a> ';
tabellaCanti = tabellaCanti +
'<a class="f5 link dim br1 bn pa0 mb0 dib dark-red selectInferno' + '15' +
' href="#0" data-added="0">'+'15(1)'+'</a> ';
for (j=16;j<22;j++){
tabellaCanti = tabellaCanti +
'<a class="f5 link dim br1 bn pa0 mb0 dib dark-green selectInferno' + j +
'href="#0" data-added="0">'+j+'</a> ';
}
' href="#0" data-added="0">'+'XV(1)'+'</a> ';
tabellaCanti = tabellaCanti +
'<a class="f5 link dim br1 bn pa0 mb0 dib dark-red selectInferno' + j +
'href="#0" data-added="0">'+'22(2)'+'</a> ';
tabellaCanti = tabellaCanti +
'<a class="f5 link dim br1 bn pa0 mb0 dib dark-red selectInferno' + j +
'href="#0" data-added="0">'+'23(4)'+'</a> ';
for (j=24;j<35;j++){
tabellaCanti = tabellaCanti +
'<a class="f5 link dim br1 bn pa0 mb0 dib dark-green selectInferno' + j +
'href="#0" data-added="0">'+j+'</a> ';
}
$('#CantiInferno').append(tabellaCanti);
$('#CantiInferno').attr('style', "display:none;")
$('#ResultCantiInferno').append(tabellaCanti);
$('#ResultCantiInferno').attr('style', "display:block;")
$('.labelRisultatoInferno span').attr('style', "display:block;")
$('.labelRisultatoRicerca span').attr('style', "display:block;")
//CantiInferno = true;
CantiInferno = true;
// $('#apricerca').attr('style', "display:none;")
//$('#apricerca').css('opacity', '0,4');
$('#apricerca').css({'opacity' : 0.25});
$('.labelVai span').html("Risultati:");
$('#grammarbutton').attr('style', "display:block; width: 51px; height: 51px;");
$('a.selectParadiso').text("Paradiso (12)");
$('a.selectInferno').text("Inferno (5)");
$('a.selectPurgatorio').text("Purgatorio (6)");
$('.labelRisultatoParadiso').text("Paradiso (5)");
$('.labelRisultatoInferno').text("Inferno (6)");
$('.labelRisultatoPurgatorio').text("Purgatorio (6)");
$('#browseArea').css('opacity', '1');
$('#PagineCanti').prop("disabled", false);
$('#PagineCanti').css('overflow', 'auto');