Documents: Update documents
This commit is contained in:
@ -1,7 +1,6 @@
|
||||
@using RazorLight
|
||||
@inherits TemplatePage<Elwig.Documents.Document>
|
||||
@model Elwig.Documents.Document
|
||||
|
||||
<!DOCTYPE html>
|
||||
<html lang="de-AT">
|
||||
<head>
|
||||
@ -13,9 +12,15 @@
|
||||
window.addEventListener("beforeprint", async () => { await window.PagedPolyfill.preview(); });
|
||||
window.addEventListener("afterprint", () => { location.reload(); });
|
||||
}
|
||||
|
||||
const heightA4 = 297, widhtA4 = 210, heightFooter = 35, heightHeader = 25;
|
||||
const heightMain = heightA4 - heightFooter - heightHeader;
|
||||
function px2mm(px1, px2) {
|
||||
return (px2 - px1 + 1) * 2.54 / 96 * window.devicePixelRatio * 10;
|
||||
}
|
||||
</script>
|
||||
<script src="@Raw(Model.DataPath)\resources\paged.polyfill.js"></script>
|
||||
<link rel="stylesheet" href="@Raw(Model.DataPath)\resources\style.css" />
|
||||
<script src="file:///@Raw(Model.DataPath)\resources\paged.polyfill.js"></script>
|
||||
<link rel="stylesheet" href="file:///@Raw(Model.DataPath)\resources\style.css"/>
|
||||
</head>
|
||||
<body>
|
||||
<div class="m1"></div>
|
||||
|
Reference in New Issue
Block a user