IlluminatiPudding
commited on
Commit
β’
e57ccd5
1
Parent(s):
ec39890
Create index.html
Browse files- index.html +154 -0
index.html
ADDED
@@ -0,0 +1,154 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
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 |
+
<meta name="viewport" content="width=device-width, initial-scale=1.0, user-scalable=no">
|
7 |
+
<title>Huggy</title>
|
8 |
+
<link rel="shortcut icon" href="TemplateData/favicon.ico">
|
9 |
+
<link rel="stylesheet" href="TemplateData/style.css">
|
10 |
+
<style>
|
11 |
+
div#discordButton button{
|
12 |
+
position: absolute;
|
13 |
+
left: 0px;
|
14 |
+
}
|
15 |
+
</style>
|
16 |
+
<!-- Bootstrap CSS -->
|
17 |
+
<link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/4.0.0/css/bootstrap.min.css" integrity="sha384-Gn5384xqQ1aoWXA+058RXPxPg6fy4IWvTNh0E263XmFcJlSAwiGgFAW/dAiS6JXm" crossorigin="anonymous">
|
18 |
+
</head>
|
19 |
+
<body class="dark">
|
20 |
+
<!-- Modal -->
|
21 |
+
<div class="modal fade" id="infoModal" tabindex="-1" role="dialog" aria-labelledby="exampleModalLabel" aria-hidden="true">
|
22 |
+
<div class="modal-dialog" role="document">
|
23 |
+
<div class="modal-content">
|
24 |
+
<div class="modal-header">
|
25 |
+
<img class="modal-title" id="exampleModalLabel" src="./TemplateData/logo.png" alt="logo" style="max-height:200px" class="img-fluid"/>
|
26 |
+
<button type="button" class="close" data-dismiss="modal" aria-label="Close">
|
27 |
+
<span aria-hidden="true">×</span>
|
28 |
+
</button>
|
29 |
+
</div>
|
30 |
+
<div class="modal-body">
|
31 |
+
<h3> What is Huggy πΆ? </h3>
|
32 |
+
<p> Huggy is a dog that <b>learned how to catch the stick with deep reinforcement learning</b> - throw the stick to see how he has learned!</p>
|
33 |
+
<p> If you like the game, don't forget to click on the like π button.</p>
|
34 |
+
<p> Do you want to learn more about Deep RL? π€
|
35 |
+
We launched a <b>free class from beginner to expert!</b>
|
36 |
+
π <a href="https://forms.gle/iCCam61Q1Hbj4ogV7" target="_blank">Start here</a> </p>
|
37 |
+
</div>
|
38 |
+
<div class="modal-footer">
|
39 |
+
<button type="button" class="btn btn-success" data-dismiss="modal">Let me play!</button>
|
40 |
+
</div>
|
41 |
+
</div>
|
42 |
+
</div>
|
43 |
+
</div>
|
44 |
+
|
45 |
+
<!-- Modal --
|
46 |
+
<div class="modal fade" id="infoModal" tabindex="-1" role="dialog" aria-labelledby="exampleModalLabel" aria-hidden="true">
|
47 |
+
<div class="modal-dialog" role="document">
|
48 |
+
<div class="modal-content">
|
49 |
+
<div class="modal-header">
|
50 |
+
<img class="modal-title" id="exampleModalLabel" src="./TemplateData/logo.png" alt="logo" style="max-height:200px" class="img-fluid"/>
|
51 |
+
<button type="button" class="close" data-dismiss="modal" aria-label="Close">
|
52 |
+
<span aria-hidden="true">×</span>
|
53 |
+
</button>
|
54 |
+
</div>
|
55 |
+
<div class="modal-body">
|
56 |
+
<h1> Huggy does not work on Space for now here's the new link πΆ: <a href="https://singularite.itch.io/huggy" target="_blank">>https://singularite.itch.io/huggy</a> </h1>
|
57 |
+
<h3> Huggy does not work on Space for now here's the new link πΆ: <a href="https://singularite.itch.io/huggy" target="_blank">>https://singularite.itch.io/huggy</a> </h3>
|
58 |
+
<p> Huggy is a dog that <b>learned how to catch the stick with deep reinforcement learning</b> - throw the stick to see how he has learned!</p>
|
59 |
+
<p> If you like the game, don't forget to click on the like π button.</p>
|
60 |
+
<p> Do you want to learn more about Deep RL? π€
|
61 |
+
We launched a <b>free class from beginner to expert!</b>
|
62 |
+
π <a href="https://forms.gle/iCCam61Q1Hbj4ogV7" target="_blank">Start here</a> </p>
|
63 |
+
</div>
|
64 |
+
<div class="modal-footer">
|
65 |
+
<button type="button" class="btn btn-success" data-dismiss="modal">Let me play!</button>
|
66 |
+
</div>
|
67 |
+
</div>
|
68 |
+
</div>
|
69 |
+
</div>-->
|
70 |
+
|
71 |
+
<div id="unity-container" class="unity-desktop">
|
72 |
+
<canvas id="unity-canvas"></canvas>
|
73 |
+
</div>
|
74 |
+
<div id="loading-cover" style="display:none;">
|
75 |
+
<div id="unity-loading-bar">
|
76 |
+
<div id="unity-logo"><img src="logo.png"></div>
|
77 |
+
<div id="unity-progress-bar-empty" style="display: none;">
|
78 |
+
<div id="unity-progress-bar-full"></div>
|
79 |
+
</div>
|
80 |
+
<div class="spinner"></div>
|
81 |
+
</div>
|
82 |
+
</div>
|
83 |
+
<div id="unity-fullscreen-button" style="display: none;"></div>
|
84 |
+
<script>
|
85 |
+
const hideFullScreenButton = "";
|
86 |
+
const buildUrl = "Build";
|
87 |
+
const loaderUrl = buildUrl + "/Huggy.loader.js";
|
88 |
+
const config = {
|
89 |
+
dataUrl: buildUrl + "/Huggy.data.unityweb",
|
90 |
+
frameworkUrl: buildUrl + "/Huggy.framework.js.unityweb",
|
91 |
+
codeUrl: buildUrl + "/Huggy.wasm.unityweb",
|
92 |
+
streamingAssetsUrl: "StreamingAssets",
|
93 |
+
companyName: "Hugging Face",
|
94 |
+
productName: "Huggy",
|
95 |
+
productVersion: "0.1",
|
96 |
+
};
|
97 |
+
const container = document.querySelector("#unity-container");
|
98 |
+
const canvas = document.querySelector("#unity-canvas");
|
99 |
+
const loadingCover = document.querySelector("#loading-cover");
|
100 |
+
const progressBarEmpty = document.querySelector("#unity-progress-bar-empty");
|
101 |
+
const progressBarFull = document.querySelector("#unity-progress-bar-full");
|
102 |
+
const fullscreenButton = document.querySelector("#unity-fullscreen-button");
|
103 |
+
const spinner = document.querySelector('.spinner');
|
104 |
+
const canFullscreen = (function() {
|
105 |
+
for (const key of [
|
106 |
+
'exitFullscreen',
|
107 |
+
'webkitExitFullscreen',
|
108 |
+
'webkitCancelFullScreen',
|
109 |
+
'mozCancelFullScreen',
|
110 |
+
'msExitFullscreen',
|
111 |
+
]) {
|
112 |
+
if (key in document) {
|
113 |
+
return true;
|
114 |
+
}
|
115 |
+
}
|
116 |
+
return false;
|
117 |
+
}());
|
118 |
+
if (/iPhone|iPad|iPod|Android/i.test(navigator.userAgent)) {
|
119 |
+
container.className = "unity-mobile";
|
120 |
+
config.devicePixelRatio = 1;
|
121 |
+
}
|
122 |
+
loadingCover.style.display = "";
|
123 |
+
const script = document.createElement("script");
|
124 |
+
script.src = loaderUrl;
|
125 |
+
script.onload = () => {
|
126 |
+
createUnityInstance(canvas, config, (progress) => {
|
127 |
+
spinner.style.display = "none";
|
128 |
+
progressBarEmpty.style.display = "";
|
129 |
+
progressBarFull.style.width = `${100 * progress}%`;
|
130 |
+
}).then((unityInstance) => {
|
131 |
+
loadingCover.style.display = "none";
|
132 |
+
if (canFullscreen) {
|
133 |
+
if (!hideFullScreenButton) {
|
134 |
+
fullscreenButton.style.display = "";
|
135 |
+
}
|
136 |
+
fullscreenButton.onclick = () => {
|
137 |
+
unityInstance.SetFullscreen(1);
|
138 |
+
};
|
139 |
+
}
|
140 |
+
}).catch((message) => {
|
141 |
+
alert(message);
|
142 |
+
});
|
143 |
+
};
|
144 |
+
document.body.appendChild(script);
|
145 |
+
</script>
|
146 |
+
<script src="https://cdn.jsdelivr.net/npm/jquery@3.5.1/dist/jquery.slim.min.js" integrity="sha384-DfXdz2htPH0lsSSs5nCTpuj/zy4C+OGpamoFVy38MVBnE+IbbVYUew+OrCXaRkfj" crossorigin="anonymous"></script>
|
147 |
+
<script src="https://cdn.jsdelivr.net/npm/bootstrap@4.6.1/dist/js/bootstrap.bundle.min.js" integrity="sha384-fQybjgWLrvvRgtW6bFlB7jaZrFsaBXjsOMm/tB9LTS58ONXgqbR9W8oWht/amnpF" crossorigin="anonymous"></script>
|
148 |
+
<script>
|
149 |
+
$(document).ready(function(){
|
150 |
+
$("#infoModal").modal('show');
|
151 |
+
});
|
152 |
+
</script>
|
153 |
+
</body>
|
154 |
+
</html>
|