-
Notifications
You must be signed in to change notification settings - Fork 5
/
Copy pathshell.html
67 lines (60 loc) · 1.46 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
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
<!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 {
margin: 20px;
width: 300px;
height: 200px;
position: relative;
border: solid 2px black;
}
#canvas {
margin: 0;
padding: 0;
display: block;
}
.handle {
position: absolute;
bottom: 0;
right: 0;
margin-bottom: 1px;
margin-right: 1px;
border-left: 20px solid transparent;
border-bottom: 20px solid rgba(102, 102, 102, 0.5);
width: 0;
height: 0;
cursor: nwse-resize;
z-index: 1;
}
#canvas:focus {
outline: none;
}
#canvas-button {
text-align: center;
padding-top: 1em;
}
</style>
</head>
<body>
<h4>Welcome to Resizable Container With Handle Example</h4>
<div id="canvas-container">
<div id="canvas-handle" class="handle"></div>
<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>Use the handle to resize the window</li>
<li>CTRL+Q to terminate</li>
<li>CTRL+F or click the button for fullscreen</li>
</ul>
<script>
var Module = {};
</script>
{{{ SCRIPT }}}
</body>
</html>