gestione viste modificata, in progress
This commit is contained in:
parent
a2cd157372
commit
9b40d4c770
|
@ -123,6 +123,7 @@ function loadFrasi() {
|
||||||
})
|
})
|
||||||
//drawMinimap(cantoDisplayed)
|
//drawMinimap(cantoDisplayed)
|
||||||
}
|
}
|
||||||
|
|
||||||
function resetFrasi(){
|
function resetFrasi(){
|
||||||
|
|
||||||
$(cantoDisplayed).find(' .sentencetag').each(function() {
|
$(cantoDisplayed).find(' .sentencetag').each(function() {
|
||||||
|
@ -144,6 +145,7 @@ function resetFrasi(){
|
||||||
|
|
||||||
|
|
||||||
//$(" .Ma, .Co, .Su, .Pa").each(function(idx, element) {
|
//$(" .Ma, .Co, .Su, .Pa").each(function(idx, element) {
|
||||||
|
|
||||||
$(" ."+formaClass).each(function(idx, element) {
|
$(" ."+formaClass).each(function(idx, element) {
|
||||||
// We cycle through the elements using each() so that we can choose the element specifically that we wish to clean up afterward
|
// We cycle through the elements using each() so that we can choose the element specifically that we wish to clean up afterward
|
||||||
var ele = $(element);
|
var ele = $(element);
|
||||||
|
@ -441,10 +443,12 @@ $(" ."+formaClass).hover(function(idx, element) {
|
||||||
jQuery(document).delegate('.navig-canto', 'click', function(e) {
|
jQuery(document).delegate('.navig-canto', 'click', function(e) {
|
||||||
resetFrasi()
|
resetFrasi()
|
||||||
|
|
||||||
|
//nasconde vista risultati
|
||||||
$("#vistaFrasi").css("display", "none");
|
$("#vistaFrasi").css("display", "none");
|
||||||
|
|
||||||
//rimuove il grafo sintattico se c'è'
|
//rimuove il grafo sintattico se c'è'
|
||||||
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=document.getElementById("periodograph").getAttribute('name').split("_")
|
||||||
var tmpsent=showngr[0]+"_"+showngr[1]+"_s_"+showngr[2];
|
var tmpsent=showngr[0]+"_"+showngr[1]+"_s_"+showngr[2];
|
||||||
|
@ -481,28 +485,12 @@ $(" ."+formaClass).hover(function(idx, element) {
|
||||||
}
|
}
|
||||||
//$("#" + $(this).attr('name').replace(" ", "_")).css("display", "block");
|
//$("#" + $(this).attr('name').replace(" ", "_")).css("display", "block");
|
||||||
$("#" + $(this).attr('name').replace(" ", "_")).attr('style', 'display: d-flex;')
|
$("#" + $(this).attr('name').replace(" ", "_")).attr('style', 'display: d-flex;')
|
||||||
|
|
||||||
drawMinimap("#" + $(this).attr('name').replace(" ", "_"))
|
drawMinimap("#" + $(this).attr('name').replace(" ", "_"))
|
||||||
$(" ."+formaClass).each(function(idx, element) {
|
if (selectedVista=='frasi'){
|
||||||
var ele = $(element);
|
loadFrasi();
|
||||||
ele.tooltip({
|
}
|
||||||
content: (function() {return formatTTContent(ele.attr('title'), ele.attr('class').split(' ')[1]);}),
|
addFormaListeners();
|
||||||
classes:{"ui-tooltip":'Nik_dropdown-content'},
|
|
||||||
close: function (event, ui) {$(".ui-helper-hidden-accessible").remove();},
|
|
||||||
create: function(ev, ui) {$(this).data("ui-tooltip").liveRegion.remove();},
|
|
||||||
hide: false,
|
|
||||||
show: false
|
|
||||||
|
|
||||||
});
|
|
||||||
ele.hover(function(idx, element) {
|
|
||||||
|
|
||||||
sentenceId=$(this).attr('class').split(' ')[0].split('_')
|
|
||||||
var tmplisid=sentenceId[0]+'_'+sentenceId[1]+'_'+sentenceId[3]
|
|
||||||
lsentid=$(this).attr('class').split(' ')[0]
|
|
||||||
lisid=tmplisid
|
|
||||||
|
|
||||||
});
|
|
||||||
|
|
||||||
});
|
|
||||||
|
|
||||||
});
|
});
|
||||||
|
|
||||||
|
@ -655,9 +643,8 @@ $(" ."+formaClass).hover(function(idx, element) {
|
||||||
|
|
||||||
|
|
||||||
$(".badge").remove();
|
$(".badge").remove();
|
||||||
$("#headingZero").css("display", "none");
|
//$("#headingZero").css("display", "none");
|
||||||
//$("#vistaFrasi").empty()
|
|
||||||
//$("#vistaFrasi").css("display", "none");
|
|
||||||
listarisultati = []
|
listarisultati = []
|
||||||
listaPeriodiRisultato=[]
|
listaPeriodiRisultato=[]
|
||||||
resultSentences=new Set()
|
resultSentences=new Set()
|
||||||
|
|
Loading…
Reference in New Issue