64 lines
2.0 KiB
HTML
64 lines
2.0 KiB
HTML
<!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 | JianPuBuilding</title>
|
|
<link rel="shortcut icon" href="TemplateData/favicon.ico">
|
|
<link rel="stylesheet" href="TemplateData/style.css">
|
|
<script src="TemplateData/UnityProgress.js"></script>
|
|
<script src="Build/UnityLoader.js"></script>
|
|
<script>
|
|
var unityInstance = UnityLoader.instantiate("unityContainer", "Build/JianPu_Building.json", {onProgress: UnityProgress});
|
|
// function init() {
|
|
// unityInstance.SetFullscreen(1)
|
|
// }
|
|
function home() {
|
|
window.history.go(-1);
|
|
}
|
|
|
|
</script>
|
|
</head>
|
|
<style>
|
|
html body {
|
|
margin: 0;
|
|
border: 0;
|
|
width: 100%;
|
|
height: 100%;
|
|
}
|
|
.back{
|
|
bottom: 20px;
|
|
right: 50px;
|
|
width: 38px;
|
|
height: 38px;
|
|
}
|
|
.home{
|
|
background: #ffffff;
|
|
position: absolute;
|
|
bottom: 20px;
|
|
right: 50px;
|
|
width: 38px;
|
|
height: 38px;
|
|
border-radius:5px
|
|
}
|
|
</style>
|
|
<body>
|
|
<!-- <div class="webgl-content">-->
|
|
<!-- <div id="unityContainer" style="width: 960px; height: 600px"></div>-->
|
|
<!-- <div class="footer">-->
|
|
<!-- <div class="webgl-logo"></div>-->
|
|
<!-- <div class="fullscreen" onclick="init()" style="cursor: pointer"></div>-->
|
|
<!-- <div class="back" onclick="home()" style="cursor: pointer"></div>-->
|
|
<!-- <div class="title">JianPuBuilding</div>-->
|
|
<!-- </div>-->
|
|
<!-- </div>-->
|
|
<div style="width: 100%; height:100%" class="webgl-content">
|
|
<!-- <div id="unityContainer" style="width: 960px; height: 600px"></div> -->
|
|
<div id="unityContainer" style="width: 100vw; height: 100vh;overflow: hidden;" ></div>
|
|
<div class="home">
|
|
<div class="back" onclick="home()" style="cursor: pointer"></div>
|
|
</div>
|
|
</div>
|
|
</body>
|
|
</html>
|