Fissato bug menu collapse da citazione

This commit is contained in:
Luca Trupiano 2023-03-16 12:48:44 +01:00
parent 45f1bbfd62
commit d2204fecd3
2 changed files with 16 additions and 16 deletions

View File

@ -35,7 +35,6 @@
src="https://hdnlab1.isti.cnr.it/d3search/node_modules/commarcdiag/d3.js"></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/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/lib/jquery.ui.touch-punch.js"></script>
<script type="text/javascript" src="./js/lib/jq-paginator.min.js"></script>
<script type="text/javascript" src="./js/cesareBrowse.js"></script> <script type="text/javascript" src="./js/cesareBrowse.js"></script>
<script type="text/javascript" src="./js/minimap.js"></script> <script type="text/javascript" src="./js/minimap.js"></script>
<script type="text/javascript" src="./js/partext.js"></script> <script type="text/javascript" src="./js/partext.js"></script>
@ -125,13 +124,13 @@
<div id="accordionNav" class="pr-2 sticky-top"> <div id="accordionNav" class="pr-2 sticky-top">
<div class="distanziatore">&nbsp;</div> <div class="distanziatore">&nbsp;</div>
<div class="card"> <div class="card">
<div class="card-header px-1" id="headingOne"> <div class="card-header px-1" id="headingInferno">
<h6 class="mb-0"> <h6 class="mb-0">
<div class="row no-gutters justify-content-between"> <div class="row no-gutters justify-content-between">
<div class="col-auto flex-fill align-self-center text-muted"> <div class="col-auto flex-fill align-self-center text-muted">
<button class="btn btn-sm btn-link" id="cantica1" <button class="btn btn-sm btn-link" id="cantica1"
data-toggle="collapse" data-target="#collapseOne" data-toggle="collapse" data-target="#collapseInferno"
aria-expanded="true" aria-controls="collapseOne"><span class="h6 font-weight-bold">Inferno</span></button> aria-expanded="true" aria-controls="collapseInferno"><span class="h6 font-weight-bold">Inferno</span></button>
</div> </div>
<div id="cantica1-badge" <div id="cantica1-badge"
class="col-auto align-self-center justify-content-end text-right"> class="col-auto align-self-center justify-content-end text-right">
@ -140,8 +139,8 @@
</h6> </h6>
</div> </div>
<div id="collapseOne" class="collapse show" <div id="collapseInferno" class="collapse show"
aria-labelledby="headingOne" data-parent="#accordionNav"> aria-labelledby="headingInferno" data-parent="#accordionNav">
<div class="card-body"> <div class="card-body">
<span class="navig-canto small text-muted nowrap" <span class="navig-canto small text-muted nowrap"
name="InfernoCanto 1" href="#" >I</span> name="InfernoCanto 1" href="#" >I</span>
@ -215,13 +214,13 @@
</div> </div>
</div> </div>
<div class="card"> <div class="card">
<div class="card-header px-1" id="headingTwo"> <div class="card-header px-1" id="headingPurgatorio">
<h6 class="mb-0"> <h6 class="mb-0">
<div class="row no-gutters justify-content-between"> <div class="row no-gutters justify-content-between">
<div class="col-auto flex-fill align-self-center text-muted"> <div class="col-auto flex-fill align-self-center text-muted">
<button class="btn btn-sm btn-link" id="cantica2" <button class="btn btn-sm btn-link" id="cantica2"
data-toggle="collapse" data-target="#collapseTwo" data-toggle="collapse" data-target="#collapsePurgatorio"
aria-expanded="true" aria-controls="collapseTwo"><span class="h6 font-weight-bold">Purgatorio</span></button> aria-expanded="true" aria-controls="collapsePurgatorio"><span class="h6 font-weight-bold">Purgatorio</span></button>
</div> </div>
<div id="cantica2-badge" <div id="cantica2-badge"
class="col-auto align-self-center justify-content-end text-right"> class="col-auto align-self-center justify-content-end text-right">
@ -229,8 +228,8 @@
</div> </div>
</h6> </h6>
</div> </div>
<div id="collapseTwo" class="collapse" <div id="collapsePurgatorio" class="collapse"
aria-labelledby="headingTwo" data-parent="#accordionNav"> aria-labelledby="headingPurgatorio" data-parent="#accordionNav">
<div class="card-body"> <div class="card-body">
<span class="navig-canto small text-muted nowrap" <span class="navig-canto small text-muted nowrap"
name="PurgatorioCanto 1" href="#" >I</span> name="PurgatorioCanto 1" href="#" >I</span>
@ -302,13 +301,13 @@
</div> </div>
</div> </div>
<div class="card"> <div class="card">
<div class="card-header px-1" id="headingThree"> <div class="card-header px-1" id="headingParadiso">
<h6 class="mb-0"> <h6 class="mb-0">
<div class="row no-gutters justify-content-between"> <div class="row no-gutters justify-content-between">
<div class="col-auto flex-fill align-self-center text-muted"> <div class="col-auto flex-fill align-self-center text-muted">
<button class="btn btn-sm btn-link" id="cantica3" <button class="btn btn-sm btn-link" id="cantica3"
data-toggle="collapse" data-target="#collapseThree" data-toggle="collapse" data-target="#collapseParadiso"
aria-expanded="true" aria-controls="collapseThree"><span class="h6 font-weight-bold">Paradiso</span></button> aria-expanded="true" aria-controls="collapseParadiso"><span class="h6 font-weight-bold">Paradiso</span></button>
</div> </div>
<div id="cantica3-badge" <div id="cantica3-badge"
class="col-auto align-self-center justify-content-end text-right"> class="col-auto align-self-center justify-content-end text-right">
@ -316,8 +315,8 @@
</div> </div>
</h6> </h6>
</div> </div>
<div id="collapseThree" class="collapse" <div id="collapseParadiso" class="collapse"
aria-labelledby="headingThree" data-parent="#accordionNav"> aria-labelledby="headingParadiso" data-parent="#accordionNav">
<div class="card-body"> <div class="card-body">
<span class="navig-canto small text-muted nowrap" <span class="navig-canto small text-muted nowrap"
name="ParadisoCanto 1" href="#" >I</span> name="ParadisoCanto 1" href="#" >I</span>

View File

@ -634,6 +634,7 @@ $(" ."+formaClass).hover(function(idx, element) {
const callerid=$(this).attr('id'); const callerid=$(this).attr('id');
if (callerid!=null && callerid.startsWith(idCitazione)){ if (callerid!=null && callerid.startsWith(idCitazione)){
const mypos=callerid.split('_')[2] const mypos=callerid.split('_')[2]
$("#collapse"+parcid[0].replace("Canto", "")).collapse('show');
document.getElementById(mypos).scrollIntoView(); document.getElementById(mypos).scrollIntoView();
} }