idk432324214313
This commit is contained in:
1 parent
5b23bfbd00
commit
9926dd631f
27 files changed
+2773
No files matched your search
@@ -0,0 +1,129 @@
|
||||
|
||||
<!DOCTYPE html>
|
||||
<html lang="en-us">
|
||||
<head>
|
||||
<meta charset="utf-8">
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1.0, user-scalable=no">
|
||||
<title>Happy Wheels Unblocked</title>
|
||||
<link rel="canonical" href="https://ubg44.github.io/HappyWheels/" />
|
||||
<script>
|
||||
window.location= "https://ubg44.github.io/HappyWheels/";
|
||||
</script>
|
||||
<style>
|
||||
html {
|
||||
box-sizing: border-box;
|
||||
}
|
||||
*, *:before, *:after {
|
||||
box-sizing: inherit;
|
||||
}
|
||||
body {
|
||||
margin: 0;
|
||||
background: #444;
|
||||
}
|
||||
#gameContainer {
|
||||
width: 100vw;
|
||||
height: 100vh;
|
||||
}
|
||||
canvas {
|
||||
width: 100%;
|
||||
height: 100%;
|
||||
display: block;
|
||||
}
|
||||
/* try to handle mobile dialog */
|
||||
canvas + * {
|
||||
z-index: 2;
|
||||
}
|
||||
.logo {
|
||||
display: block;
|
||||
max-width: 100vw;
|
||||
max-height: 70vh;
|
||||
}
|
||||
|
||||
.progress {
|
||||
margin: 1.5em;
|
||||
border: 1px solid white;
|
||||
width: 50vw;
|
||||
display: none;
|
||||
}
|
||||
.progress .full {
|
||||
margin: 2px;
|
||||
background: white;
|
||||
height: 1em;
|
||||
transform-origin: top left;
|
||||
}
|
||||
|
||||
#loader {
|
||||
position: absolute;
|
||||
left: 0;
|
||||
top: 0;
|
||||
width: 100vw;
|
||||
height: 100vh;
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
align-items: center;
|
||||
justify-content: center;
|
||||
background-color:black;
|
||||
}
|
||||
|
||||
.spinner,
|
||||
.spinner:after {
|
||||
border-radius: 50%;
|
||||
width: 5em;
|
||||
height: 5em;
|
||||
}
|
||||
.spinner {
|
||||
margin: 10px;
|
||||
font-size: 10px;
|
||||
position: relative;
|
||||
text-indent: -9999em;
|
||||
border-top: 1.1em solid rgba(255, 255, 255, 0.2);
|
||||
border-right: 1.1em solid rgba(255, 255, 255, 0.2);
|
||||
border-bottom: 1.1em solid rgba(255, 255, 255, 0.2);
|
||||
border-left: 1.1em solid #ffffff;
|
||||
transform: translateZ(0);
|
||||
animation: spinner-spin 1.1s infinite linear;
|
||||
}
|
||||
@keyframes spinner-spin {
|
||||
0% {
|
||||
transform: rotate(0deg);
|
||||
}
|
||||
100% {
|
||||
transform: rotate(360deg);
|
||||
}
|
||||
}
|
||||
|
||||
</style>
|
||||
</head>
|
||||
<body>
|
||||
<noscript>No Javascript Supported!</noscript>
|
||||
<div id="gameContainer"></div>
|
||||
<div id="loader">
|
||||
<img class="logo" src="loading.png?v=1">
|
||||
<div class="spinner"></div>
|
||||
<div class="progress"><div class="full"></div></div>
|
||||
</div>
|
||||
</body>
|
||||
<script src="Build/UnityLoader.js"></script>
|
||||
<script>
|
||||
var gameInstance = UnityLoader.instantiate("gameContainer", "Build/HappyWheels.json", {onProgress: UnityProgress});
|
||||
function UnityProgress(gameInstance, progress) {
|
||||
if (!gameInstance.Module) {
|
||||
return;
|
||||
}
|
||||
const loader = document.querySelector("#loader");
|
||||
if (!gameInstance.progress) {
|
||||
const progress = document.querySelector("#loader .progress");
|
||||
progress.style.display = "block";
|
||||
gameInstance.progress = progress.querySelector(".full");
|
||||
loader.querySelector(".spinner").style.display = "none";
|
||||
}
|
||||
gameInstance.progress.style.transform = `scaleX(${progress})`;
|
||||
if (progress === 1 && !gameInstance.removeTimeout) {
|
||||
gameInstance.removeTimeout = setTimeout(function() {
|
||||
loader.style.display = "none";
|
||||
}, 2000);
|
||||
}
|
||||
}
|
||||
</script>
|
||||
<script src="js/analytics_ubg_v1_4.js"></script>
|
||||
</html>
|
||||
Reference in new issue
Block a user