cambiata formattazione x visualizzazione lemma

This commit is contained in:
cesare 2023-08-31 10:33:58 +02:00
parent 39f5448360
commit 1a02ba1a6e
1 changed files with 5 additions and 3 deletions

View File

@ -721,11 +721,13 @@ function resetFrasi(){
}
}
//Visualizzazione lemma e categoria grammaticale
function formatTTContent(categ, syntType){
var details=[];
var lemma=categ.split('#')[1] //il lemma
var lemma=categ.split('#')[1].replace("^", " ") //il lemma
var categoria=categ.split('#')[0] // la categoria
details = getHoverContent(categoria);
var details = getHoverContent(categoria);
var myitems;
var catgramm;
@ -739,7 +741,7 @@ function resetFrasi(){
myitems= detail.split(',');
catgramm='<div class="ttContent">';
subcatgramm='<p> <b> "'+lemma+'", '+myitems[0]+',</b><i>'+myitems.slice(1,-1)+'</i></p></div>';
subcatgramm='<p> <b> "'+lemma+'" - </b><i>'+myitems[0]+','+myitems.slice(1,-1)+'</i></p></div>';
popoverText = popoverText + catgramm + subcatgramm;
}