This repository has been archived by the owner on May 1, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex.html
53 lines (53 loc) · 2.54 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
<!DOCTYPE html>
<html lang="zh-cn">
<head>
<meta charset="utf-8" />
<meta http-equiv="X-UA-Compatible" content="IE=edge" />
<meta name="viewport" content="width=device-width,initial-scale=1.0,minimum-scale=1.0,maximum-scale=1.0,user-scalable=0,shrink-to-fit=no" />
<meta name="theme-color" content="#5C6BE0" />
<meta name="format-detection" content="telephone=no">
<meta name="description" content="A number-guessing game.">
<meta name="apple-mobile-web-app-capable" content="yes">
<link rel="icon" href="512.png" type="image/x-icon" />
<link rel="apple-touch-icon" href="512.png" />
<link rel="manifest" href="manifest.json" />
<link rel="stylesheet" href="main.min.css" />
<title>guess</title>
</head>
<body>
<div id="root">
<h1 id="about" onclick="about()">guess!</h1>
<div id="mode-select">
<label><input id="four-checkbox" type="radio" checked name="mode" />4数字</label> 
<label><input id="six-checkbox" type="radio" name="mode" />6数字</label> 
<button id="start-game" onclick="startGame()">开始游戏</button>
</div>
<div id="game" hidden>
<div id="inputs">
<input id="number1" /> 
<input id="number2" /> 
<input id="number3" /> 
<input id="number4" /> 
<input id="number5" hidden /> 
<input id="number6" hidden />
</div>
<div id="panel-container">
<div id="left">
<div id="errors">目前无错误</div>
<div id="oneoutput">
<div>你猜到了 <span id="one-allcorrect">0</span> 个位置与数值均相同的答案,</div>
<div>猜到了 <span id="one-onecorrect">0</span> 个数值相同的答案,</div>
<div>你还有 <span id="chances">0</span> 次机会,加油啊</div>
</div>
</div>
<div id="right">
<div id="history">历史记录见下表:</div>
</div>
</div>
<textarea id="output" readonly></textarea>
</div>
</div>
</body>
<script src="luery.min.js"></script>
<script src="main.min.js"></script>
</html>