-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathindex.html
107 lines (104 loc) · 3.33 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
106
107
<!--
Zen Minesweeper - a lightweight JS implmentation of Minesweeper for the browser
Copyright (C) 2024 Henry Oberholtzer
This program is free software: you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation, either version 3 of the License, or
(at your option) any later version.
This program is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
GNU General Public License for more details.
You should have received a copy of the GNU General Public License
along with this program. If not, see <http://www.gnu.org/licenses/>. -->
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8" />
<meta
name="viewport"
content="width=device-width, initial-scale=1.0" />
<link
rel="stylesheet"
type="text/css"
href="./css/styles.css" />
<link
rel="icon"
type="image/x-icon"
href="/assets/svgs/mine.svg" />
<title>Zen Minesweeper</title>
</head>
<body>
<div id="main">
<header id="header">
<svg
width="32"
height="32"
viewBox="0 0 32 32"
version="1.1"
id="mineLogo"
title="Reset!"
xml:space="preserve"
xmlns="http://www.w3.org/2000/svg"
xmlns:svg="http://www.w3.org/2000/svg">
<defs id="defs1" />
<g
id="layer2"
style="display: inline">
<path
id="mine"
style="
fill-rule: evenodd;
stroke-width: 8;
stroke-linecap: round;
paint-order: stroke fill markers;
"
d="M 15,3 V 7 H 13 V 8 H 11 V 9 H 10 V 8 H 9 V 7 H 7 v 2 h 1 v 1 h 1 v 1 H 8 v 2 H 7 v 2 H 3 v 2 h 4 v 2 h 1 v 2 h 1 v 1 H 8 v 1 H 7 v 2 h 2 v -1 h 1 v -1 h 1 v 1 h 2 v 1 h 2 v 4 h 2 v -4 h 2 v -1 h 2 v -1 h 1 v 1 h 1 v 1 h 2 v -2 h -1 v -1 h -1 v -1 h 1 v -2 h 1 v -2 h 4 v -2 h -4 v -2 h -1 v -2 h -1 v -1 h 1 V 9 h 1 V 7 H 23 V 8 H 22 V 9 H 21 V 8 H 19 V 7 H 17 V 3 Z" />
<path
id="highlight"
style="
fill: #f9f9f9;
fill-rule: evenodd;
stroke: none;
stroke-width: 8;
stroke-linecap: round;
paint-order: stroke fill markers;
"
d="m 12,10 v 1 h -1 v 1 h -1 v 1 h 1 v 1 h 1 v 1 h 1 v -1 h 1 v -1 h 1 v -1 h -1 v -1 h -1 v -1 z" />
</g>
</svg><p id="title">zen minesweeper | <span
class="dynamic"
id="mine-count"
>0</span
> | <span
class="dynamic"
id="timer"
>0</span
></p>
</header>
<div id="game"></div>
<footer id="footer">
<form id="settings">
<label class="hiddenElement" for="width-input">width:</label>
<input type="text" id="width-input"></input>
<p id="by">by</p>
<label class="hiddenElement" for="height-input">height:</label>
<input type="text" id="height-input"></input>
<select id="difficulty">
<option value="1">less mines</option>
<option value="2">more mines</option>
<option value="3">tooo many</option>
</select>
<button id="generate">new</button>
<button id="defaults">defaults</button>
</form>
<div id="about">
2024 <a href="https://www.henryoberholtzer.com">henry oberholtzer</a>
</div>
</footer>
</div>
</body>
<script
src="./scripts/zen-minesweeper.js"
type="module"></script>
</html>