diff --git a/BeWoPlanerMobil/Views/Shared/_Layout.cshtml b/BeWoPlanerMobil/Views/Shared/_Layout.cshtml
index 66fe80eff..286b2c545 100644
--- a/BeWoPlanerMobil/Views/Shared/_Layout.cshtml
+++ b/BeWoPlanerMobil/Views/Shared/_Layout.cshtml
@@ -109,6 +109,18 @@
$.get(url, { isOpen: isShown, identifier: id });
}
+ @if(Html.IsInDebugMode())
+ {
+
+ $(window).on("focusout", () => {
+
+ });
+ $(window).on("focusin", () => {
+
+ });
+
+ }
+
window.addEventListener("error", (event) => {
hideSpinner();
@@ -182,27 +194,27 @@
}
}
- const countdown = new Countdown(parseInt("@AbstractBaseController.TimeoutLimit", 10) * 60,
- (remainingSeconds) => {
- const remainingMilliseconds = remainingSeconds * 1000;
+ const countdown = new Countdown(parseInt("@AbstractBaseController.TimeoutLimit", 10) * 60,
+ (remainingSeconds) => {
+ const remainingMilliseconds = remainingSeconds * 1000;
- const minutes = Math.floor((remainingMilliseconds % (1000 * 60 * 60)) / (1000 * 60));
- const seconds = Math.floor((remainingMilliseconds % (1000 * 60)) / 1000);
+ const minutes = Math.floor((remainingMilliseconds % (1000 * 60 * 60)) / (1000 * 60));
+ const seconds = Math.floor((remainingMilliseconds % (1000 * 60)) / 1000);
- var m = minutes.toString().padStart(2, "0");
- var s = seconds.toString().padStart(2, "0");
+ var m = minutes.toString().padStart(2, "0");
+ var s = seconds.toString().padStart(2, "0");
- const timePart = minutes <= 5 ? ` class="text-danger"` : "";
- $("#countdown").html(`Abmeldung in ${m}:${s}`);
- },
- () => {
- $("#countdown").html("00:00");
- $("#logout-form").submit();
- }
- );
+ const timePart = minutes <= 5 ? ` class="text-danger"` : "";
+ $("#countdown").html(`Abmeldung in ${m}:${s}`);
+ },
+ () => {
+ $("#countdown").html("00:00");
+ $("#logout-form").submit();
+ }
+ );
- $(document).ready(function() {
- countdown?.start();
+ $(document).ready(function() {
+ countdown?.start();
$.each($("canvas"), function(index, canvasElement) {
updateCanvasSize($(canvasElement));
@@ -235,15 +247,15 @@
}
});
- function toggleRestoreButton() {
- const state = false;
+ function toggleRestoreButton() {
+ const state = false;
- if($(".bewo-restore-btn").length > 0) {
- $(".bewo-restore-btn").each(function(index, item) {
- $(this).prop("disabled", state);
- });
- }
- }
+ if($(".bewo-restore-btn").length > 0) {
+ $(".bewo-restore-btn").each(function(index, item) {
+ $(this).prop("disabled", state);
+ });
+ }
+ }
$(window).resize(function () {
$.each($("canvas"), function(index, canvasElement) {
@@ -337,7 +349,7 @@
function getMaxElementHeight(elementClassName) {
return Math.max.apply(Math, $(`.${elementClassName}`).map(function () { return $(this).height(); }).get());
- }
+ }