From 14e2b7edf2b19e4893c4dfa71453533077fa3ad3 Mon Sep 17 00:00:00 2001 From: Michael Scherle Date: Wed, 7 Dec 2016 15:32:47 +0100 Subject: frontend: mode 4 fixes --- modules-available/locationinfo/frontend/doorsign.html | 13 +++++++++++++ 1 file changed, 13 insertions(+) (limited to 'modules-available/locationinfo/frontend') diff --git a/modules-available/locationinfo/frontend/doorsign.html b/modules-available/locationinfo/frontend/doorsign.html index 6849142a..14e7ec1d 100755 --- a/modules-available/locationinfo/frontend/doorsign.html +++ b/modules-available/locationinfo/frontend/doorsign.html @@ -509,6 +509,7 @@ optional: setInterval(function () { Update(); }, 1000); + MoveProgressBar(switchTime); setInterval(function () { switchLayout(); MoveProgressBar(switchTime); @@ -981,6 +982,7 @@ optional: div.style.width = width; document.body.appendChild(div); + } function preInitRoom() { $.getJSON("../../../api.php?do=locationinfo&action=roominfo&id=" + roomId + "&coords=1", function (result) { @@ -1174,7 +1176,9 @@ optional: /* /========================================== Misc ============================================= */ + var resized = false; $(window).resize(function () { + resized = true; setTimeout(function () { if (mode != null) { if (mode != 3) { @@ -1219,9 +1223,18 @@ optional: if (car.style.display == "none") { room.style.display = "none"; car.style.display = "block"; + if(resized){ + scaleCalendar(); + resized = false; + } } else { car.style.display = "none"; room.style.display = "block"; + if(resized){ + generateOffsetAndScale(); + scaleRoom(); + resized = false; + } } } function generateProgressBar() { -- cgit v1.2.3-55-g7522