-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.html
51 lines (45 loc) · 830 Bytes
/
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
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
<!doctype html>
<meta charset="utf-8">
<title>Via Morpha</title>
<script src="third-party/phaser.min.js"></script>
<style>
body {
background-color:#000;
margin: 0;
}
iframe {
height:720px;
width:1280px;
border:0px;
margin:auto;
position:relative;
display:block;
}
div {
position:fixed !important;
position:absolute;
top:0;
right:0;
bottom:0;
left:0;
}
canvas{
top: 0px;
position: absolute;
right: 0px;
}
</style>
<body>
<iframe src="menu.html" id="game"></iframe>
<script src="src/bgmusic.js"></script>
<script>
function shift()
{
var heights = window.innerHeight;
document.getElementById("game").style.top = (heights-720)/2 + "px";
}
shift();
window.onresize = function() {
shift();
};
</script>