bug fixing
This commit is contained in:
parent
d72b1381cf
commit
e9cf35f88a
|
@ -33,7 +33,7 @@ document.addEventListener("dblclick", function(e){
|
||||||
|
|
||||||
//if (name === "sentenceStructArcs_new") {
|
//if (name === "sentenceStructArcs_new") {
|
||||||
if (name === "sentenceArcsStructs_new") {
|
if (name === "sentenceArcsStructs_new") {
|
||||||
const structel = document.getElementsByClassName(lsentid);
|
const structel = document.querySelector(cantoDisplayed).getElementsByClassName(lsentid);
|
||||||
//console.log(structel[0].parentNode.getAttribute('value'))
|
//console.log(structel[0].parentNode.getAttribute('value'))
|
||||||
var stid=lsentid.split('_')
|
var stid=lsentid.split('_')
|
||||||
var structid=stid[0]+'_'+stid[1]+'_'+structel[0].parentNode.parentNode.getAttribute('value')
|
var structid=stid[0]+'_'+stid[1]+'_'+structel[0].parentNode.parentNode.getAttribute('value')
|
||||||
|
@ -52,8 +52,7 @@ document.addEventListener("dblclick", function(e){
|
||||||
|
|
||||||
main.redefine('width', 625);
|
main.redefine('width', 625);
|
||||||
main.redefine("lisid", lisid);
|
main.redefine("lisid", lisid);
|
||||||
const structel = document.getElementsByClassName(lsentid);
|
const structel = document.querySelector(cantoDisplayed).getElementsByClassName(lsentid);
|
||||||
|
|
||||||
var stid=lsentid.split('_')
|
var stid=lsentid.split('_')
|
||||||
var structid=stid[0]+'_'+stid[1]+'_'+structel[0].parentNode.parentNode.getAttribute('value')
|
var structid=stid[0]+'_'+stid[1]+'_'+structel[0].parentNode.parentNode.getAttribute('value')
|
||||||
|
|
||||||
|
@ -85,25 +84,6 @@ document.addEventListener("dblclick", function(e){
|
||||||
});
|
});
|
||||||
|
|
||||||
|
|
||||||
/*function resetMinimap(sentid){
|
|
||||||
//var iframe = document.getElementsByClassName("minimap__content");
|
|
||||||
|
|
||||||
var iframeDocument = iframe[0].contentDocument || iframe[0].contentWindow.document;
|
|
||||||
if (!iframeDocument) {
|
|
||||||
throw "iframe couldn't be found in DOM.";
|
|
||||||
}
|
|
||||||
var iframeSentence = iframeDocument.getElementsByClassName(sentid);
|
|
||||||
for (let i = 0; i < iframeSentence.length; i++) {
|
|
||||||
iframeSentence[i].classList.remove('font-italic');
|
|
||||||
if (!vistaPeriodi)
|
|
||||||
iframeSentence[i].style.removeProperty('color');
|
|
||||||
|
|
||||||
iframeSentence[i].classList.remove('font-weight-normal');
|
|
||||||
}
|
|
||||||
|
|
||||||
}*/
|
|
||||||
|
|
||||||
|
|
||||||
function updateMinimap(sentid){
|
function updateMinimap(sentid){
|
||||||
//var iframe = document.getElementsByClassName("minimap__content");
|
//var iframe = document.getElementsByClassName("minimap__content");
|
||||||
|
|
||||||
|
@ -131,14 +111,11 @@ export function resetGraphStr(){
|
||||||
var tmpsent = showngr[0] + "_" + showngr[1] + "_s_" + showngr[2]
|
var tmpsent = showngr[0] + "_" + showngr[1] + "_s_" + showngr[2]
|
||||||
periodograph.parentNode.removeChild(periodograph);
|
periodograph.parentNode.removeChild(periodograph);
|
||||||
|
|
||||||
//var sentence = document.getElementsByClassName(lsentid);
|
var sentence=document.querySelector(cantoDisplayed).getElementsByClassName(tmpsent);
|
||||||
var sentence = document.getElementsByClassName(tmpsent);
|
|
||||||
|
|
||||||
for (let i = 0; i < sentence.length; i++) {
|
for (let i = 0; i < sentence.length; i++) {
|
||||||
//var matches = listaClausoleRisultato.filter(s => s.includes(sentence[i].classList[0]));
|
//var matches = listaClausoleRisultato.filter(s => s.includes(sentence[i].classList[0]));
|
||||||
sentence[i].classList.remove('font-italic');
|
sentence[i].classList.remove('font-italic');
|
||||||
/*if (!vistaPeriodi && !listaPeriodiRisultato.includes(tmpsent)
|
|
||||||
&& listaClausoleRisultato.filter(cl => cl.split('-')[0]==tmpsent).length==0)*/
|
|
||||||
if (!vistaPeriodi)
|
if (!vistaPeriodi)
|
||||||
sentence[i].style.removeProperty('color');
|
sentence[i].style.removeProperty('color');
|
||||||
|
|
||||||
|
@ -161,9 +138,9 @@ export function resetGraphStr(){
|
||||||
}
|
}
|
||||||
//EMPTY CARD
|
//EMPTY CARD
|
||||||
emptyStructCard()
|
emptyStructCard()
|
||||||
|
//visualizzazione risultati query
|
||||||
graphTextReset()
|
graphTextReset()
|
||||||
if (tmpsent == lsentid) {
|
if (tmpsent == lsentid) {
|
||||||
|
|
||||||
return true
|
return true
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue