forked from arcxingye/EatKano
-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.php
89 lines (86 loc) · 5.26 KB
/
index.php
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
<!DOCTYPE html>
<html>
<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 rel="stylesheet" href="https://stackpath.bootstrapcdn.com/bootstrap/4.3.1/css/bootstrap.min.css" integrity="sha384-ggOyR0iXCbMQv3Xipma34MD+dH/1fQ784/j6cY/iJTQUOhcWr7x9JvoRxT2MZw1T" crossorigin="anonymous">
<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>
<?php
session_start();
$str = substr(str_shuffle('ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz1234567890'), 0, 8);
$_SESSION['t'] = $str;
echo "<script>var tj='" . $str . "'</script>";
?>
<script src="./static/index.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-score" style="margin:10px 0;">得分</div>
<div id="GameScoreLayer-bast">最佳</div>
<button type="button" class="btn btn-secondary btn-lg" onclick="replayBtn()">重来</button>
<button type="button" class="btn btn-secondary btn-lg" onclick="goRank();">排行</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 />
看你20秒多少分<br />
</div>
<br />
<div id="btn_group" style="display: block;">
<button type="button" id="ready-btn" class="btn btn-primary loading btn-lg">点击开始</button>
<br /><br />
<button type="button" class="btn btn-secondary btn-lg" onclick="show_setting()">游戏设置</button>
</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" id="basic-addon1">标题</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" id="basic-addon1">按键</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" id="basic-addon1">名字</span>
</div>
<input type="text" id="username" class="form-control" maxlength=8 placeholder="用于纪录排行(特殊字符会被过滤)">
</div>
<div class="input-group mb-3">
<div class="input-group-prepend">
<span class="input-group-text" id="basic-addon1">留言</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>
</body>
</html>