forked from gward35/generative-layout
-
Notifications
You must be signed in to change notification settings - Fork 0
/
browser-sync.html
46 lines (45 loc) · 1.01 KB
/
browser-sync.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
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<meta http-equiv="X-UA-Compatible" content="ie=edge" />
<title>Generative Testing</title>
<style>
body,
html {
padding: 0;
margin: 0;
overflow-x: hidden;
width: 100%;
height: 100%;
position: relative;
}
iframe {
width: 100%;
height: 100%;
display: block;
position: absolute;
}
</style>
</head>
<body>
<iframe
src="//localhost:8080/"
id="frame"
frameborder="0"
width="300"
height="300"
></iframe>
<script>
(function() {
function resize() {
document.getElementById("frame").width = window.innerWidth;
document.getElementById("frame").height = window.innerHeight;
}
resize();
window.addEventListener("resize", resize);
})();
</script>
</body>
</html>