From d7aeddbc58d1bc169ca648324a50e4d9bb79e023 Mon Sep 17 00:00:00 2001 From: Luca Trupiano Date: Thu, 30 Jan 2025 18:22:10 +0100 Subject: [PATCH] corretto bug onload --- js/script_5.0.mod.js | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/js/script_5.0.mod.js b/js/script_5.0.mod.js index a272bac..65e2f2e 100644 --- a/js/script_5.0.mod.js +++ b/js/script_5.0.mod.js @@ -16,7 +16,7 @@ var numeroPagine = 0; var latestOffset = 0; const cssCantoHeight = 0.65; -const cssTableMainHeight = 0.95; //.tableMain {height: 95%;} +export const cssTableMainHeight = 0.95; //.tableMain {height: 95%;} const bgImgUrl1 = "./images/fefeff.png"; const bgImgUrl2 = "./images/f8f9fa.png"; const textAbout = '
' @@ -1705,6 +1705,12 @@ $(document).ready(function() { Cookies.set('LiDa_style', newStyle); }; }; + var cantoHeightToSet = $("body")[0].clientHeight*cssCantoHeight; + var maxCantoHeightToSet = $("body")[0].clientHeight*cssTableMainHeight-110; // 63 padding top + 47 margine bottom + $(visCantoClass).css("max-height", maxCantoHeightToSet); + $(visCantoClass).css("height", cantoHeightToSet); + $(displayCantoId).css("max-height", maxCantoHeightToSet); + $(displayCantoId).css("height", cantoHeightToSet); });