Spaces:
Running
Running
Upload index.html
Browse files- index.html +38 -17
index.html
CHANGED
@@ -1,19 +1,40 @@
|
|
1 |
<!DOCTYPE html>
|
2 |
-
<html>
|
3 |
-
|
4 |
-
|
5 |
-
|
6 |
-
|
7 |
-
|
8 |
-
|
9 |
-
|
10 |
-
|
11 |
-
|
12 |
-
|
13 |
-
|
14 |
-
|
15 |
-
|
16 |
-
|
17 |
-
|
18 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
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>
|