corretti bug minimap e bug background
This commit is contained in:
parent
32c0b4b9a6
commit
654ce9b32d
|
@ -427,7 +427,7 @@
|
||||||
|
|
||||||
<div id="colMinimap" class="d-table-cell bg-lida-vis minimap border-right border-bottom align-top">
|
<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 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>
|
||||||
|
|
||||||
<div id="colRicerca" class="d-table-cell menuRicerca align-top">
|
<div id="colRicerca" class="d-table-cell menuRicerca align-top">
|
||||||
|
|
|
@ -39,7 +39,8 @@ function drawMinimap(name){
|
||||||
|
|
||||||
if (currentMinimap == '#vistaFrasi') {
|
if (currentMinimap == '#vistaFrasi') {
|
||||||
correctionFactor = 0.967;
|
correctionFactor = 0.967;
|
||||||
scrollCorrectionFactor = 1.02;
|
//scrollCorrectionFactor = 1.02;
|
||||||
|
scrollCorrectionFactor = 1;
|
||||||
} else {
|
} else {
|
||||||
correctionFactor = 1;
|
correctionFactor = 1;
|
||||||
scrollCorrectionFactor = 1.003;
|
scrollCorrectionFactor = 1.003;
|
||||||
|
@ -106,6 +107,7 @@ function showMinimap() {
|
||||||
iFrameDoc.head.appendChild(cssLinkscroll);
|
iFrameDoc.head.appendChild(cssLinkscroll);
|
||||||
|
|
||||||
let bgCanto = $(visCantoClass).css('background-color');
|
let bgCanto = $(visCantoClass).css('background-color');
|
||||||
|
console.log(bgCanto);
|
||||||
$('iframe').contents().find('body').css('background-color', bgCanto + ' !important;');
|
$('iframe').contents().find('body').css('background-color', bgCanto + ' !important;');
|
||||||
|
|
||||||
var infoHeightToSet = $("body")[0].clientHeight*cssTableMainHeight - $(visCantoClass)[0].clientHeight-2-63-2
|
var infoHeightToSet = $("body")[0].clientHeight*cssTableMainHeight - $(visCantoClass)[0].clientHeight-2-63-2
|
||||||
|
|
|
@ -21,10 +21,13 @@ $(document).ready(function() {
|
||||||
$('.stileLink').on('click', function() {
|
$('.stileLink').on('click', function() {
|
||||||
var newStyle = $(this)[0].id;
|
var newStyle = $(this)[0].id;
|
||||||
if (newStyle != currStyle) {
|
if (newStyle != currStyle) {
|
||||||
|
var bgImgEl = document.createElement("IMG");
|
||||||
|
bgImgEl.id = "bgImg";
|
||||||
currStyle = newStyle;
|
currStyle = newStyle;
|
||||||
switch (newStyle) {
|
switch (newStyle) {
|
||||||
case "style1":
|
case "style1":
|
||||||
$("body").fadeOut(700, function() {
|
$("body").fadeOut(700, function() {
|
||||||
|
bgImgEl.src = bgImgUrl1;
|
||||||
$("#style1-Boot").prop('disabled', false);
|
$("#style1-Boot").prop('disabled', false);
|
||||||
$("#style1-Custom").prop('disabled', false);
|
$("#style1-Custom").prop('disabled', false);
|
||||||
$("#style2-Boot").prop('disabled', true);
|
$("#style2-Boot").prop('disabled', true);
|
||||||
|
@ -34,6 +37,7 @@ $(document).ready(function() {
|
||||||
break;
|
break;
|
||||||
case "style2":
|
case "style2":
|
||||||
$("body").fadeOut(700, function() {
|
$("body").fadeOut(700, function() {
|
||||||
|
bgImgEl.src = bgImgUrl2;
|
||||||
$("#style2-Boot").prop('disabled', false);
|
$("#style2-Boot").prop('disabled', false);
|
||||||
$("#style2-Custom").prop('disabled', false);
|
$("#style2-Custom").prop('disabled', false);
|
||||||
$("#style1-Boot").prop('disabled', true);
|
$("#style1-Boot").prop('disabled', true);
|
||||||
|
@ -43,6 +47,7 @@ $(document).ready(function() {
|
||||||
break;
|
break;
|
||||||
default:
|
default:
|
||||||
};
|
};
|
||||||
|
$('#bgImg').replaceWith(bgImgEl);
|
||||||
drawMinimap(currentMinimap);
|
drawMinimap(currentMinimap);
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
@ -536,7 +541,9 @@ $(document).ready(function() {
|
||||||
const condLIplaceholderText2d = 'Trascina qui almeno 2 clausole o condizioni, oppure attiva le clausole inattive';
|
const condLIplaceholderText2d = 'Trascina qui almeno 2 clausole o condizioni, oppure attiva le clausole inattive';
|
||||||
const condLIplaceholderPart1 = '<li id="placeholderSort';
|
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 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
|
// Variabili e costanti funzionali
|
||||||
var tabID = 0;
|
var tabID = 0;
|
||||||
var claListLen = 0;
|
var claListLen = 0;
|
||||||
|
|
Loading…
Reference in New Issue