-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathindex.html
58 lines (49 loc) · 1.68 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
<script src="./lib/cannon.js"></script>
<script src="./lib/three.js"></script>
<script src="./lib/OrbitControls.js"></script>
<script src="./lib/dat.gui.js"></script>
<link rel="stylesheet" href="./lib/dat.gui.css">
<script src="index.js"></script>
<style>
body {
margin: 0px;
background-color: #000000;
overflow: hidden;
font: 14px 'Lucida Grande', sans-serif;
}
.results-container{
color:white;
width:100%;
text-align: center;
padding-top: 10px;
background: rgba(0,0,0,0.6);
position:relative;
}
canvas{
position:absolute;
top:0px;
left:0px;
}
.credits{
position: absolute;
width: 100%;
text-align: center;
bottom:10px;
color: white;
}
.credits a{
color: yellow;
text-decoration: none;
}
</style>
<div class="results-container" id="currentResult">Results (heads, edges, tails for ratio <span id="ratio">-</span>): <span id="results" style="font-weight: bold"></span></div>
<div class="results-container" id="lastresult0"></div>
<div class="results-container" id="lastresult1"></div>
<div class="results-container" id="lastresult2"></div>
<div class="credits">
<a href="https://github.com/notrabs/three-sided-dice" target="_blank">three-sided-dice </a>is using
<a href="https://threejs.org/" target="_blank">threejs</a>,
<a href="http://www.cannonjs.org/" target="_blank">cannon.js</a> physics and
<a href="https://github.com/dataarts/dat.gui" target="_blank">dat.gui</a>. Also visit the
<a href="https://www.youtube.com/watch?v=-qqPKKOU-yY" target="_blank">Inspiration</a> for this.
</div>