-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathhan.html
More file actions
167 lines (79 loc) · 4.11 KB
/
han.html
File metadata and controls
167 lines (79 loc) · 4.11 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
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
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
<!doctype html>
<html>
<head>
<!--Page Info-->
<title>VC: Plane Cartesian</title>
<!--css link-->
<link rel="stylesheet" href="https://manglekuo.com/i-v/styles.css?v=2">
<!--Required JS resources--> <!--NB: better to have resources before the main body but still works even if they are not-->
<script src="https://cdn.plot.ly/plotly-latest.min.js"></script>
<script src="https://code.jquery.com/jquery-3.2.1.min.js"></script>
<script src="http://www.numericjs.com/lib/numeric-1.2.6.min.js"></script>
<script src="https://cdnjs.cloudflare.com/ajax/libs/mathjs/3.15.0/math.min.js"></script>
<meta http-equiv="Content-Type" content="text/html;charset=UTF-8">
</head>
<body>
<div class="container">
<div class="row">
<!-- Graph -->
<div class="six columns">
<h1>2D Cartesian:</h1>
<div id='graph' style="width:450px; height:450px;"></div>
</div>
<!--Bottons/Sliders-->
<div class="six columns">
<!--Main Options/Tabs-->
<ul class="tab-nav">
<li><a class="button active" href="#basis">Basis Vectors</a></li><!--Default: set using 'active'-->
<li><a class="button" href="#area">Area Element</a></li>
<li><a class="button" href="#combined">Combined Element</a></li>
</ul>
<!--Main body contents-->
<div class="tab-content">
<!--Shared Area-->
<!--BEGIN Slider-->
<!--These Sliders are shared among all tabs-->
<h5 style="border-left: solid 5px rgb(219,209,0); padding-left: 8px;">x-coordinate:</h5><!--Just Text-->
<!--Slider Display--> <!--Linked with the slider below-->
<!--Linked with a slider and shows the live values of its corresponding slider-->
<label class="sliderTitle">x: <!--rho-->
<span id="xControllerDisplay" data-unit="">0</span> <!--default: 0-->
</label>
<!--Slider-->
<!--NB: Be careful with classes and types-->
<label class="slider">
<input id="xController" class="inputs" type="range" value="0" min="-4" max="4" step="0.1"/>
<span class="sliderMin">-4</span><span class="sliderMax">4</span></label>
<!--END Slider-->
<!--BEGIN Slider-->
<h5 style="border-left: solid 5px rgb(182,109,255); padding-left: 8px;">y-coordinate:</h5>
<label class="sliderTitle">y:
<span id="yControllerDisplay" data-unit="">0</span>
</label>
<label class="slider">
<input id="yController" class="inputs" type="range" value="0" min="-4" max="4" step="0.1"/>
<span class="sliderMin">-4</span><span class="sliderMax">4</span>
</label>
<!--END Slider-->
<!--Unique Areas-->
<!--BEGIN Basis Vector Area-->
<div class="tab-pane active" id="basis">
</div> <!--NB: Also need 'active' here-->
<!--END Basis-->
<!--BEGIN Area Element Area-->
<div class="tab-pane" id="area">
</div>
<!--END Area-->
<!--BEGIN Combined Element Area-->
<div class="tab-pane" id="combined">
</div>
<!--END Combined-->
</div>
</div>
</div>
</div>
<!--THE BRAINS-->
<script src=script/hanobjects.js></script>
<script src=script/han.js></script>
</body>
</html>