-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.html
executable file
·69 lines (57 loc) · 1.5 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
<html>
<head>
<meta http-equiv="Content-Type" content="text/html;charset=UTF-8">
<title>My first Three.js app</title>
<style>
html, body{
margin: 0;
padding: 0;
height: 100%;
}
.container-full{
width: 100%;
height: 100%;
position: absolute;;
left: 0px;
top: 0px;
color: #ffffff;
}
#score{
width: 20%;
overflow: hidden;
padding: 8px;
margin-left: 15%;
margin-top: 40%;
text-align: center;
font-size: 18px;
font-weight: bolder;
border-radius: 10px;
color:#444444;
background-color: rgba(255,255,255,0.9);
}
</style>
</head>
<body>
<div class="container-full" id="screen">
<div id="score">
Score : 100
</div>
</div>
<script>
addEventListener("click", function() {
var el = document.documentElement,
rfs = el.requestFullScreen || el.webkitRequestFullScreen || el.mozRequestFullScreen;
rfs.call(el);
//location.reload();
});
</script>
<script src="library/tween.js"></script>
<script src="library/three.js"></script>
<script src="library/StereoEffect.js"></script>
<script src="library/DeviceOrientationControls.js"></script>
<script src="library/KeyboardState.js"></script>
<script src="library/FullScreen.js"></script>
<script src="library/helvetiker_regular.typeface.js"></script>
<script data-main="classes/Entry" src="library/requirejs.js"></script>
</body>
</html>