awacke1 commited on
Commit
5376b5b
·
1 Parent(s): c0fb6eb

Upload index.html

Browse files
Files changed (1) hide show
  1. index.html +38 -17
index.html CHANGED
@@ -1,19 +1,40 @@
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 lang="en-us">
3
+ <head>
4
+ <meta charset="utf-8">
5
+ <meta http-equiv="Content-Type" content="text/html; charset=utf-8">
6
+ <title>Unity WebGL Player | 3D HTML5 AI on HuggingFace</title>
7
+ </head>
8
+ <body style="text-align: center; padding: 0; border: 0; margin: 0;">
9
+ <canvas id="unity-canvas" width=1280 height=1024 tabindex="-1" style="width: 1280px; height: 1024px; background: #CCCCCC"></canvas>
10
+ <script src="Build/HTML5Output.loader.js"></script>
11
+ <script>
12
+ if (/iPhone|iPad|iPod|Android/i.test(navigator.userAgent)) {
13
+ // Mobile device style: fill the whole browser client area with the game canvas:
14
+ var meta = document.createElement('meta');
15
+ meta.name = 'viewport';
16
+ meta.content = 'width=device-width, height=device-height, initial-scale=1.0, user-scalable=no, shrink-to-fit=yes';
17
+ document.getElementsByTagName('head')[0].appendChild(meta);
18
+
19
+ var canvas = document.querySelector("#unity-canvas");
20
+ canvas.style.width = "100%";
21
+ canvas.style.height = "100%";
22
+ canvas.style.position = "fixed";
23
+
24
+ document.body.style.textAlign = "left";
25
+ }
26
+
27
+ createUnityInstance(document.querySelector("#unity-canvas"), {
28
+ dataUrl: "Build/HTML5Output.data.gz",
29
+ frameworkUrl: "Build/HTML5Output.framework.js.gz",
30
+ codeUrl: "Build/HTML5Output.wasm.gz",
31
+ streamingAssetsUrl: "StreamingAssets",
32
+ companyName: "3D HTML5 AI on HuggingFace",
33
+ productName: "3D HTML5 AI on HuggingFace",
34
+ productVersion: "0.1",
35
+ // matchWebGLToCanvasSize: false, // Uncomment this to separately control WebGL canvas render size and DOM element size.
36
+ // devicePixelRatio: 1, // Uncomment this to override low DPI rendering on high DPI displays.
37
+ });
38
+ </script>
39
+ </body>
40
  </html>