-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.html
39 lines (39 loc) · 2.02 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
<!DOCTYPE html>
<html lang="en" dir="ltr">
<head>
<meta charset="utf-8">
<link rel="stylesheet" href="css/main.css">
<script src="https://unpkg.com/@babel/standalone/babel.min.js"></script>
<script src="https://cdnjs.cloudflare.com/ajax/libs/pixi.js/4.5.1/pixi.min.js"></script>
<script src="https://cdnjs.cloudflare.com/ajax/libs/randomcolor/0.5.2/randomColor.min.js" charset="utf-8"></script>
<!-- <script src="local_libs/babel.min.js"></script>
<script src="local_libs/pixi.min.js"></script>
<script src="local_libs/pixi-filters.js"></script>
<script src="local_libs/randomColor.min.js" charset="utf-8"></script> -->
<script src="http://danml.com/js/download2.js" charset="utf-8"></script>
<script type="text/babel" src="simulator.js" charset="utf-8"></script>
<title>Gravity</title>
</head>
<body>
<div id="bigWrapper">
<div class="canvasWrapper"></div>
<div class="controls">
<button type="button" name="play" onClick="playAnimation()">Play</button>
<input type="number" name="currentFrame" id="currentFrameCounter" value="0">
<input type="number" name="finalFrame" id="totalFrames" value="100">
<button type="button" name="precompute" onClick="precomputeFrames()" >Precompute Frames</button>
<button type="button" name="dl" onClick="downloadTrajectory()" >Download Simulation</button>
<input type="file" id="fileUp" multiple="false"/>
<button type="button" name="ul" onClick="upload()" >Upload Simulation</button>
<br>
<div class="barWrapper">
<div class="progressBar"></div>
</div>
<br>
<button type="button" name="ul" onClick="setFromText()" >Update Simulation</button>
<br>
<textarea id="simJson" name="simJson"></textarea>
</div>
</div>
</body>
</html>