gestione grafo sintattico, rimozione stili testo
This commit is contained in:
parent
5b5e01e994
commit
51f3f36469
|
@ -142,7 +142,7 @@ $(" ."+formaClass).each(function(idx, element) {
|
|||
});
|
||||
|
||||
|
||||
//$( " .Ma, .Co, .Su, .Pa " ).dblclick(function() {
|
||||
|
||||
$( " ."+formaClass ).dblclick(function() {
|
||||
|
||||
sentenceId=$(this).attr('class').split(' ')[0].replace('$','')
|
||||
|
@ -152,7 +152,6 @@ $( " ."+formaClass ).dblclick(function() {
|
|||
shownSentenceList.delete(sentenceId)
|
||||
lsid=''
|
||||
|
||||
|
||||
}
|
||||
else{
|
||||
//showSentenceStructure (sentenceId)
|
||||
|
@ -162,7 +161,6 @@ $( " ."+formaClass ).dblclick(function() {
|
|||
});
|
||||
|
||||
|
||||
//$(" .Ma, .Co, .Su, .Pa").hover(function(idx, element) {
|
||||
$(" ."+formaClass).hover(function(idx, element) {
|
||||
|
||||
sentenceId=$(this).attr('class').split(' ')[0].split('_')
|
||||
|
@ -379,12 +377,24 @@ $(" ."+formaClass).hover(function(idx, element) {
|
|||
jQuery(document).delegate('.navig-canto', 'click', function(e) {
|
||||
resetFrasi()
|
||||
|
||||
elencoFrasiDisplayed = false;
|
||||
//$(cantoDisplayed).attr('style', 'display: d-flex;');
|
||||
elencoFrasiDisplayed = false;
|
||||
|
||||
$("#vistaFrasi").css("display", "none");
|
||||
$("#periodograph").empty()
|
||||
//var listaRisultati = $('.lista-risultati');
|
||||
//listaRisultati.attr("style", "background-color: ##007bff")
|
||||
|
||||
//rimuove il grafo sintattico se c'è'
|
||||
var periodograph=document.getElementById("periodograph");
|
||||
if (periodograph!=null){
|
||||
let showngr=document.getElementById("periodograph").getAttribute('name').split("_")
|
||||
var tmpsent=showngr[0]+"_"+showngr[1]+"_s_"+showngr[2];
|
||||
if (shownSentenceList.has(tmpsent)){
|
||||
lisid=''
|
||||
resetSentenceStructure(tmpsent)
|
||||
shownSentenceList.delete(tmpsent)
|
||||
}
|
||||
$("#periodograph").empty()
|
||||
}
|
||||
|
||||
|
||||
|
||||
$('.canto').each(function() {
|
||||
$(this).css("display", "none");
|
||||
|
@ -642,6 +652,26 @@ $(" ."+formaClass).hover(function(idx, element) {
|
|||
|
||||
}
|
||||
|
||||
|
||||
/*
|
||||
var periodograph=document.getElementById("periodograph");
|
||||
|
||||
if (periodograph!=null){
|
||||
console.log('val '+document.getElementById("periodograph").getAttribute('name'))
|
||||
let showngr=document.getElementById("periodograph").getAttribute('name').split("_")
|
||||
var tmpsent=showngr[0]+"_"+showngr[1]+"_s_"+showngr[2]
|
||||
periodograph.parentNode.removeChild(periodograph);
|
||||
//var sentence = document.getElementsByClassName(lsentid);
|
||||
var sentence = document.getElementsByClassName(tmpsent);
|
||||
for (let i = 0; i < sentence.length; i++) {
|
||||
sentence[i].classList.remove('font-italic');
|
||||
if (selectedVista!='frasi')
|
||||
sentence[i].style.removeProperty('color');
|
||||
|
||||
sentence[i].classList.remove('font-weight-normal');
|
||||
}
|
||||
*/
|
||||
|
||||
function resetSentenceStructure(sentence) {
|
||||
/*
|
||||
$(" ." + sentence).removeClass('text-info font-weight-normal')
|
||||
|
|
|
@ -56,7 +56,7 @@ document.addEventListener("dblclick", function(e){
|
|||
if (lisid!=''){
|
||||
|
||||
console.log('here graph '+lisid+' '+lsentid)
|
||||
main.redefine('width', 540);
|
||||
main.redefine('width', 605);
|
||||
main.redefine("lisid", lisid);
|
||||
var collection = document.getElementsByClassName(lsentid);
|
||||
for (let i = 0; i < collection.length; i++) {
|
||||
|
|
|
@ -239,7 +239,7 @@ WHERE {
|
|||
var colorssp = d3.scaleQuantize()
|
||||
.domain([0, 17])
|
||||
.range(["#3288bd", "#66c2a5", "#e41a1c", "#4daf4a", "#984ea3", "#d53e4f", "#f46d43", "#ABDDA4",
|
||||
"#E6F598", "ci", "#FEE08B", "#FDAE61", "#F46D43",
|
||||
"#E6F598", "#FFFFBF", "#FEE08B", "#FDAE61", "#F46D43",
|
||||
"#D53E4F", "#9E0142", "#e377c2", "#7f7f7f", "#bcbd22"]);
|
||||
|
||||
const mapsynttypestopalette = {
|
||||
|
|
Loading…
Reference in New Issue