-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathindex.html
100 lines (89 loc) · 3.22 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
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<title>Lecture</title>
<meta name="description" content="Lecture">
<script src="https://rawgit.com/aframevr/aframe/417aaac/dist/aframe-master.min.js"></script>
<script src="https://www.gstatic.com/firebasejs/4.10.1/firebase.js"></script>
<script src="bundle.js"></script>
<style>
.btn {
background: rgba(0,0,0,.35);
color: #FFF;
border: 0;
bottom: 0;
cursor: pointer;
min-width: 50px;
min-height: 30px;
padding: 1%;
/* position: absolute;
left: 0; */
transition: background-color .05s ease;
-webkit-transition: background-color .05s ease;
z-index: 9999;
font-family: sans-serif,monospace;
font-size: 20px !important;
}
#leftButtons {
width: 100%;
font-weight: 200;
position: absolute;
left: 20px;
bottom: 20px;
}
#pauseDesktop {
width: 100%;
font-weight: 200;
position: absolute;
right: 20px;
}
#toggleSubtitles {
width: 100%;
font-weight: 200;
position: absolute;
left: 120px;
bottom: 20px;
}
</style>
</head>
<body>
<a-scene>
<a-assets>
<img id="groundTexture" src="https://cdn.aframe.io/a-painter/images/floor.jpg" crossorigin="anonymous">
<img id="skyTexture" src="https://cdn.aframe.io/a-painter/images/sky.jpg" crossorigin="anonymous">
<video id="video"></video>
</a-assets>
<a-entity id="cameraContainer" position="0 0 0">
<a-entity id="mainCamera" camera look-controls position="0 10 0">
<a-text id="lecStart" value="Tap anywhere to\n start lecture..." position="0 0 -1.5" align="center"></a-text>
</a-entity>
</a-entity>
<a-entity stage id="stage" position="0 0.5 -24">
<a-entity video></a-entity>
<a-image id="loading" src="assets/logo.png" position="0 12 10" scale="3.5 3 3">
<a-animation attribute="rotation"
dur="1000"
fill="forwards"
to="0 -360 0"
easing="linear"
repeat="indefinite"></a-animation>
</a-image>
<a-video id="videoPlane" src="#video" width="20" height="11.25" position="0 10 6"></a-video>
<!--<a-text value="Tap anywhere to\n start scene..." position="0 5 10" align="center" width="36"></a-text>-->
</a-entity>
<a-entity position="0 10 0">
<a-text id="subtitle" value="" position="0 -2.05 -2.8" align="center"></a-text>
</a-entity>
<!-- Background sky. -->
<a-sky height="2048" radius="100" src="#skyTexture" width="2048"></a-sky>
<!-- Ground. -->
<a-circle id="ground" src="#groundTexture" rotation="-90 0 0" position="0 0.1 0" radius="100"></a-circle>
</a-scene>
<div id="leftButtons">
<button id="exitBtn" class="btn">Exit</button>
<button id="toggleBtn" class="btn">Sub: ON</button>
<button id="pauseBtn" class="btn">Pause</button>
</div>
</body>
</html>