Fissato bug menu collapse da citazione
This commit is contained in:
parent
45f1bbfd62
commit
d2204fecd3
|
@ -35,7 +35,6 @@
|
|||
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/lib/jq-paginator.min.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/partext.js"></script>
|
||||
|
@ -125,13 +124,13 @@
|
|||
<div id="accordionNav" class="pr-2 sticky-top">
|
||||
<div class="distanziatore"> </div>
|
||||
<div class="card">
|
||||
<div class="card-header px-1" id="headingOne">
|
||||
<div class="card-header px-1" id="headingInferno">
|
||||
<h6 class="mb-0">
|
||||
<div class="row no-gutters justify-content-between">
|
||||
<div class="col-auto flex-fill align-self-center text-muted">
|
||||
<button class="btn btn-sm btn-link" id="cantica1"
|
||||
data-toggle="collapse" data-target="#collapseOne"
|
||||
aria-expanded="true" aria-controls="collapseOne"><span class="h6 font-weight-bold">Inferno</span></button>
|
||||
data-toggle="collapse" data-target="#collapseInferno"
|
||||
aria-expanded="true" aria-controls="collapseInferno"><span class="h6 font-weight-bold">Inferno</span></button>
|
||||
</div>
|
||||
<div id="cantica1-badge"
|
||||
class="col-auto align-self-center justify-content-end text-right">
|
||||
|
@ -140,8 +139,8 @@
|
|||
</h6>
|
||||
</div>
|
||||
|
||||
<div id="collapseOne" class="collapse show"
|
||||
aria-labelledby="headingOne" data-parent="#accordionNav">
|
||||
<div id="collapseInferno" class="collapse show"
|
||||
aria-labelledby="headingInferno" data-parent="#accordionNav">
|
||||
<div class="card-body">
|
||||
<span class="navig-canto small text-muted nowrap"
|
||||
name="InfernoCanto 1" href="#" >I</span>
|
||||
|
@ -215,13 +214,13 @@
|
|||
</div>
|
||||
</div>
|
||||
<div class="card">
|
||||
<div class="card-header px-1" id="headingTwo">
|
||||
<div class="card-header px-1" id="headingPurgatorio">
|
||||
<h6 class="mb-0">
|
||||
<div class="row no-gutters justify-content-between">
|
||||
<div class="col-auto flex-fill align-self-center text-muted">
|
||||
<button class="btn btn-sm btn-link" id="cantica2"
|
||||
data-toggle="collapse" data-target="#collapseTwo"
|
||||
aria-expanded="true" aria-controls="collapseTwo"><span class="h6 font-weight-bold">Purgatorio</span></button>
|
||||
data-toggle="collapse" data-target="#collapsePurgatorio"
|
||||
aria-expanded="true" aria-controls="collapsePurgatorio"><span class="h6 font-weight-bold">Purgatorio</span></button>
|
||||
</div>
|
||||
<div id="cantica2-badge"
|
||||
class="col-auto align-self-center justify-content-end text-right">
|
||||
|
@ -229,8 +228,8 @@
|
|||
</div>
|
||||
</h6>
|
||||
</div>
|
||||
<div id="collapseTwo" class="collapse"
|
||||
aria-labelledby="headingTwo" data-parent="#accordionNav">
|
||||
<div id="collapsePurgatorio" class="collapse"
|
||||
aria-labelledby="headingPurgatorio" data-parent="#accordionNav">
|
||||
<div class="card-body">
|
||||
<span class="navig-canto small text-muted nowrap"
|
||||
name="PurgatorioCanto 1" href="#" >I</span>
|
||||
|
@ -302,13 +301,13 @@
|
|||
</div>
|
||||
</div>
|
||||
<div class="card">
|
||||
<div class="card-header px-1" id="headingThree">
|
||||
<div class="card-header px-1" id="headingParadiso">
|
||||
<h6 class="mb-0">
|
||||
<div class="row no-gutters justify-content-between">
|
||||
<div class="col-auto flex-fill align-self-center text-muted">
|
||||
<button class="btn btn-sm btn-link" id="cantica3"
|
||||
data-toggle="collapse" data-target="#collapseThree"
|
||||
aria-expanded="true" aria-controls="collapseThree"><span class="h6 font-weight-bold">Paradiso</span></button>
|
||||
data-toggle="collapse" data-target="#collapseParadiso"
|
||||
aria-expanded="true" aria-controls="collapseParadiso"><span class="h6 font-weight-bold">Paradiso</span></button>
|
||||
</div>
|
||||
<div id="cantica3-badge"
|
||||
class="col-auto align-self-center justify-content-end text-right">
|
||||
|
@ -316,8 +315,8 @@
|
|||
</div>
|
||||
</h6>
|
||||
</div>
|
||||
<div id="collapseThree" class="collapse"
|
||||
aria-labelledby="headingThree" data-parent="#accordionNav">
|
||||
<div id="collapseParadiso" class="collapse"
|
||||
aria-labelledby="headingParadiso" data-parent="#accordionNav">
|
||||
<div class="card-body">
|
||||
<span class="navig-canto small text-muted nowrap"
|
||||
name="ParadisoCanto 1" href="#" >I</span>
|
||||
|
|
|
@ -634,6 +634,7 @@ $(" ."+formaClass).hover(function(idx, element) {
|
|||
const callerid=$(this).attr('id');
|
||||
if (callerid!=null && callerid.startsWith(idCitazione)){
|
||||
const mypos=callerid.split('_')[2]
|
||||
$("#collapse"+parcid[0].replace("Canto", "")).collapse('show');
|
||||
document.getElementById(mypos).scrollIntoView();
|
||||
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue