eliminato lente search e reso visibile in secondo piano la query div

This commit is contained in:
nicola 2022-11-07 17:16:08 +01:00
parent 75b2e67f05
commit a808b06381
2 changed files with 87 additions and 6 deletions

View File

@ -231,13 +231,13 @@
</textarea> </textarea>
</form> </form>
<p> <!-- <p>
<input style="display: block; width: 51px; height: 51px;" <input style="display: block; width: 51px; height: 51px;"
class="b ph7-m pv2 input-reset bn b--black bg-transparent grow pointer f6" class="b ph7-m pv2 input-reset bn b--black bg-transparent grow pointer f6"
type="image" src="./images/Search.png" id="grammarbutton" type="image" src="./images/Search.png" id="grammarbutton"
value="Cerca" title="Applica i criteri di ricerca"> value="Cerca" title="Applica i criteri di ricerca">
</p> </p>
-->
</div> </div>
</div> </div>
</div> </div>
@ -255,7 +255,7 @@
<!-- Da index_Luk_Q_.html --> <!-- Da index_Luk_Q_.html -->
<div class="container border bg-light" style="display: none;" id="apricerca"> <div class="container border bg-light" style="display: block;" id="apricerca">
<div class="row"> <div class="row">
<div class="col-md-12 p-2"> <div class="col-md-12 p-2">
<ul class="nav nav-tabs" id="tab-list" role="tablist"> <ul class="nav nav-tabs" id="tab-list" role="tablist">

View File

@ -150,6 +150,12 @@ $(document).ready(function() {
var clausolaVisibile = false //contiene il valore true se una clausola è gia visibile e quindi non se ne può visualizzare una seconda var clausolaVisibile = false //contiene il valore true se una clausola è gia visibile e quindi non se ne può visualizzare una seconda
var tipoClausola = '' var tipoClausola = ''
$('#apricerca').css({'opacity' : 0.25});
$('#lemma_forma').prop("disabled", true);
$('#opzioni_testo').prop("disabled", true);
$('#BottoneCerca').prop("disabled", true);
$('.tabs__menu-item').on('click', function() { $('.tabs__menu-item').on('click', function() {
$(this).addClass('bg-white').addClass('red'); $(this).addClass('bg-white').addClass('red');
@ -1101,7 +1107,10 @@ $(document).ready(function() {
jQuery(document).delegate('#close_cerca', 'click', function(e) { jQuery(document).delegate('#close_cerca', 'click', function(e) {
e.preventDefault(); e.preventDefault();
$('#apricerca').attr('style', "display:none;") //$('#apricerca').attr('style', "display:none;")
//$('#apricerca').css('opacity', '0,4');
$('#apricerca').css({'opacity' : 0.25});
$('.labelVai span').html("Vai a:"); $('.labelVai span').html("Vai a:");
$('#grammarbutton').attr('style', "display:block; width: 51px; height: 51px;"); $('#grammarbutton').attr('style', "display:block; width: 51px; height: 51px;");
@ -1121,7 +1130,9 @@ $(document).ready(function() {
$('.labelVai span').html("Cerca in:"); $('.labelVai span').html("Cerca in:");
$('#grammarbutton').attr('style', "display:none;"); $('#grammarbutton').attr('style', "display:none;");
$('#apricerca').attr('style', "display:block;") // $('#apricerca').attr('style', "display:block;")
$('#apricerca').css('opacity', '1');
$('#advanSW').prop('checked',false) $('#advanSW').prop('checked',false)
$('#PagineCanti').highlightWithinTextarea('destroy'); $('#PagineCanti').highlightWithinTextarea('destroy');
$('#CantiInferno').empty() $('#CantiInferno').empty()
@ -1164,9 +1175,33 @@ $(document).ready(function() {
}); });
}); });
jQuery(document).delegate('#apricerca', 'click', function(e) {
e.preventDefault();
$(this).css('opacity', '1');
$('#browseArea').css('opacity', '0.4');
$('.labelVai span').html("Cerca in:");
$('#lemma_forma').prop("disabled", false);
$('#opzioni_testo').prop("disabled", false);
$('#BottoneCerca').prop("disabled", false);
clearResult();
});
jQuery(document).delegate('#browseArea', 'click', function(e) {
e.preventDefault();
$(this).css('opacity', '1');
$('#apricerca').css('opacity', '0.4');
$('.labelVai span').html("Vai a:");
$('#lemma_forma').prop("disabled", true);
$('#opzioni_testo').prop("disabled", true);
$('#BottoneCerca').prop("disabled", true);
});
// Da Luca JS // Da Luca JS
var tabID = 0; var tabID = 0;
@ -1222,6 +1257,49 @@ $(document).ready(function() {
}; };
}); });
function clearResult(){
$('#CantiInferno').empty()
$('#CantiPurgatorio').empty()
$('#CantiParadiso').empty()
CantiParadisoOpen = false;
CantiPurgatorioOpen = false;
CantiInfernoOpen = false;
tabellaCanti ="";
for (j=1;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);
tabellaCanti ="";
for (j=1;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> ';
}
$('#CantiPurgatorio').append(tabellaCanti);
tabellaCanti ="";
for (j=1;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);
$('#occorrenze').attr('style', "display:none;")
$('a.selectParadiso').text("Paradiso");
$('a.selectInferno').text("Inferno");
$('a.selectPurgatorio').text("Purgatorio");
}
function fakeResult(){ function fakeResult(){
$('#CantiInferno').empty() $('#CantiInferno').empty()
@ -1332,7 +1410,10 @@ $(document).ready(function() {
CantiInferno = true; CantiInferno = true;
$('#apricerca').attr('style', "display:none;") // $('#apricerca').attr('style', "display:none;")
//$('#apricerca').css('opacity', '0,4');
$('#apricerca').css({'opacity' : 0.25});
$('.labelVai span').html("Risultati:"); $('.labelVai span').html("Risultati:");
$('#grammarbutton').attr('style', "display:block; width: 51px; height: 51px;"); $('#grammarbutton').attr('style', "display:block; width: 51px; height: 51px;");
$('a.selectParadiso').text("Paradiso (12)"); $('a.selectParadiso').text("Paradiso (12)");