49 lines
1.4 KiB
HTML
49 lines
1.4 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 | ShengDaPing</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/sgs.json", {onProgress: UnityProgress});
|
|
function home() {
|
|
window.history.go(-1);
|
|
}
|
|
</script>
|
|
</head>
|
|
<style>
|
|
.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" style="width:100%;height: 100%;">
|
|
<div id="unityContainer"></div>
|
|
<div class="footer">
|
|
<div class="webgl-logo"></div>
|
|
<div class="fullscreen" onclick="unityInstance.SetFullscreen(1)"></div>
|
|
<div class="title">ShengDaPing</div>
|
|
</div>
|
|
<div class="home">
|
|
<div class="back" onclick="home()" style="cursor: pointer"></div>
|
|
</div>
|
|
</div>
|
|
</body>
|
|
</html>
|