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