-
Notifications
You must be signed in to change notification settings - Fork 0
/
minesweeper.html
95 lines (95 loc) · 2.09 KB
/
minesweeper.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
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8" />
<title>Minesweeper</title>
<style>
.intro {
margin: 5px 0;
}
table {
border-collapse: collapse;
margin: 5px 0;
}
td {
border: 1px solid #bbb;
text-align: center;
line-height: 20px;
width: 20px;
height: 20px;
background: #222;
}
td.opened {
background: white;
}
td.flag {
background: red;
}
td.question {
background: orange;
}
td.bombs {
background: grey;
}
thead tr td {
background: none;
}
.inputs {
margin: 5px 0;
}
.inputs label {
width: 80px;
background: green;
}
td.hoverAnimation {
-o-animation: fadeIt 0.3s ease-in-out;
animation: fadeIt 0.3s ease-in-out;
}
@-o-keyframes fadeIt {
0% {
background-color: #222;
}
50% {
background-color: #ad301b;
}
100% {
background-color: #222;
}
}
@keyframes fadeIt {
0% {
background-color: #222;
}
50% {
background-color: #ad301b;
}
100% {
background-color: #222;
}
}
</style>
</head>
<body>
<div style="color: orange; padding: 10px;">
Go to the main page <a href="index.html">Click!!</a>
</div>
<div class="intro">
Add how many row, column and bombs you want.</br>
And then, Click start button!
</div>
<input id="hor" type="number" placeholder="row" value="10" />
<input id="ver" type="number" placeholder="column" value="10" />
<input id="bomb" type="number" placeholder="bombs" value="20" />
<button id="exec">STRAT</button>
<div id="result"></div>
<table id="table">
<thead>
<tr>
<td colspan="3"><span id="timer">0</span> left</td>
</tr>
</thead>
<tbody></tbody>
</table>
<script src="minesweeper.js"></script>
</body>
</html>