blob: 546d0f8eb70743744deb67ad55995f2c60ec9dfa (
plain)
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
106
107
108
109
110
|
<!DOCTYPE html>
<html>
<head>
<title>cacharle - minesweeper</title>
<link rel="stylesheet" type="text/css" href="../../style.css"/>
<meta charset="utf-8"/>
<link rel="icon" type="image/png" href="../../favicon.png" />
<style>
h1 {
text-align: center;
}
td {
padding: 0px;
}
table {
margin: auto;
margin-top: 0%;
margin-bottom: 5%;
border-collapse: collapse;
border-spacing: 0px;
}
table td {
width: 2.5em;
height: 2.5em;
}
table button {
display: block;
background: lightgrey;
margin: 0px;
width: 100%;
height: 100%;
text-align: center;
font-size: 1.6em;
border-width: 6px;
border-style: outset;
border-radius: 0px;
border-color: grey;
}
table button:hover {
background: forestgreen;
}
table button.visited {
background: lightgrey;
border-style: solid;
border-width: 1px;
}
button {
font-weight: bold;
}
label,
input {
display: inline-block;
}
label {
width: 13%;
text-align: right;
}
input {
width: 40%;
margin: 0px;
}
button.game-state {
float: right;
margin-right: 20%;
font-size: 2em;
text-transform: uppercase;
}
#minesweeper-timer {
display: block;
font-weight: bolder;
text-align: center;
}
</style>
</head>
<body><div id="page-wrapper">
<h1>minesweeper</h1>
<table id="minesweeper-table">
</table>
<div id="minesweeper-settings">
<button id="minesweeper-start" class="game-state">start</button>
<div>
<label for="width">width</label>
<input id="minesweeper-width" name="width" type="range" min="3" max="20" value="10"/>
</div>
<div>
<label for="height">height</label>
<input id="minesweeper-height" name="height" type="range" min="3" max="20" value="10"/>
</div>
<div>
<label for="mine-rate">mine rate</label>
<input id="minesweeper-mine-rate" name="mine-rate" type="range" min="0" max="100" value="20"/>
</div>
</div>
<div id="minesweeper-game-info" hidden>
<button id="minesweeper-stop" class="game-state">stop</button>
<div id="minesweeper-timer">timer</div>
</div>
</div></body>
<script src="script.js" type="text/javascript"></script>
</html>
|