aggiunta la visualizzazione del lemma per ciascuna forma
This commit is contained in:
parent
146902f5cf
commit
39f5448360
|
@ -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){
|
||||
|
|
2458
js/partext.js
2458
js/partext.js
File diff suppressed because one or more lines are too long
Loading…
Reference in New Issue