-
Notifications
You must be signed in to change notification settings - Fork 22
Expand file tree
/
Copy path_ShellLayout.cshtml
More file actions
38 lines (34 loc) · 1.25 KB
/
Copy path_ShellLayout.cshtml
File metadata and controls
38 lines (34 loc) · 1.25 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
@using EPiServer.Framework.Web.Resources
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta content='width=device-width, initial-scale=1, maximum-scale=1, user-scalable=no' name='viewport'>
@ClientResources.RenderResources("ShellCore")
@ClientResources.RenderResources("ShellCoreLightTheme")
<script>
function resizeIframe(obj) {
obj.style.height = 0;
const innerDoc = obj.contentWindow.document;
const newHeight = Math.max(
Math.max(innerDoc.body.scrollHeight, innerDoc.documentElement.scrollHeight),
Math.max(document.body.clientHeight, document.documentElement.clientHeight)
)
obj.style.height = newHeight + 'px';
}
window.addEventListener('DOMContentLoaded', (event) => {
const containerIframe = document.getElementById('geta-container-iframe');
window.addEventListener("resize", () => resizeIframe(containerIframe));
});
</script>
<title>NotFound handler</title>
</head>
<body>
@Html.AntiForgeryToken()
<platform-navigation />
<div>
@RenderBody()
</div>
</body>
</html>