awacke1 commited on
Commit
ef4c83b
·
verified ·
1 Parent(s): 7a80d29

Update index.html

Browse files
Files changed (1) hide show
  1. index.html +62 -17
index.html CHANGED
@@ -1,19 +1,64 @@
1
  <!DOCTYPE html>
2
  <html>
3
- <head>
4
- <meta charset="utf-8" />
5
- <meta name="viewport" content="width=device-width" />
6
- <title>My static Space</title>
7
- <link rel="stylesheet" href="style.css" />
8
- </head>
9
- <body>
10
- <div class="card">
11
- <h1>Welcome to your static Space!</h1>
12
- <p>You can modify this app directly by editing <i>index.html</i> in the Files and versions tab.</p>
13
- <p>
14
- Also don't forget to check the
15
- <a href="https://huggingface.co/docs/hub/spaces" target="_blank">Spaces documentation</a>.
16
- </p>
17
- </div>
18
- </body>
19
- </html>
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
  <!DOCTYPE html>
2
  <html>
3
+ <head>
4
+ <meta charset="utf-8">
5
+ <title>Video</title>
6
+ <meta name="description" content="Video - A-Frame">
7
+ <script src="../../../dist/aframe-master.js"></script>
8
+ <script src="../../js/play-on-click.js"></script>
9
+ <script src="../../js/hide-on-play.js"></script>
10
+ </head>
11
+ <body>
12
+ <a-scene>
13
+ <a-assets>
14
+ <video id="videoBunny" preload="auto"
15
+ src="https://cdn.aframe.io/videos/bunny.mp4"
16
+ width="160" height="90" autoplay loop="true"
17
+ crossOrigin="anonymous" muted></video>
18
+ <video id="videoFireworks" preload="auto"
19
+ src="https://cdn.aframe.io/videos/fireworks.mp4"
20
+ width="160" height="90" autoplay loop="true"
21
+ crossOrigin="anonymous" muted></video>
22
+ </a-assets>
23
+
24
+ <!--
25
+ SOURCE
26
+ Title: Big Buck Bunny
27
+ Author: Blender Institute
28
+ URL: https://peach.blender.org/
29
+ -->
30
+ <a-entity material="shader: flat; src: #videoBunny"
31
+ geometry="primitive: plane; width: 160; height: 90;"
32
+ position="0 60 -250"
33
+ rotation="0 35 0"
34
+ play-on-click
35
+ visible="false">
36
+ </a-entity>
37
+
38
+ <!--
39
+ SOURCE
40
+ Title: Fireworks
41
+ Author: Motion Digital
42
+ URL: https://www.videvo.net/profile/motiondigital/
43
+ -->
44
+ <a-entity material="shader: flat; src: #videoFireworks"
45
+ geometry="primitive: plane; width: 160; height: 90"
46
+ position="0 -60 -200"
47
+ rotation="0 -35 0"
48
+ play-on-click
49
+ visible="false">
50
+ </a-entity>
51
+ <a-camera>
52
+ <a-entity
53
+ position="0 0 -1.5"
54
+ text="align: center;
55
+ width: 6;
56
+ wrapCount: 100;
57
+ color: black;
58
+ value: Click or tap to start video"
59
+ hide-on-play="#videoFireworks">
60
+ </a-entity>
61
+ </a-camera>
62
+ </a-scene>
63
+ </body>
64
+ </html>