1 Star 0 Fork 15

万山青/Jump

forked from demons/Jump 
加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
文件
该仓库未声明开源许可证文件(LICENSE),使用请关注具体项目描述及其代码上游依赖。
克隆/下载
index.html 1.95 KB
一键复制 编辑 原始数据 按行查看 历史
demons 提交于 2022-04-20 13:52 . update index.html.
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<title>跳一跳</title>
<style>
html,body{
margin: 0;padding: 0;
-webkit-user-select: none;
overflow: hidden;
}
.mask{
display: none;
flex-direction: column;
justify-content: center;
align-items: center;
position: fixed;
width: 100%;
height: 100%;
background: rgba(0,0,0,0.4);
}
.content{
display: flex;
flex-direction: column;
align-items: center;
justify-content: center;
width: 500px;
height: 500px;
border-radius: 20px;
background: rgba(0,0,0,0.4);
border: 5px solid rgba(255,255,255,0.05);
}
.score-container{
color: #ffffff;
text-align: center;
}
.title{
font-size: 20px;
font-weight: bold;
color: rgba(255,255,255,0.6);
}
.score{
font-size: 100px;
font-weight: bold;
margin-top: 20px;
}
button.restart{
width: 200px;
height: 40px;
border-radius: 20px;
background: white;
border: none;
font-weight: bold;
font-size: 20px;
cursor: pointer;
}
button.restart:hover{
color:#232323;
}
.info{
margin: 20px 0;
position: absolute;
text-align: center;
opacity: 0.2;
width:100%;
}
.gaming-score{
margin-top: 50px;
color: #FFF;
font-size: 26px;
}
audio{
margin-top: 10px;
}
</style>
</head>
<body>
<div class="mask">
<div class="content">
<div class="score-container">
<p class="title">本次得分</p>
<h1 class="score">0</h1>
</div>
<button class="restart">
重新开始
</button>
</div>
</div>
<div class="info">
<div class="gaming-score">
得分:<span class="current-score">0</span>
</div>
</div>
</body>
</html>
<script src="js/three.min.js"></script>
<script src="js/game.js"></script>
<script src="js/main.js"></script>
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
JavaScript
1
https://gitee.com/wanshanqing-cn/Jump.git
git@gitee.com:wanshanqing-cn/Jump.git
wanshanqing-cn
Jump
Jump
master

搜索帮助

0d507c66 1850385 C8b1a773 1850385