-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex.html
31 lines (31 loc) · 1.19 KB
/
index.html
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
<!DOCTYPE html>
<html lang="en">
<head>
<meta content="text/html;charset=utf-8" http-equiv="Content-Type">
<style type="text/css">
html, body {
height: 100%;
width: 100%;
padding: 0;
margin: 0;
}
iframe {
padding: 0;
margin: 30px;
width: calc(100% - 64px);
height: calc(100% - 150px);
}
</style>
<script>
function acknowledge() {
console.log("FIRING ACKNOWLEDGE");
document.querySelector("iframe").contentWindow.postMessage("Ack", "*");
}
</script>
</head>
<body onload="acknowledge()">
<h1 style="background: green;color: white;margin: 0;">Outer application</h1>
<div>Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum.</div>
<iframe src="https://cxsuite-qa.foresee.com/client/dashboards/9901/?embedAs=dashboard"/>
</body>
<html>