This commit is contained in:
cesare 2025-01-30 14:54:15 +01:00
commit 6c64754bd7
2 changed files with 27 additions and 1 deletions

View File

@ -689,6 +689,7 @@
</select>
</div>
<span class="px-2" id="spanContenenti">Contenenti:</span>
<div id="grammaticaEsintassi" style="display: none;">
<div class="px-1 pb-0" id="cercaFrasiPeriodiDiscorsi">
<div
@ -1994,6 +1995,10 @@
class="addCCbtn btn btn-md bg-secondary text-white">
<span class="text-white">OR</span>
</button>
<button id="btnParentesi" type="button"
class="addCCbtn btn btn-md bg-secondary text-white">
<span class="text-white">( )</span>
</button>
</div>
</div>
</div>
@ -2017,22 +2022,29 @@
<div style="display: none;">
<ul>
<!-- LI CLAUSOLA -->
<li id="li-claxX1Xx" style="display: none;"
class="claLI card mx-0 my-1 py-1 px-0 list-group-item align-items-center border text-muted bg-lida-vis">
<div class="handle container p-0 pl-1">
<div
class="row no-gutters flex-nowrap align-items-start justify-content-between">
<div class="col-md-auto pl-0 pr-1 align-self-start">
<span class="ui-icon ui-icon-arrowthick-2-n-s"></span>
</div>
<div style="min-height: 64px;"
class="col-md-auto pl-0 pr-2 pb-2 flex-fill align-self-start">
<span class="small clatext">xX2Xx<br> <br></span>
</div>
<div
class="col-md-auto px-1 align-self-start justify-content-end">
<div class="row no-gutters flex-nowrap justify-content-end">
<div
class="col-auto pb-0 pl-2 pr-1 pt-1 align-top flex-grow-1 align-self-start justify-content-end text-right bd-highlight text-success editCla"
@ -2054,7 +2066,9 @@
</button>
</div>
</div>
</div>
</div>
<div
class="row no-gutters flex-nowrap align-items-start justify-content-end">
@ -2067,6 +2081,7 @@
aria-expanded="false" aria-controls="collapseClaxX1Xx">
<ion-icon name="pencil"></ion-icon>
</button>
</div>
</div>
</div>

View File

@ -67,7 +67,11 @@ $(document).ready(function() {
var newStyle = $(this)[0].id;
setStyle(newStyle);
});
$('#btnParentesi').on('click', function() {
var fava = $("#parentesiAperta1");
$("#parentesiAperta1").attr('style', "display: d-flex;");
$("#parentesiChiusa2").attr('style', "display: d-flex;");
});
// Evento: click sulla voce about del menu info
$("#visAbout").PopupLayer({
@ -162,6 +166,8 @@ $(document).ready(function() {
});
if (tabID == 0) {
tabID++;
$('#sortable0').append('<h3 class="text-primary " id="parentesiAperta1" style="display: none;">(<br></h3>');
addGramCla("#sortable0", 1, tabID, 1);
}else{
refreshClaList(tabID);
@ -953,6 +959,7 @@ $(document).ready(function() {
claClone.attr("data-claActive", active);
claClone.attr("aria-labelledby", "cla" + tabID + "-tab");
claClone.attr("style", "");
$('#claBody' + tabID).append(claClone);
$('#cla' + tabID + " #grammtypesN").attr("id", "grammtypes_" + tabID);
$('#cla' + tabID + " #lemma_formaINIT").attr("id", "lemmaforma_" + tabID);
@ -1151,10 +1158,14 @@ $(document).ready(function() {
}
$(sortableId).append(boolCond)
$(sortableId).append($(cloneLI)[0]);
if (tabID == 2){
$(sortableId).append('<h3 class="text-primary " id="parentesiChiusa2" style="display: none;">)<br></h3>');
}
if (toExpand == 1) {
$("#claCollapse" + tabID).focus();
$("#claCollapse" + tabID).trigger("click");
}
$("#li-cla" + tabID).fadeTo(1000, 1);
};