-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathProjA.html
More file actions
executable file
·65 lines (62 loc) · 2.48 KB
/
ProjA.html
File metadata and controls
executable file
·65 lines (62 loc) · 2.48 KB
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
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<meta http-equiv="X-UA-Compatible" content="ie=edge">
<title>My Practice Code</title>
<script src="./projA.js"></script>
<script src="./lib/cuon-matrix-mod.js"></script>
<script src="./lib/cuon-utils.js"></script>
<script src="./lib/webgl-debug.js"></script>
<script src="./lib/webgl-utils.js"></script>
<style type="text/css">
canvas {
border: 5px dotted blue;
float: left;
}
.robot{
float: left;
margin: 30px;
}
.heli{
float: left;
margin: 30px;
}
</style>
</head>
<body onload="main()">
<canvas id="gl_canvas" width="600" height="600">
Please use the browser supporting "canvas";
</canvas>
<div class="robot">
<h2>Control Robot</h2>
<p><font color = Tomato>Click and move</font> your mouse to rotate the robot. Use <font color = Tomato>'WSAD'</font> keys to control the robot walk!</p>
<i>(Caution! going too far forward/back (on Z axis) may cause the robot disappear.)</i>
<p>Press <button type="button" onclick="runStop()">stop</button> or key <font color = Tomato>'P'</font> to Run/Stop the robot.</p>
<p>
What would you like me to <font color = Tomato>hold</font>?
<select id="selectThings" onchange="selectEvent()">
<option value="torus">Torus</option>
<option value="arrow">Umbrella</option>
</select>
</p>
<p>
<button type="button" onclick="bowEvent()">Start/Stop Bowing</button>
<button type="button" onclick="walkEvent()">Start/Stop Walking</button>
</p>
<p>
Click to change my walking <font color = Tomato>SPEED</font>!
<button type="button" onclick="speedUp()">Walk Faster</button>
<button type="button" onclick="speedDown()">Walk Slower</button>
</p>
</div>
<div class="heli">
<h2>Control Helicopter</h2>
<p>Try to <font color = Tomato>CLICK</font> on the Helicopter area to stop/start it!</p>
Scroll me to change the Helicopter <font color = Tomato>SPEED</font>!
slow<input type="range" min="20" max="100" value="60" id="flySpeed">fast
<p><button type="button" id="myBtn">Helicopter Shape Change</button> </p>
</div>
</body>
</html>