forked from arcxingye/EatKano
-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.html
105 lines (99 loc) · 6 KB
/
index.html
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
<!DOCTYPE html>
<html lang="zh">
<head>
<title>吃掉小鹿乃</title>
<meta itemprop="name" content="吃掉小鹿乃" />
<meta itemprop="description" content="新概念音游" />
<meta charset="utf-8" />
<meta name="viewport" content="initial-scale=1, user-scalable=no, minimum-scale=1.0, maximum-scale=1.0, width=device-width,target-densitydpi=device-dpi" />
<link href="./static/index.css" rel="stylesheet" type="text/css">
<script src="https://pv.sohu.com/cityjson?ie=utf-8"></script>
<script src="https://code.createjs.com/1.0.0/createjs.min.js"></script>
<script src="https://passport.cnblogs.com/scripts/jsencrypt.min.js"></script>
<link href="https://cdn.staticfile.org/twitter-bootstrap/5.1.1/css/bootstrap.min.css" rel="stylesheet">
<script src="https://cdn.staticfile.org/twitter-bootstrap/5.1.1/js/bootstrap.bundle.min.js"></script>
<script src="https://cdn.bootcdn.net/ajax/libs/jquery/3.6.0/jquery.min.js"></script>
</head>
<body onLoad="init()" oncontextmenu=self.event.returnValue=false>
<div id="GameScoreLayer" class="BBOX SHADE bgc1" style="display:none;">
<div style="padding:5%;margin-top: 200px;background-color: rgba(125, 181, 216, 0.3);">
<div id="GameScoreLayer-text"></div>
<div id="GameScoreLayer-CPS" style="margin:5px 0;"></div>
<div id="GameScoreLayer-score" style="margin:5px 0;">得分</div>
<div id="GameScoreLayer-bast" style="margin:5px 0">最佳</div>
<button type="button" class="btn btn-secondary btn-lg" id="replay" onclick="replayBtn()">重来</button>
<button type="button" class="btn btn-secondary btn-lg" onclick="window.location.reload()">主页</button>
<button type="button" class="btn btn-secondary btn-lg" onclick="window.location.href='https://github.com/arcxingye/EatKano'">开源</button>
</div>
</div>
</div>
<div id="welcome" class="SHADE BOX-M">
<div class="welcome-bg FILL"></div>
<div class="FILL BOX-M" style="position:absolute;top:0;left:0;right:0;bottom:0;z-index:5;">
<div style="margin:0 8% 0 9%;">
<div style="font-size:2.6em; color:#FEF002;">新概念音游</div><br />
<div id="desc" style="display: block;font-size:2.2em; color:#fff; line-height:1.5em;">
从最底下的开始<br />
看你能得多少分<br />
</div>
<br />
<div id="btn_group" style="display: block;">
<a class="btn btn-primary btn-lg" onclick="readyBtn()">开始游戏</a>
<br/><br/>
<div class="dropdown">
<a class="btn btn-secondary btn-lg" href="javascript: void(0);" role="button" id="mode" data-bs-toggle="dropdown" aria-expanded="false">普通模式</a>
<ul class="dropdown-menu" aria-labelledby="mode">
<li><a class="dropdown-item" onclick="changeMode(MODE_NORMAL)">普通模式</a></li>
<li><a class="dropdown-item" onclick="changeMode(MODE_ENDLESS)">无尽模式</a></li>
<li><a class="dropdown-item" onclick="changeMode(MODE_PRACTICE)">练习模式</a></li>
</ul>
</div>
<br/>
<a class="btn btn-secondary btn-lg" onclick="show_setting()">游戏设置</a>
</div>
<div id="setting" style="display: none;">
<div class="container mb-3">
<input type="button" class="btn btn-secondary btn-lg" onclick="getClickBeforeImage()" value="设置点击前的图" style="left: 0">
<input type="file" id="click-before-image" accept="image/*" style="display: none;" onchange="saveClickBeforeImage()">
<input type="button" class="btn btn-secondary btn-lg" onclick="getClickAfterImage()" value="设置点击后的图" style="right: 0">
<input type="file" id="click-after-image" accept="image/*" style="display: none;" onchange="saveClickAfterImage()">
</div>
<div class="input-group mb-3">
<div class="input-group-prepend">
<span class="input-group-text">标题</span>
</div>
<input type="text" id="title" class="form-control" placeholder="吃掉小鹿乃">
</div>
<div class="input-group mb-3">
<div class="input-group-prepend">
<span class="input-group-text">按键</span>
</div>
<input type="text" id="keyboard" class="form-control" maxlength=4 placeholder="默认为DFJK">
</div>
<div class="input-group mb-3">
<div class="input-group-prepend">
<span class="input-group-text">时间</span>
</div>
<input type="text" id="gameTime" class="form-control" maxlength=4 placeholder="默认为20秒">
</div>
<!-- 此为无排行榜版本,隐藏了名字留言 -->
<div class="input-group mb-3" style="display: none;">
<div class="input-group-prepend">
<span class="input-group-text">名字</span>
</div>
<input type="text" id="username" class="form-control" maxlength=8 placeholder="用于纪录排行(特殊字符会被过滤)">
</div>
<div class="input-group mb-3" style="display: none;">
<div class="input-group-prepend">
<span class="input-group-text">留言</span>
</div>
<input type="text" id="message" class="form-control" maxlength=50 placeholder="禁广告/脏话(本项可不填)">
</div>
<button type="button" class="btn btn-secondary btn-lg" onclick="show_btn();save_cookie();">完成</button>
</div>
</div>
</div>
</div>
<script src="./static/index.js"></script>
</body>
</html>