corretti bug minimap e bug background

This commit is contained in:
Luca Trupiano 2023-03-10 14:48:16 +01:00
parent 32c0b4b9a6
commit 654ce9b32d
3 changed files with 12 additions and 3 deletions

View File

@ -427,7 +427,7 @@
<div id="colMinimap" class="d-table-cell bg-lida-vis minimap border-right border-bottom align-top">
<div id="displayminimap" class="col px-0 pb-0 m-0 w-100 scrollMon"></div>
<div class="filler"><img src="./images/fefeff.png"></div>
<div class="filler"><img id="bgImg" src="./images/fefeff.png"></div>
</div>
<div id="colRicerca" class="d-table-cell menuRicerca align-top">

View File

@ -39,7 +39,8 @@ function drawMinimap(name){
if (currentMinimap == '#vistaFrasi') {
correctionFactor = 0.967;
scrollCorrectionFactor = 1.02;
//scrollCorrectionFactor = 1.02;
scrollCorrectionFactor = 1;
} else {
correctionFactor = 1;
scrollCorrectionFactor = 1.003;
@ -106,6 +107,7 @@ function showMinimap() {
iFrameDoc.head.appendChild(cssLinkscroll);
let bgCanto = $(visCantoClass).css('background-color');
console.log(bgCanto);
$('iframe').contents().find('body').css('background-color', bgCanto + ' !important;');
var infoHeightToSet = $("body")[0].clientHeight*cssTableMainHeight - $(visCantoClass)[0].clientHeight-2-63-2

View File

@ -21,10 +21,13 @@ $(document).ready(function() {
$('.stileLink').on('click', function() {
var newStyle = $(this)[0].id;
if (newStyle != currStyle) {
var bgImgEl = document.createElement("IMG");
bgImgEl.id = "bgImg";
currStyle = newStyle;
switch (newStyle) {
case "style1":
$("body").fadeOut(700, function() {
bgImgEl.src = bgImgUrl1;
$("#style1-Boot").prop('disabled', false);
$("#style1-Custom").prop('disabled', false);
$("#style2-Boot").prop('disabled', true);
@ -34,6 +37,7 @@ $(document).ready(function() {
break;
case "style2":
$("body").fadeOut(700, function() {
bgImgEl.src = bgImgUrl2;
$("#style2-Boot").prop('disabled', false);
$("#style2-Custom").prop('disabled', false);
$("#style1-Boot").prop('disabled', true);
@ -43,6 +47,7 @@ $(document).ready(function() {
break;
default:
};
$('#bgImg').replaceWith(bgImgEl);
drawMinimap(currentMinimap);
}
});
@ -536,6 +541,8 @@ $(document).ready(function() {
const condLIplaceholderText2d = 'Trascina qui almeno 2 clausole o condizioni, oppure attiva le clausole inattive';
const condLIplaceholderPart1 = '<li id="placeholderSort';
const condLIplaceholderPart2 = '" class="mx-0 my-1 p-1 pl-3 list-group-item align-items-center border text-muted small bg-light ui-state-disabled ui-state-disabled-opacity-06">';
const bgImgUrl1 = "./images/fefeff.png";
const bgImgUrl2 = "./images/f8f9fa.png";
// Variabili e costanti funzionali
var tabID = 0;