aggiunto scroll

This commit is contained in:
cesare 2023-02-24 20:07:03 +01:00
parent a29c446a3a
commit d207b62e69
1 changed files with 10 additions and 7 deletions

View File

@ -191,8 +191,9 @@ $(" ."+formaClass).hover(function(idx, element) {
}); });
*/ */
//displayCantoWrapperId
$("#" + displayId).scroll(function() { //$("#" + displayId).scroll(function() {
$(displayCantoWrapperId).scroll(function() {
if (minimapScrolling) { if (minimapScrolling) {
minimapScrolling = false minimapScrolling = false
} }
@ -200,6 +201,7 @@ $(" ."+formaClass).hover(function(idx, element) {
trackScrollCanto() trackScrollCanto()
} }
}); });
jQuery(document).delegate(' .espandiFrase', 'click', function() { jQuery(document).delegate(' .espandiFrase', 'click', function() {
var cid = $(this).attr('id'); var cid = $(this).attr('id');
@ -623,7 +625,7 @@ $(" ."+formaClass).hover(function(idx, element) {
function cleanSearchResult() { function cleanSearchResult() {
$("#headingZero").closest('.card') .css("display", "none"); $("#headingZero").closest('.card').css("display", "none");
$("#vistaFrasi").empty() $("#vistaFrasi").empty()
$("#vistaFrasi").css("display", "none"); $("#vistaFrasi").css("display", "none");
for (msid of listaPeriodiRisultato){ for (msid of listaPeriodiRisultato){
@ -745,8 +747,8 @@ $(" ."+formaClass).hover(function(idx, element) {
createSpanPeriodiTag(closeSTag, 'c', formaItem[2]-1, currSentenceId, elverso) createSpanPeriodiTag(closeSTag, 'c', formaItem[2]-1, currSentenceId, elverso)
currSentenceId=null currSentenceId=null
} }
//elverso=createDivVersoNew(cantica, formaItem[3], 'Canto_' + formaItem[1]) elverso=createDivVersoNew(cantica, formaItem[3], 'Canto_' + formaItem[1])
elverso=createDivVersoLI(cantica, formaItem[3], 'Canto_' + formaItem[1]) //elverso=createDivVersoLI(cantica, formaItem[3], 'Canto_' + formaItem[1])
setVersiCanto.add(cantica+ "_" + formaItem[3] + "_" + 'Canto_' + formaItem[1]) setVersiCanto.add(cantica+ "_" + formaItem[3] + "_" + 'Canto_' + formaItem[1])
} }
if(currSentenceId==null || currSentenceId != sentenceid){ if(currSentenceId==null || currSentenceId != sentenceid){
@ -835,7 +837,8 @@ $(" ."+formaClass).hover(function(idx, element) {
elementoverso.attr("style", "line-height: 1.0em") elementoverso.attr("style", "line-height: 1.0em")
elementoverso.attr('class', 'f6 mb-2 text-muted text-nowrap font-weight-lighter '+cantica+' '+canto) elementoverso.attr('class', 'f6 mb-1 text-muted text-nowrap font-weight-lighter ')//+cantica+' '+canto)
//elementoverso.attr('class', 'text-nowrap ')//+cantica+' '+canto)
elementoverso.attr('id', cantica + "_" + canto + "_" + num) elementoverso.attr('id', cantica + "_" + canto + "_" + num)
elementoverso.append('\xa0') elementoverso.append('\xa0')
@ -1057,7 +1060,7 @@ $(" ."+formaClass).hover(function(idx, element) {
} }
//aggiunge badge con totale risultati nel bottone lista risultati //aggiunge badge con totale risultati nel bottone lista risultati
if (totResultN>0){ if (totResultN>0){
$("#headingZero").closest('.card') .attr('style', 'display: d-flex;') $("#headingZero").closest('.card').attr('style', 'display: d-flex;')
var spanbadgelista = $('<span />'); var spanbadgelista = $('<span />');
spanbadgelista.attr('class', 'badge badge-primary badge-pill mx-2 lista-risultati'); spanbadgelista.attr('class', 'badge badge-primary badge-pill mx-2 lista-risultati');
spanbadgelista.append(totResultN+listIcon) spanbadgelista.append(totResultN+listIcon)