-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex.html
50 lines (44 loc) · 1.36 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
<html>
<head>
<title>Special Relativity Three</title>
<link href="styles.css" rel="stylesheet" />
<style>
body {
margin: 0;
}
canvas {
width: 100%;
height: 100%;
}
;
</style>
<script src="https://cdnjs.cloudflare.com/ajax/libs/three.js/r79/three.min.js"></script>
</head>
<body>
<!-- <script src="./index.js"></script> -->
<script src="js/three.js"></script>
<script src="js/threeImplementation.js" defer></script>
<div class="outer-container">
<div class="clock-container">
<input id="speedSlider" value="0" type="range" step="0.01" min="0" max=".99" />
<div id="sliderLabel">Speed of traveller (fraction of speed of light): </div>
<div id="labelValue">0</div>
<div>gamma:</div>
<div id="gammaLabel">1</div>
<input id="pauseTime" value="5" type="number" />
<div>pause time(sec)</div>
<table>
<tr>
<td class="stationary-clock-label">Stationary Time: </td>
<td id="stationaryTime" class="stationary-clock-value">00:00:00</td>
</tr>
<tr>
<td class="moving-photon-clock-label">Photon Moving Time: </td>
<td id="movingPhotonTime" class="moving-photon-clock-value">00:00:00</td>
</tr>
</table>
</div>
<button id="startButton">Start</button>
<button id="resetButton">Reset</button>
</div>
</html>