html modificato per gestione minimap

This commit is contained in:
cesare 2022-11-18 17:26:12 +01:00
parent 4633e31863
commit 1920c1f594
2 changed files with 31 additions and 20 deletions

View File

@ -627,32 +627,43 @@
</div>
<div class="col-5 pa0 pl6 " id="browseArea">
<!-- <div class="bg-washed-blue"> -->
<!-- <div class="availability f3 b labelCantica" style="display: none;">
<!-- <div class="col-5 pa0 pl6 " id="browseArea">
<div class="bg-washed-blue">
<div class="availability f3 b labelCantica" style="display: none;">
<span>Inferno</span>
</div> -->
<!--<div
</div>
<div
class="measure f6 lh-copy text-secondary font-weight-lighter labelCanto">
<span>Canto I</span>
</div> -->
<!-- <form id='filterform' onsubmit="return false;"> -->
<!-- <textarea id="displaycanto" name="PagineCanti" readonly
</div>
<form id='filterform' onsubmit="return false;">
<textarea id="displaycanto" name="PagineCanti" readonly
style="resize: none" class="blog-main flex mb0 pb0 bg-washed-blue bn"
rows="20" cols="35"></textarea> -->
rows="20" cols="35"></textarea>
<div class=" blog-main overflow-auto border text-muted" target='area' id="displaycanto" style='max-height: 600px'>
<!-- <div id="displaycanto" name="PagineCanti" class="blog-main flex mb0 pb0 bg-washed-blue bn"></div>-->
<div id="displaycanto" name="PagineCanti" class="blog-main flex mb0 pb0 bg-washed-blue bn"></div>
<!-- </form> -->
</form>
</div>
<!-- </div> -->
</div>
<div class="col-2 pa0 pl6" id="shmm">
<div id="displayminimap"></div>
<div class="col-1 px-0" id="displayminimap"></div>
</div>
</div> -->
</div>
<div class="col-6 px-0">
<div class="blog-main p-3 text-muted overflow-auto" target="area" id="displaycanto" style="max-height: 500px"></div>
</div>
<div class="col-1 px-0" id="displayminimap"></div>
</div>
<hr>

View File

@ -369,8 +369,8 @@ jQuery(document).delegate('#cleanresult', 'click', function(e) {
viewer.style.width='40%'
if(isnick!=null){
minimap.style.width = '70%';
viewer.style.width='20%'
//minimap.style.width = '90%';
//viewer.style.width='20%'
}
@ -545,7 +545,7 @@ jQuery(document).delegate('#cleanresult', 'click', function(e) {
var spanoccorrenza=$('<span />')
var pos=parseInt(element.pos)
spanoccorrenza.attr('id', element.cantica+"_"+ element.canto.replace(" ", "_")+"_"+element.numverso+"_"+pos)
if (listarisultati.includes(spanoccorrenza.attr('id')))
if (listarisultati.length>0 && listarisultati.includes(spanoccorrenza.attr('id')))
spanoccorrenza.attr('class', "f6 b dark-blue ")
spanoccorrenza.append(managePunctuation(element.form))
elementoverso=$('#'+element.cantica+"_"+ element.canto.replace(" ", "_")+"_"+element.numverso)