-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathiframe.html
More file actions
37 lines (37 loc) · 1.2 KB
/
iframe.html
File metadata and controls
37 lines (37 loc) · 1.2 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
<!doctype html>
<html>
<head>
<meta charset="utf-8" />
<meta http-equiv="X-UA-Compatible" content="IE=edge" />
<title></title>
<meta name="description" content="" />
<meta name="viewport" content="width=device-width, initial-scale=1" />
<link rel="stylesheet" type="text/css" href="./output.css" />
<script type="module" src="./bundle.js"></script>
<style>
iframe {
width: 100vw;
height: 100vh;
}
</style>
</head>
<body>
<iframe
id="iframe"
src="/index.html?realtime=false&baselayer=travic_v2&type=notification¬ificationurl=https%3A%2F%2Fmoco.dev.geops.io%2Fapi%2Fv1/¢er=955768,5922646"
frameborder="0"
></iframe>
</body>
<script type="module">
// import testNotification from "./testNotification.json";
// const iframe = document.getElementById("iframe");
// iframe.addEventListener("load", function () {
// setTimeout(() => {
// this.contentWindow.postMessage({ notification: testNotification }, "*");
// }, 500);
// });
window.addEventListener("message", (event) => {
console.log(`parent received ${event.data.type} message:`, event.data.data);
});
</script>
</html>