Compare commits

..

No commits in common. "7939551043617bbdf840467148808cb1be1f089e" and "42c46c5ef3c2552e187eda7da864c3d3ada03652" have entirely different histories.

4 changed files with 38 additions and 2538 deletions

View File

@ -471,7 +471,6 @@ a[target="_blank"]::after {
.Nik_dropdown-content {
box-shadow: 0px 8px 16px 0px rgba(0,0,0,0.2);
background-color: #e4e5dd !important;
color: #1E90FF;
}

View File

@ -36,7 +36,7 @@
<script src="https://hdnlab1.isti.cnr.it/d3search/node_modules/commarcdiag/d3.js"></script>
<script type="text/javascript" src="./js/lib/peg-0.10.0.min.js"></script>
<script type="text/javascript" src="./js/lib/jquery.ui.touch-punch.js"></script>
<script type="text/javascript" src="./js/browseMgr.js"></script>
<script type="text/javascript" src="./js/cesareBrowse.js"></script>
<script type="text/javascript" src="./js/minimap_4.3.js"></script>
<script type="text/javascript" src="./js/partext.js"></script>
<script type="text/javascript" src="./js/utils.js"></script>

File diff suppressed because it is too large Load Diff

View File

@ -8,6 +8,8 @@ var lsid;
var lsentid;
const formaClass='frm'
var selectedVista;
var vistaPeriodi=false
var vistaDialoghi=false
var listaPeriodiRisultato;
var listaClausoleRisultato;
var numeroContesti;
@ -77,20 +79,16 @@ $('#opzioniVista :checkbox').change(function() {
//resetFrasi()
selectedVista = 'frasi'
$(cantoDisplayed).attr('style', 'display: d-flex;')
//cancello il grafo sintattico
//resetGraphStruct()
//emptyStructCard()
vistaPeriodi=true
loadFrasi();
break;
case "visPeriodi|false":
$("#vistaFrasi").css("display", "none");
resetFrasi()
vistaPeriodi=false
if(vistaDialoghi)
loadDialoghi();
$(cantoDisplayed).attr('style', 'display: d-flex;')
//cancello il grafo sintattico
//resetGraphStruct()
//emptyStructCard()
break;
case "visRiferimenti|true":
$(".showcomments").css("display", "inline-block");
@ -109,12 +107,30 @@ $('#opzioniVista :checkbox').change(function() {
break;
case "visDialoghi|true":
selectedVista = 'dialoghi'
esetFrasi()
//resetFrasi()
loadDialoghi();
vistaDialoghi=true
break;
case "visDialoghi|false":
$("#vistaDialoghi").css("display", "none");
resetFrasi()
vistaDialoghi=false
//trasformare in una funzione
for (mk in dialogspeakers){
$(cantoDisplayed).find(' .'+dialogspeakers[mk]).each(function() {
$(this).removeClass(dialogspeakers[mk]);
})
minim.contents().find(' .'+dialogspeakers[mk]).each(function(){
$(this).removeClass(dialogspeakers[mk]);
})
}
$(cantoDisplayed).find(' .'+dialogaltri).each(function() {
$(this).removeClass(dialogaltri);
})
minim.contents().find(' .'+dialogaltri).each(function(){
$(this).removeClass(dialogaltri);
})
break;
case "visMetafore|true":
//loadMetafore();
@ -124,7 +140,7 @@ $('#opzioniVista :checkbox').change(function() {
}
});
$("#valoreVista").on('change', function() {
/*$("#valoreVista").on('change', function() {
selectedVista = $(this).val();
switch (selectedVista){
case "forme":
@ -155,7 +171,7 @@ $("#valoreVista").on('change', function() {
resetGraphStruct()
emptyStructCard()
}
});
});*/
@ -831,6 +847,7 @@ function resetFrasi(){
//cancello il grafo sintattico
resetGraphStruct()
emptyStructCard()
vistaPeriodi=false
}
/*INIZIO GESTIONE CITAZIONI*/
@ -1293,9 +1310,9 @@ function resetFrasi(){
//Calcola lemma e categoria grammaticale oppure categoria sintattica per tooltip
function formatTTContent(categ, syntType, sentId){
if (selectedVista=='frasi'){
/*if (selectedVista=='frasi'){
return '<div class="ttContent"><b>'+maptypes[syntType]+'</b></div>';
}
}*/
var details=[];
var lemma=categ.split('#')[1].replace("^", " ") //il lemma
var categoria=categ.split('#')[0] // la categoria
@ -1306,6 +1323,7 @@ function resetFrasi(){
var subcatgramm = '';
var popoverText = '';
var discorsost='';
var funcFrase='';
var TipiDiscorso={
"ThoughtDiscourse": "Pensato",
"DirectDiscourse": "Diretto",
@ -1323,7 +1341,7 @@ function resetFrasi(){
popoverText = popoverText + catgramm + subcatgramm;
}
if(selectedVista=='dialoghi'){
if(vistaDialoghi){
for (const india in dialoghi){
if (dialoghi[india]['Cnt'].replace('_so','')==sentId){
discorsost="<div class='ttContentPers'><b>Personaggio:</b> <i>"+dialoghi[india]['Spna'].replace('http://dantenetwork.it/data/commedia/', '')+'</i>'
@ -1332,7 +1350,10 @@ function resetFrasi(){
}
}
}
popoverText=popoverText+discorsost
if(vistaPeriodi){
funcFrase='<div class="ttContent"><b>'+maptypes[syntType]+'</b></div>'
}
popoverText=popoverText+discorsost+funcFrase
return (popoverText);
}