diff --git a/NikBrowseSearchCombinedNew.html b/NikBrowseSearchCombinedNew.html index 5e176d1..b0c29e7 100644 --- a/NikBrowseSearchCombinedNew.html +++ b/NikBrowseSearchCombinedNew.html @@ -587,20 +587,38 @@
- - - - - - -
-
- - +
+
  
+
+ Risultati della ricerca:
+ +
+
+ +
+ Inferno: +
+ + +
+ Purgatorio: +
+ + +
+ Paradiso: +
+ + + +
+
+
diff --git a/js/NikBrowseSearchCombinedNew.js b/js/NikBrowseSearchCombinedNew.js index 2587ba8..98a9307 100644 --- a/js/NikBrowseSearchCombinedNew.js +++ b/js/NikBrowseSearchCombinedNew.js @@ -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 + - ''+j+' '; - } - tabellaCanti = tabellaCanti + - ''+'20(3)'+' '; - for (j=21;j<30;j++){ - tabellaCanti = tabellaCanti + - ''+j+' '; - } - - tabellaCanti = tabellaCanti + - ''+'30(2)'+' '; - - for (j=31;j<34;j++){ - tabellaCanti = tabellaCanti + - ''+j+' '; - } - - $('#CantiParadiso').append(tabellaCanti); - $('#CantiParadiso').attr('style', "display:none;") - - CantiParadiso = true; tabellaCanti =""; - for (j=1;j<10;j++){ - tabellaCanti = tabellaCanti + - ''+j+' '; - } - tabellaCanti = tabellaCanti + - ''+'10(4)'+' '; - for (j=11;j<25;j++){ - tabellaCanti = tabellaCanti + - ''+j+' '; - } tabellaCanti = tabellaCanti + - ''+'25(2)'+' '; + ''+'XX(3)'+' '; + + + tabellaCanti = tabellaCanti + + ''+'XXX(2)'+' '; - for (j=26;j<34;j++){ - tabellaCanti = tabellaCanti + - ''+j+' '; - } + + $('#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 + + ''+'X(4)'+' '; + + + tabellaCanti = tabellaCanti + + ''+'XXV(2)'+' '; + + + $('#ResultCantiPurgatorio').append(tabellaCanti); + $('#ResultCantiPurgatorio').attr('style', "display:block;") + $('.labelRisultatoPurgatorio span').attr('style', "display:block;") + + // CantiPurgatorio = true; tabellaCanti =""; tabellaCanti = tabellaCanti + ''+'1(5)'+' '; - for (j=2;j<15;j++){ - tabellaCanti = tabellaCanti + - ''+j+' '; - } + ' href="#0" data-added="0">'+'I(5)'+' '; + tabellaCanti = tabellaCanti + ''+'15(1)'+' '; - for (j=16;j<22;j++){ - tabellaCanti = tabellaCanti + - ''+j+' '; - } + ' href="#0" data-added="0">'+'XV(1)'+' '; - tabellaCanti = tabellaCanti + - ''+'22(2)'+' '; - tabellaCanti = tabellaCanti + - ''+'23(4)'+' '; - - - for (j=24;j<35;j++){ - tabellaCanti = tabellaCanti + - ''+j+' '; - } + - $('#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');