-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathindex.html
97 lines (97 loc) · 2.87 KB
/
index.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
91
92
93
94
95
96
97
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8" />
<meta http-equiv="X-UA-Compatible" content="IE=edge" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<title>PRISM</title>
<link rel="stylesheet" href="./prism.css" />
</head>
<body onload="world_onStart(); " style="background-color: white">
<div class="world">
<div class="info">
<div class="checkboxInfo">
<form>
<div class="checkboxes">
<div class="checkbox-1">
<input type="checkbox" id="drawRaysCheckbox" class="myInput" />
<label for="drawRaysCheckbox">Draw Rays</label>
</div>
<div class="checkbox-2">
<input
type="checkbox"
id="drawSolutionsCheckbox"
class="myInput"
/>
<label for="drawSolutionsCheckbox">Draw Solutions</label>
</div>
<div class="checkbox-3">
<input
type="checkbox"
id="drawPerpendicularsCheckbox"
class="myInput"
/>
<label for="drawPerpendicularsCheckbox"
>Draw Perpendiculars</label
>
</div>
</div>
</form>
</div>
<div class="solutions">
<p id="answer">Draw Rays to get solutions</p>
</div>
<div class="sliderInfo">
<form>
<div class="sliders">
<div class="slider-1">
<input
type="range"
id="i"
class="myInput"
min="0"
max="90"
value="0"
/>
<label for="i">Angle of incidence</label>
</div>
<div class="slider-2">
<input
type="range"
id="A"
class="myInput"
min="7"
max="60.6"
value="30"
/>
<label for="A">Angle of Prism</label>
</div>
<div class="slider-3">
<input
type="range"
id="mu"
class="myInput"
min="1.0"
max="3.0"
step="0.1"
/>
<label for="mu">mu</label>
</div>
</div>
</form>
</div>
</div>
<div class="canvasArea">
<canvas
id="canvas"
style="border: 1px solid #c3c3c3"
width="800"
height="500"
>
Canvas not supported; please update your browser.
</canvas>
</div>
</div>
<script src="./prism.js"></script>
</body>
</html>