-
Notifications
You must be signed in to change notification settings - Fork 0
/
robots.html
90 lines (81 loc) · 2.89 KB
/
robots.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
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
<!DOCTYPE html>
<html lang="en">
<head>
<title>three.js canvas - camera - orthographic</title>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, user-scalable=no, minimum-scale=1.0, maximum-scale=1.0">
<link rel="stylesheet" href="http://code.jquery.com/ui/1.10.3/themes/smoothness/jquery-ui.css" />
<style>
body {
font-family: Monospace;
background-color: #f0f0f0;
margin: 0px;
overflow: hidden;
}
</style>
</head>
<body>
<script src="https://rawgit.luolix.top/mrdoob/three.js/master/build/three.js"></script>
<script src="http://code.jquery.com/jquery-2.0.2.min.js"></script>
<script src="http://code.jquery.com/ui/1.10.3/jquery-ui.js"></script>
<script src="stats.min.js"></script>
<script src="Math.js"></script>
<script src="Main.js"></script>
<script src="DynamicObjectBase.js"></script>
<script src="Misc.js"></script>
<script src="Physics.js"></script>
<script src="Time.js"></script>
<script src="Robot.js"></script>
<script src="Block.js"></script>
<script src="World.js"></script>
<script src="Floor.js"></script>
<script src="testLevels.js"></script>
<style>
#draggable, #draggable2, #draggable3 { width: 100px; height: 100px; padding: 0.5em; float: left; margin: 0 10px 10px 0; }
</style>
<script>
$(function() {
$( "#draggable" ).draggable({ grid: [ 50, 20 ] });
//$( "#draggable2" ).draggable({ scroll: true, scrollSensitivity: 100 });
//$( "#draggable3" ).draggable({ scroll: true, scrollSpeed: 100 });
});
</script>
<!--
<div id="draggable" class="ui-widget-content">
<p>Scroll set to true, default settings</p>
</div>
-->
<div id="container"></div>
<div style = "position:absolute; top:50px; width:200; textAlign:left">
Time Mult: <span id="timeMult">1x</span><br />
Needle: <span id="needle">1x</span><br />
<span id="console"></span>
</div>
<div style="position:absolute; bottom:20px;">
<h4>Controls</h4>
Time Slider<br />
<input id="timeScaler" type="range" min="0" max="1000" style="width:500px" onmouseup="resetSlider(this);"/> Pause<input type="checkbox" id="pause" name="pause"><br />
Zoom<br />
<input id="zoom" type="range" min="12" max="25" style="width:500px" onchange="onZoom(this);" />
</div>
<div id="programs" style="position:absolute; bottom:5px; right:5px">
<ul>
<li><a href="#robo-1">Robot 1</a></li>
<li><a href="#robo-2">Robot 2</a></li>
<li><a href="#robo-3">Robot 3</a></li>
</ul>
<div id="robo-1">
<p>Robot 1 Program</p>
</div>
<div id="robo-2">
<p>Robot 2 Program</p>
</div>
<div id="robo-3">
<p>Robot 3 Program</p>
</div>
</div>
<script>
$(document).ready(main());
</script>
</body>
</html>