1
0
Fork 0
LaboratoryProtection/Assets/WebGLTemplates/Custom2019/index.html

30 lines
1.1 KiB
HTML
Raw Normal View History

2023-09-12 15:55:51 +08:00
<!DOCTYPE html>
<html lang="en-us">
<head>
<meta charset="utf-8">
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<title>Unity WebGL Player | %UNITY_WEB_NAME%</title>
<link rel="shortcut icon" href="TemplateData/favicon.ico">
<link rel="stylesheet" href="TemplateData/style.css">
<script src="TemplateData/UnityProgress.js"></script>
<script src="%UNITY_WEBGL_LOADER_URL%"></script>
<script>
var unityInstance = UnityLoader.instantiate("unityContainer", "%UNITY_WEBGL_BUILD_URL%", {onProgress: UnityProgress});
function SetFullscreenOld() {
document.makeFullscreen('unityContainer');
}
</script>
</head>
<body>
<div class="webgl-content">
<div id="unityContainer" style="width: %UNITY_WIDTH%px; height: %UNITY_HEIGHT%px"></div>
<div class="footer">
<div class="webgl-logo"></div>
<div class="fullscreen" onclick="/*unityInstance.SetFullscreen(1)*/document.makeFullscreen('unityContainer')"></div>
<div class="title">%UNITY_WEB_NAME%</div>
</div>
</div>
</body>
</html>