-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.html
78 lines (77 loc) · 3.07 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
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<title>tPrime</title>
<link rel="stylesheet" type="text/css" href='./css/main.css'/>
<link href="https://fonts.googleapis.com/css?family=Rajdhani" rel="stylesheet">
<script type='text/javascript' src='matter.js'></script>
<script type='text/javascript' src='timer.js'></script>
<script src="https://ajax.googleapis.com/ajax/libs/jquery/3.2.1/jquery.min.js"></script>
</head>
<body>
<div id='links'>
<div id='how-to' onclick="openHowTo()">How To</div>
<a href='https://github.com/snakerabbit/tprime'>GitHub</a>
<a href='https://www.linkedin.com/in/alison-cheng-b61866149/'>LinkedIn</a>
</div>
<h1 id='title'>tPrime</h1>
<div id='world-buttons'>
<button id='earth-button' onclick="setToEarth()">Earth</button>
<button id='null-grav-button' onclick="setToNull()">Null Gravity</button>
<button id='high-grav-button' onclick="setToHigh()">High Gravity</button>
</div>
<div id='initialize'>
<div id='age-form'>
<h3 id='age-text'>Enter Your Age</h3>
<input id='age-input' type="text" id='age' placeholder='age'/>
<button id='age-button' onclick="setAge()">Enter</button>
</div>
</div>
<div id="canvas-container">
<script type='text/javascript' src='./lib/tprime.js'></script>
</div>
<button id='open-user-controls' onclick='openUserControls()'>Open User Controls</button>
<div id='how-to-bar' onclick='closeHowTo()'>
<div id='how-to-form'>
<h3>Click On The Top Buttons To Travel Between Gravitational Fields</h3>
<br/>
<h3>Click On The User Controls Button To Open The Controls</h3>
<br/>
<h3>Move The Bars To Change The Physics Of Your World and See How The Objects React </h3>
<br/>
<h3>Watch How Time Dilates Between Gravitational Fields in the Stats</h3>
</div>
</div>
<div id='user-bar'>
<a href="javascript:void(0)" class="closebtn" onclick="closeUserControls()">×</a>
<div id='user-controls'>
<div id='atmosphere-control'>
<p>Atmospheric Gases</p>
<input type='range' min="0" max="1" value="0.01" step = "0.01" class="slider" id="atmosphere" onchange="changeAtmosphere()">
</div>
<div id='pendulum-control'>
<p>Pendulum Mass</p>
<input type='range' min="0" max="1000000000" value="1000" class="slider" id="pendulum-mass" onchange="changePendulumMass()">
</div>
<div id='box-control'>
<p>Box Mass</p>
<input type='range' min="0" max="100000000" value="1000" class="slider" id="box-mass" onchange="changeBoxMass()">
</div>
</div>
<div id='stats'>
<div id='user-stats'>
<div id='user-age-container'>
Your Current Age:
<p id='current-age'></p>
<p id='time'></p>
</div>
<div id='gravity-stat-container'>
Current Gravity Levels:
<p id='current-gravity'></p>
</div>
</div>
</div>
</div>
</body>
</html>