-
Notifications
You must be signed in to change notification settings - Fork 9
/
index.html
40 lines (40 loc) · 1.23 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
32
33
34
35
36
37
38
39
40
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<title>heaps-aseprite</title>
<meta name="viewport" content="width=device-width, initial-scale=1.0, minimum-scale=1.0, maximum-scale=1.0, user-scalable=no, minimal-ui" />
<meta name="format-detection" content="telephone=no" />
<meta name="apple-mobile-web-app-capable" content="yes" />
<meta name="mobile-web-app-capable" content="yes" />
<style>
body,html {
font-family: -apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,Oxygen-Sans,Ubuntu,Cantarell,"Helvetica Neue",sans-serif;
margin:0;
padding:0;
width:100%;
height:100%;
display: flex;
flex-direction: column;
justify-content: center;
align-items: center;
}
canvas#webgl {
height:auto;
}
</style>
</head>
<body>
<canvas id="webgl"></canvas>
</body>
<script src="bin/sample.js"></script>
<script>
function resize() {
var canvas = document.getElementById('webgl')
canvas.style.width = '80%';
}
// Resize the canvas on window resize
window.addEventListener('resize', resize(), false);
resize();
</script>
</html>