-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathindex.html
33 lines (31 loc) · 881 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
<head>
<meta charset="utf-8">
<title>miniquad test</title>
<style>
html,
body,
canvas {
margin: 0px;
padding: 0px;
width: 100%;
height: 100%;
overflow: hidden;
position: absolute;
background: black;
z-index: 0;
}
</style>
<script src="https://ajax.googleapis.com/ajax/libs/jquery/3.4.1/jquery.min.js"></script>
</head>
<body>
<canvas id="glcanvas" tabindex='1'></canvas>
<script src="https://ponaskovas.github.io/miniquad-samples/gl.js"></script>
<script>load("miniquad-test.wasm");</script>
<script>
$(document).ready(function(){
$('body').on('contextmenu', '#glcanvas', function(e){ return false; });
});
document.getElementById("glcanvas").focus();
</script>
</body>
</html>