-
Notifications
You must be signed in to change notification settings - Fork 42
/
index.html
49 lines (43 loc) · 2.97 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
<!doctype html>
<html class="no-js" lang="">
<head>
<meta charset="utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
<title>Gravity</title>
<meta name="description" content="">
<meta name="viewport" content="width=device-width, initial-scale=1">
<link rel="icon" href="favicon.png" type="image/png">
<link rel="stylesheet" href="css/normalize.min.css">
<link rel="stylesheet" href="css/main.css">
<script src="js/vendor/modernizr-2.8.3.min.js"></script>
</head>
<body>
<a href="https://github.com/HermannBjorgvin/Gravity-Experiments"><img style="position: absolute; top: 0; right: 0; border: 0;" src="https://camo.githubusercontent.com/365986a132ccd6a44c23a9169022c0b5c890c387/68747470733a2f2f73332e616d617a6f6e6177732e636f6d2f6769746875622f726962626f6e732f666f726b6d655f72696768745f7265645f6161303030302e706e67" alt="Fork me on GitHub" data-canonical-src="https://s3.amazonaws.com/github/ribbons/forkme_right_red_aa0000.png"></a>
<canvas id='gravity' context-menu="none"></canvas>
<div class="menu">
<h4>Left click to build a custom mass (hard)</h4>
<h4>Right click to make an orbiting mass (fun)</h4>
<label><input type="checkbox" id="menu-toggle-grid" checked="checked"> Show grid</label><br>
<label><input type="checkbox" id="menu-toggle-custom-mass"> Custom mass on right click</label><br>
<label><input type="checkbox" id="menu-toggle-draw-path" checked="checked"> Draw object path</label><br>
<label><input type="number" id="menu-orbit-mass" value="2" min="1"> Default orbiting object size</label><br>
<label><input type="number" id="menu-disk-density" value="2" min="0" step="0.1"> Disk Density</label><br>
<label><input type="number" step="10" id="menu-mass-multiplier" value="200"> Exaggerate mass</label><br>
<label><input type="number" id="menu-zoom" value="1" min="0" step="0.1"> Camera zoom</label><br>
<label><input type="number" id="menu-speed" value="1" step="0.1"> Calculation speed</label><br>
<button id="menu-clear-spacetime">clear spacetime</button><br>
<button id="menu-cycle-focus">cycle object focus</button><br>
<button id="menu-reset-camera">reset camera</button>
<button id="menu-gen-disk">generate disk</button>
</div>
<script src="js/vendor/require.js" data-main="js/gravity/main.js"></script>
<script>
(function(i,s,o,g,r,a,m){i['GoogleAnalyticsObject']=r;i[r]=i[r]||function(){
(i[r].q=i[r].q||[]).push(arguments)},i[r].l=1*new Date();a=s.createElement(o),
m=s.getElementsByTagName(o)[0];a.async=1;a.src=g;m.parentNode.insertBefore(a,m)
})(window,document,'script','//www.google-analytics.com/analytics.js','ga');
ga('create', 'UA-40622926-5', 'auto');
ga('send', 'pageview');
</script>
</body>
</html>