168 lines
6.5 KiB
Plaintext
168 lines
6.5 KiB
Plaintext
@using BeWoPlanerMobil.Util
|
|
<!DOCTYPE html>
|
|
<html>
|
|
<head>
|
|
<meta content="text/html;charset=utf-8" http-equiv="Content-Type">
|
|
<meta content="utf-8" http-equiv="encoding">
|
|
<meta name="viewport" content="width=device-width, initial-scale=1, minimum-scale=1, maximum-scale=1, user-scalable=0" id="viewport" />
|
|
|
|
<title>@ViewBag.Title</title>
|
|
|
|
<script defer src="~/Content/fontawesome/all.min.js"></script>
|
|
|
|
<script type="text/javascript" src="@Scripts.Url("~/Scripts/jquery/jquery-3.7.1.min.js")"></script>
|
|
|
|
<script type="text/javascript" src="@Scripts.Url("~/Scripts/bootstrap/bootstrap.bundle.min.js")"></script>
|
|
|
|
<link rel="stylesheet" href="@Url.Content("~/Content/style.css")" />
|
|
<link rel="stylesheet" href="@Url.Content("~/Content/tempusdominus-bootstrap-4.min.css")" />
|
|
|
|
<script src="@Scripts.Url("~/Scripts/moment/moment.min.js")" type="text/javascript"></script>
|
|
<script src="@Scripts.Url("~/Scripts/moment/locale/de.js")" type="text/javascript"></script>
|
|
<script src="@Scripts.Url("~/Scripts/tempusdominus-boostrap-4.min.js")" type="text/javascript"></script>
|
|
<script src="@Scripts.Url("~/Scripts/ownSoft-Scripts/mobileUtils.js")" type="text/javascript"></script>
|
|
|
|
<script src="@Scripts.Url("~/Scripts/ownSoft-Scripts/signature.js")" type="text/javascript"></script>
|
|
|
|
<link rel="stylesheet" href="@Url.Content("~/Scripts/bootstrap/bootstrap4-modal-fullscreen.min.css")" />
|
|
|
|
<script src="@Scripts.Url("~/Scripts/signature-pad.min.js")" type="text/javascript"></script>
|
|
<script src="@Scripts.Url("~/Scripts/ownSoft-Scripts/utils/trimCanvas.js")" type="text/javascript"></script>
|
|
<script src="@Scripts.Url("~/Scripts/ownSoft-Scripts/utils/js-helper.js")" type="text/javascript"></script>
|
|
<script src="@Scripts.Url("~/Scripts/ownSoft-Scripts/utils/logging.js")" type="text/javascript"></script>
|
|
|
|
<script type="text/javascript">
|
|
window.addEventListener("error", (event) => {
|
|
hideSpinner();
|
|
|
|
var textToShow = `Message: ${event.message}\r\nFile name: ${event.filename}\r\nLine: ${event.lineno}\r\nColumn: ${event.colno}\r\nStack: ${event.error.stack}`;
|
|
|
|
if(event.message === "Uncaught TypeError: this._contentReadyAction is not a function") {
|
|
logInfo("contentReadyAction-Fehler ist aufgetregen. Kann ignoriert werden.");
|
|
return;
|
|
}
|
|
|
|
configureErrorPopup(textToShow);
|
|
});
|
|
|
|
function copyErrorToClipboard() {
|
|
var element = document.querySelector("#fehlerdetail-textarea");
|
|
element.select();
|
|
element.setSelectionRange(0, 99999);
|
|
|
|
document.execCommand("copy");
|
|
}
|
|
|
|
function showErrorPopup(error, htmlMessage) {
|
|
hideSpinner();
|
|
|
|
var textToShow = "name: " + error.name + ";\r\nmessage: " + error.message + ";\r\nstack: " + error.stack;
|
|
|
|
configureErrorPopup(textToShow, htmlMessage);
|
|
}
|
|
|
|
function showErrorMessagePopup(text, htmlMessage) {
|
|
hideSpinner();
|
|
configureErrorPopup(text, htmlMessage);
|
|
}
|
|
|
|
function configureErrorPopup(textToShow, htmlMessage) {
|
|
try {
|
|
$("#fehlerdetail-textarea").text(textToShow);
|
|
$("#error-message-popup").modal("show");
|
|
|
|
if (htmlMessage !== undefined && htmlMessage !== null && (typeof htmlMessage === 'string' || htmlMessage instanceof String) && htmlMessage.length > 0) {
|
|
$("#html-error-container").html(htmlMessage);
|
|
} else {
|
|
$("#html-error-container").empty();
|
|
}
|
|
} catch (error) {
|
|
console.logError(error);
|
|
}
|
|
}
|
|
|
|
|
|
$(document).ready(function() {
|
|
try {
|
|
calcPrependWidth();
|
|
} catch (error) {
|
|
showErrorPopup(error);
|
|
}
|
|
});
|
|
|
|
$(window).resize(function() {
|
|
calcPrependWidth();
|
|
});
|
|
|
|
|
|
var initialVonWidth = 0;
|
|
function calcPrependWidth() {
|
|
try {
|
|
// Prepend-Elemente
|
|
if(initialVonWidth === 0 && $.isNumeric(getMaxWidth("sm-prepend-input-group-text"))) {
|
|
initialVonWidth = getMaxWidth("sm-prepend-input-group-text");
|
|
}
|
|
|
|
var smallPrependInputGroupTextWidth = getMaxWidth("sm-prepend-input-group-text");
|
|
var documentWidth = $(document).width();
|
|
|
|
$(".prepend-input-group-text").width(getMaxWidth("prepend-input-group-text"));
|
|
|
|
if(documentWidth < 768 && $.isNumeric(smallPrependInputGroupTextWidth)) {
|
|
$(".sm-prepend-input-group-text").width(getMaxWidth("prepend-input-group-text"));
|
|
} else if($.isNumeric(smallPrependInputGroupTextWidth)) {
|
|
$(".sm-prepend-input-group-text").width(initialVonWidth);
|
|
}
|
|
} catch(error) {
|
|
showErrorPopup(error);
|
|
}
|
|
}
|
|
|
|
function getMaxWidth(elementClassName) {
|
|
try {
|
|
return Math.max.apply(Math, $('.' + elementClassName).map(function () { return $(this).width(); }).get());
|
|
} catch (error) {
|
|
showErrorPopup(error);
|
|
}
|
|
}
|
|
|
|
function getMaxElementHeight(elementClassName) {
|
|
try {
|
|
return Math.max.apply(Math, $('.' + elementClassName).map(function () { return $(this).height(); }).get());
|
|
} catch (error) {
|
|
showErrorPopup(error);
|
|
}
|
|
}
|
|
</script>
|
|
</head>
|
|
<body>
|
|
@if(!(TempData[TempDataConstants.ErrorMessageKey] is null))
|
|
{
|
|
<div class="container-fluid mt-3">
|
|
<div class="row d-flex justify-content-center">
|
|
<div class="col-md-3 col-lg-4">
|
|
<div class="alert alert-danger" role="alert">
|
|
@TempData[TempDataConstants.ErrorMessageKey]
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
}
|
|
|
|
<div class="modal" role="dialog" tabindex="-1" id="mySpinner">
|
|
<div class="modal-dialog modal-dialog-centered text-center" role="document">
|
|
<div class="modal-content bg-transparent border-0">
|
|
<div class="d-flex justify-content-center">
|
|
<div class="spinner-border text-primary" role="status" style="width: 5rem; height: 5rem;">
|
|
<span class="sr-only"></span>
|
|
</div>
|
|
</div>
|
|
<p id="loading-info-p" class="text-white mt-4">Lade ...</p>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
|
|
@RenderBody()
|
|
</body>
|
|
</html>
|