-
Notifications
You must be signed in to change notification settings - Fork 5
/
Copy pathshell.html
51 lines (45 loc) · 1.29 KB
/
shell.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>
<html lang="EN-us">
<head>
<meta charset="utf-8">
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<title>emscripten glfw</title>
<style>
#canvas-container {
width: 75vw;
height: 50vh;
margin: auto;
padding: 5px;
border: 1px solid black;
}
#canvas {
margin: 0;
padding: 0;
display: block; /* This is VERY important */
}
#canvas:focus {
outline: none;
}
#canvas-button {
text-align: center;
padding-top: 1em;
}
</style>
</head>
<body>
<h4>Welcome to Offscreen Canvas Example</h4>
<div id="canvas-container"><canvas class="emscripten" id="canvas" oncontextmenu="event.preventDefault()"></canvas></div>
<div id="canvas-button"><input id="fullscreen" type="button" name="fs" value="Fullscreen" onclick="Module.glfwRequestFullscreen('#canvas', false, true);"></div>
<h4>Help</h4>
<ul>
<li>Resize the canvas by resizing the browser window</li>
<li>CTRL+Q to terminate</li>
<li>CTRL+F or click the button for fullscreen</li>
<li>Note that this example is using WebGL and is only changing the background color (no other rendering is happening)</li>
</ul>
<script>
var Module = {};
</script>
{{{ SCRIPT }}}
</body>
</html>