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

View File

@ -169,51 +169,6 @@ $(document).ready(function() {
Funzioni per visualizzare le clausole 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) { jQuery(document).delegate('select.synttype', 'change', function(e) {
e.preventDefault(); e.preventDefault();
@ -1184,123 +1139,77 @@ $(document).ready(function() {
function fakeResult(){ function fakeResult(){
$('#CantiInferno').empty() $('#ResultCantiInferno').empty()
$('#CantiPurgatorio').empty() $('#ResultCantiPurgatorio').empty()
$('#CantiParadiso').empty() $('#ResultCantiParadiso').empty()
CantiParadisoOpen = false;
CantiPurgatorioOpen = false;
CantiInfernoOpen = false;
tabellaCanti =""; 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 + tabellaCanti = tabellaCanti +
'<a class="f5 link dim br1 bn pa0 mb0 dib dark-red selectParadiso' + j + '<a class="f5 link dim br1 bn pa0 mb0 dib dark-red selectParadiso' + 20 +
'href="#0" data-added="0">'+'30(2)'+'</a> '; 'href="#0" data-added="0">'+'XX(3)'+'</a> ';
for (j=31;j<34;j++){
tabellaCanti = tabellaCanti + tabellaCanti = tabellaCanti +
'<a class="f5 link dim br1 bn pa0 mb0 dib dark-green selectParadiso' + j + '<a class="f5 link dim br1 bn pa0 mb0 dib dark-red selectParadiso' + 30 +
'href="#0" data-added="0">'+j+'</a> '; 'href="#0" data-added="0">'+'XXX(2)'+'</a> ';
}
$('#CantiParadiso').append(tabellaCanti);
$('#CantiParadiso').attr('style', "display:none;")
CantiParadiso = true; $('#ResultCantiParadiso').append(tabellaCanti);
$('#ResultCantiParadiso').attr('style', "display:block;")
$('.labelRisultatoParadiso span').attr('style', "display:block;")
// CantiParadiso = true;
tabellaCanti =""; 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 + tabellaCanti = tabellaCanti +
'<a class="f5 link dim br1 bn pa0 mb0 dib dark-red selectPurgatorio' + j + '<a class="f5 link dim br1 bn pa0 mb0 dib dark-red selectPurgatorio' + 10 +
'href="#0" data-added="0">'+'25(2)'+'</a> '; 'href="#0" data-added="0">'+'X(4)'+'</a> ';
for (j=26;j<34;j++){
tabellaCanti = tabellaCanti + tabellaCanti = tabellaCanti +
'<a class="f5 link dim br1 bn pa0 mb0 dib dark-green selectPurgatorio' + j + '<a class="f5 link dim br1 bn pa0 mb0 dib dark-red selectPurgatorio' + 25 +
'href="#0" data-added="0">'+j+'</a> '; 'href="#0" data-added="0">'+'XXV(2)'+'</a> ';
}
$('#CantiPurgatorio').append(tabellaCanti);
$('#CantiPurgatorio').attr('style', "display:none;")
CantiPurgatorio = true; $('#ResultCantiPurgatorio').append(tabellaCanti);
$('#ResultCantiPurgatorio').attr('style', "display:block;")
$('.labelRisultatoPurgatorio span').attr('style', "display:block;")
// CantiPurgatorio = true;
tabellaCanti =""; tabellaCanti ="";
tabellaCanti = tabellaCanti + tabellaCanti = tabellaCanti +
'<a class="f5 link dim br1 bn pa0 mb0 dib dark-red selectInferno' + '1' + '<a class="f5 link dim br1 bn pa0 mb0 dib dark-red selectInferno' + '1' +
' href="#0" data-added="0">'+'1(5)'+'</a> '; ' href="#0" data-added="0">'+'I(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> ';
}
tabellaCanti = tabellaCanti + tabellaCanti = tabellaCanti +
'<a class="f5 link dim br1 bn pa0 mb0 dib dark-red selectInferno' + '15' + '<a class="f5 link dim br1 bn pa0 mb0 dib dark-red selectInferno' + '15' +
' href="#0" data-added="0">'+'15(1)'+'</a> '; ' href="#0" data-added="0">'+'XV(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> ';
}
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); $('#ResultCantiInferno').append(tabellaCanti);
$('#CantiInferno').attr('style', "display:none;") $('#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}); $('#apricerca').css({'opacity' : 0.25});
$('.labelVai span').html("Risultati:");
$('#grammarbutton').attr('style', "display:block; width: 51px; height: 51px;"); $('.labelRisultatoParadiso').text("Paradiso (5)");
$('a.selectParadiso').text("Paradiso (12)"); $('.labelRisultatoInferno').text("Inferno (6)");
$('a.selectInferno').text("Inferno (5)"); $('.labelRisultatoPurgatorio').text("Purgatorio (6)");
$('a.selectPurgatorio').text("Purgatorio (6)");
$('#browseArea').css('opacity', '1'); $('#browseArea').css('opacity', '1');
$('#PagineCanti').prop("disabled", false); $('#PagineCanti').prop("disabled", false);
$('#PagineCanti').css('overflow', 'auto'); $('#PagineCanti').css('overflow', 'auto');