1 Star 0 Fork 0

锅巴汉化/增量史诗英雄(Incremental Epic Hero)

Create your Gitee Account
Explore and code with more than 13.5 million developers,Free private repositories !:)
Sign up
文件
This repository doesn't specify license. Please pay attention to the specific project description and its upstream code dependency when using it.
Clone or Download
index.html 5.14 KB
Copy Edit Raw Blame History
zhaolinxu authored 4 years ago . 更新
<!doctype html>
<html lang="en-us">
<head>
<meta charset="utf-8">
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<title>增量史诗英雄 | Incremental Epic Hero</title>
<style>
* {
margin: 0;
padding: 0;
}
body {
overflow: hidden;
}
#gameContainer canvas {
display:block;
}
div#webgl-content {
position: absolute;
top: 50%;
left: 50%;
-webkit-transform: translate(-50%, -50%);
transform: translate(-50%, -50%);
}
div#loadingBox {
width: 100%;
height: 0px;
position: absolute;
top: 50%;
margin-top: 137px;
text-align: center;
}
div#icon {
width: 300px;
height: 310px;
position: absolute;
top: 50%;
left: 50%;
margin-top: -185px;
margin-left: -150px;
background-image: url("Template/anthill.png");
background-repeat: no-repeat;
box-shadow: 1px 1px 5px #141414;
}
div#box {
width: 328px;
height: 367px;
position: absolute;
top: 50%;
left: 50%;
margin-top: -199px;
margin-left: -164px;
background: #222;
box-shadow: 1px 1px 5px #000;
}
div#bgBar {
display: none;
position: absolute;
width: 300px;
margin-left: -150px;
left: 50%;
height: 18px;
background-color: #882121;
box-shadow: 1px 1px 5px #111;
}
div#progressBar {
display: none;
left: 50%;
position: absolute;
margin-left: -150px;
width: 0px;
height: 18px;
background-color: #dc4241;
}
p#loadingInfo {
color: #fff;
letter-spacing: 1px;
position: absolute;
width: 100%;
font-family: sans-serif;
text-align: center;
top: 50%;
font-size: 11px;
font-weight: 500;
margin-top: 140px;
text-shadow: 0px 0px 5px #000;
}
div#spinner {
position: absolute;
height: 18px;
left: 50%;
margin-left: -150px;
width: 300px;
position: relative;
overflow: hidden;
background-color: #882121;
box-shadow: 1px 1px 5px #111;
}
div#spinner:before {
display: block;
position: absolute;
content: "";
width: 150%;
margin-left: -10px;
height: 10px;
background-color: #e85352;
transform: rotate(-5deg);
animation: loading 1s linear infinite;
}
@keyframes loading {
from {
top: -185%
}
to {
top: 225%
}
}
</style>
<script src='kongregate_api.js'>
</script>
<script src="Build/UnityLoader.js"></script>
<script>
function UnityProgress(gameInstance, progress) {
var container = document.getElementById("gameContainer");
if (container) document.body.style.background = container.style.background;
if (!gameInstance.Module) {
return;
} else if (progress === "complete") {
document.getElementById("loadingBox").style.display = "none";
document.getElementById("icon").style.display = "none";
document.getElementById("loadingInfo").style.display = "none";
document.getElementById("box").style.display = "none";
} else if (progress === 1 || progress === "preinit") {
document.getElementById("loadingInfo").innerHTML = "PROCESSING...";
document.getElementById("spinner").style.display = "inherit";
document.getElementById("bgBar").style.display = "none";
document.getElementById("progressBar").style.display = "none";
} else if (progress > 0) {
document.getElementById("progressBar").style.width = 300 * progress + "px"
document.getElementById("loadingInfo").innerHTML = Math.round(progress * 100) + "%";
document.getElementById("spinner").style.display = "none";
document.getElementById("bgBar").style.display = "block";
document.getElementById("progressBar").style.display = "inherit";
}
}
var gameInstance = UnityLoader.instantiate("gameContainer", "Build/kong0322.json", {
onProgress: UnityProgress,
Module: {
onRuntimeInitialized: function() { UnityProgress(gameInstance, "complete"); },
preInit: [function() { UnityProgress(gameInstance, "preinit"); }]
}
});
</script>
</head>
<body>
<div id="webgl-content" style="width:800px; height: 600px;margin: 0 auto;">
<div id="gameContainer" style="width: 100%; height: 100%"></div>
</div>
<div id="box"></div>
<div id="loadingBox">
<div id="spinner"></div>
<div id="bgBar"></div>
<div id="progressBar"></div>
</div>
<a target="_blank" href="http://www.g8hh.com"> <div id="icon"></div> </a>
<p id="loadingInfo"></p>
<!--客服 开始-->
<script src="//likexia.gitee.io/game/js/jquery.min.js"></script>
<link rel="stylesheet" href="//likexia.gitee.io/game/css/kf.css" type="text/css" media="screen" charset="utf-8">
<script src="//likexia.gitee.io/game/js/kf.js"></script>
<!-- 客服 结束 -->
<!--站长统计-->
<div style="display: none">
<script type="text/javascript" src="//s19.cnzz.com/z_stat.php?id=1267958737&web_id=1267958737"></script>
</div>
</body>
</html>
Loading...
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
1
https://gitee.com/likexia/incremental-epic-hero.git
git@gitee.com:likexia/incremental-epic-hero.git
likexia
incremental-epic-hero
增量史诗英雄(Incremental Epic Hero)
master

Search