aggiunta la visualizzazione del lemma per ciascuna forma

This commit is contained in:
cesare 2023-08-29 17:35:49 +02:00
parent 146902f5cf
commit 39f5448360
2 changed files with 1238 additions and 1233 deletions

View File

@ -723,8 +723,9 @@ function resetFrasi(){
function formatTTContent(categ, syntType){
var details=[];
details = getHoverContent(categ);
var lemma=categ.split('#')[1] //il lemma
var categoria=categ.split('#')[0] // la categoria
details = getHoverContent(categoria);
var myitems;
var catgramm;
@ -738,7 +739,7 @@ function resetFrasi(){
myitems= detail.split(',');
catgramm='<div class="ttContent">';
subcatgramm='<p> <b>'+myitems[0]+'</b><i>'+myitems.slice(1,-1)+'</i></p></div>';
subcatgramm='<p> <b> "'+lemma+'", '+myitems[0]+',</b><i>'+myitems.slice(1,-1)+'</i></p></div>';
popoverText = popoverText + catgramm + subcatgramm;
}
@ -749,6 +750,12 @@ function resetFrasi(){
//console.log('Categoria '+categ)
var mycat=[];
categ=categ.replace('%2A', '*')
categ=categ.replace('%2B', '+')
categ=categ.replace('%2C', ',')
categ=categ.replace('%2D', '-')
if(categ.includes('^')){
categs=categ.split('^')
for (cat of categs){

File diff suppressed because one or more lines are too long