-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathindex.html
More file actions
20 lines (20 loc) · 746 Bytes
/
index.html
File metadata and controls
20 lines (20 loc) · 746 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
<html>
<button onclick="embed(`${window.location.origin}/app.html`);console.log(window.location)">Click ME</button>
</html>
<script>
function embed(source) {
//document.getElementById('input').value = "https://";
const win = window.open();
win.document.body.style.margin = "0";
win.document.body.style.height = "100vh";
const iframe = win.document.createElement("iframe");
iframe.style.border = "none";
iframe.style.width = "100%";
iframe.style.height = "100%";
iframe.style.margin = "0";
iframe.referrerpolicy = "no-referrer";
iframe.allow = "fullscreen";
iframe.src = source;
win.document.body.appendChild(iframe);
}
</script>