modificato cambio canto

This commit is contained in:
cesare 2023-02-23 10:46:02 +01:00
parent 08cc9a17c7
commit b88da1354f
1 changed files with 3 additions and 5 deletions

View File

@ -445,7 +445,7 @@ $(" ."+formaClass).hover(function(idx, element) {
var periodograph=document.getElementById("periodograph"); var periodograph=document.getElementById("periodograph");
if (periodograph!=null){ if (periodograph!=null){
let showngr=document.getElementById("periodograph").getAttribute('name').split("_") let showngr=periodograph.getAttribute('name').split("_")
var tmpsent=showngr[0]+"_"+showngr[1]+"_s_"+showngr[2]; var tmpsent=showngr[0]+"_"+showngr[1]+"_s_"+showngr[2];
if (shownSentenceList.has(tmpsent)){ if (shownSentenceList.has(tmpsent)){
lisid='' lisid=''
@ -455,11 +455,9 @@ $(" ."+formaClass).hover(function(idx, element) {
$("#periodograph").empty() $("#periodograph").empty()
} }
$(cantoDisplayed).css("display", "none");
$('.canto').each(function() {
$(this).css("display", "none");
});
const cid=$(this).attr('name').replace(" ", "_"); const cid=$(this).attr('name').replace(" ", "_");
cantoDisplayed = "#"+cid; cantoDisplayed = "#"+cid;