This repository was archived by the owner on Mar 10, 2021. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathindex.html
More file actions
108 lines (93 loc) · 4.34 KB
/
index.html
File metadata and controls
108 lines (93 loc) · 4.34 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
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<meta name="description" content="Web Page for controlling a Lorentz Force Demonstrator" />
<meta name="keywords" content="HTML,CSS,JavaScript" />
<meta name="author" content="Zachary Greening" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<title>Remote Physics Lab</title>
<link id="stylesheet" rel="stylesheet" href="index.css" />
<script type="text/JavaScript" src="index.js"></script>
</head>
<body>
<header>
<div class="ConnectionInfo">
<small id="computersWaiting">0 Computers Waiting</small><br />
<small id="computersConnected">0 Computers Connected</small><br />
<small id="controllingId">null Is In Control Of The Device</small><br />
<small id="ownId">Your Computer ID is unknown</small><br />
</div>
<h1>Remote Physics Lab</h1>
<h6>Helping students learn Physics from anywhere!</h6>
</header>
<nav>
<p id="connectionFeedback" style="color:red;">Trying Connection</p>
<div class="ControlDuration">
<small>Control Duration</small><br />
<input id=controlDurationSlider type="range" min="1" max="20" step="1" value="0"
onchange="onControlDurationChanged(this)">
<small id="controlDuration">0:00</small>
</div>
<div class="Request">
<button id="requestButton" disabled=True onclick="onRequestAccessPressed(this)">Request
Access</button><br />
<small id="computersBefore"><br /></small>
</div>
</nav>
<img id="VideoDisplay"></img>
<div id="Controls" class="Controls">
<div>
<div class="SliderLabel">
<h4>Deflecting Voltage</h4>
<p id="defVoltageValue">50 Volts</p>
</div>
<input id="defVoltageSlider" type="range" min="50" max="250" step="1" value="0" class="slider"
onchange="onDefVoltageSliderChanged(this)"></input>
</div>
<div>
<div class="SliderLabel">
<h4>Magnetizing Current</h4>
<p id="currentValue">0 Amperes</p>
</div>
<input id="currentSlider" type="range" min="0" value="0" max="3" step="0.05" class="slider"
onchange="onCurrentSliderChanged(this)"></input>
</div>
<div>
<div class="SliderLabel">
<h4>Accelerating Voltage</h4>
<p id="accVoltageValue">0 Volts</p>
</div>
<input id="accVoltageSlider" type="range" min="0" max="250" step="1" value="0" class="slider"
onchange="onAccVoltageSliderChanged(this)"></input>
</div>
<div>
<h4>Deflecting Voltage Polarity</h4>
<!--use integer values are for database storage-->
<input id="defVoltageOff" type="radio" name="defVoltagePolarity" onclick="onDefVoltagePolarityChanged(this)"
value="0" />
<label for="defVoltageOff">Off</label>
<input id="defVoltagePositive" type="radio" name="defVoltagePolarity"
onclick="onDefVoltagePolarityChanged(this)" value="1" />
<label for="defVoltagePositive">Positive</label>
<input id="defVoltageNegative" type="radio" name="defVoltagePolarity"
onclick="onDefVoltagePolarityChanged(this)" value="2" />
<label for="defVoltageNegative">Negative</label>
</div>
<div>
<h4>Magnetizing Arc</h4>
<!--use integer values are for database storage-->
<input id="magneticArcOff" type="radio" name="magneticArc" onclick="onMagneticArcChanged(this)" value="0" />
<label for="magneticArcOff">Off</label>
<input id="magneticArcClockwise" type="radio" name="magneticArc" onclick="onMagneticArcChanged(this)"
value="1" />
<label for="magneticArcClockwise">Clockwise</label>
<input id="magneticArcCounterClockwise" type="radio" name="magneticArc" onclick="onMagneticArcChanged(this)"
value="2" />
<label for="magneticArcCounterClockwise">Counter Clockwise</label>
</div>
</br>
</div>
</body>
</html>