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
} }
@ -201,6 +202,7 @@ $(" ."+formaClass).hover(function(idx, element) {
} }
}); });
jQuery(document).delegate(' .espandiFrase', 'click', function() { jQuery(document).delegate(' .espandiFrase', 'click', function() {
var cid = $(this).attr('id'); var cid = $(this).attr('id');
var parcid=cid.split('_'); var parcid=cid.split('_');
@ -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')