Skip to content

Commit

Permalink
Update index.html
Browse files Browse the repository at this point in the history
  • Loading branch information
Bubseatbubs committed Dec 20, 2023
1 parent a85b447 commit 0ded6c3
Showing 1 changed file with 19 additions and 4 deletions.
23 changes: 19 additions & 4 deletions index.html
Original file line number Diff line number Diff line change
Expand Up @@ -6,9 +6,27 @@
<title>Unity WebGL Player | Lab Suika</title>
<link rel="shortcut icon" href="TemplateData/favicon.ico">
<link rel="stylesheet" href="TemplateData/style.css">
<style>
html, body {
width: 100%;
height: 100%;
margin: 0;
padding: 0;
overflow: hidden; /* This is to make the scrollbar go away */
}
#unity-container {
width: 100%;
height: 100%;
}
#unity-canvas {
width: 100%;
height: 100%;
display: block; /* This is to make the extra space under go away */
}
</style>
</head>
<body>
<div id="unity-container" style="width: 100%; height: 100%">
<div id="unity-container">
<canvas id="unity-canvas" width=auto height=auto"></canvas>
<div id="unity-loading-bar">
<div id="unity-logo"></div>
Expand Down Expand Up @@ -106,9 +124,6 @@
progressBarFull.style.width = 100 * progress + "%";
}).then((unityInstance) => {
loadingBar.style.display = "none";
// fullscreenButton.onclick = () => {
// unityInstance.SetFullscreen(1);
// };
}).catch((message) => {
alert(message);
});
Expand Down

0 comments on commit 0ded6c3

Please sign in to comment.