67 lines
2.3 KiB
HTML
67 lines
2.3 KiB
HTML
<!DOCTYPE html>
|
|
<html lang="en">
|
|
<head>
|
|
<meta charset="utf-8" />
|
|
<meta name="viewport" content="width=device-width, initial-scale=1" />
|
|
<meta name="author" content="Felix W. Dekker" />
|
|
<meta name="application-name" content="Swinemeeper" />
|
|
<meta name="description" content="Just Minesweeper!" />
|
|
<meta name="theme-color" content="#0033cc" />
|
|
|
|
<title>Swinemeeper</title>
|
|
<link rel="stylesheet" href="https://fonts.googleapis.com/css?family=Roboto:300,300italic,700,700italic"
|
|
crossorigin="anonymous" />
|
|
</head>
|
|
<body>
|
|
<noscript>
|
|
<span style="color: red; font-weight: bold;">
|
|
This website does not function if JavaScript is disabled.
|
|
Please check the <a href="https://www.enable-javascript.com/">
|
|
instructions on how to enable JavaScript in your web browser</a>.
|
|
</span>
|
|
</noscript>
|
|
<main style="display: none;">
|
|
<div id="nav"></div>
|
|
<div id="contents">
|
|
<div id="header"></div>
|
|
|
|
<section class="container">
|
|
<!-- Field -->
|
|
<canvas id="canvas" width="500" height="500"></canvas>
|
|
<span id="counter">0</span>
|
|
<br />
|
|
|
|
<!-- Settings -->
|
|
<form id="settingsForm">
|
|
<label for="settingsWidth">Width</label>
|
|
<input type="number" id="settingsWidth" value="10" />
|
|
|
|
<label for="settingsHeight">Height</label>
|
|
<input type="number" id="settingsHeight" value="10" />
|
|
|
|
<label for="settingsMines">Mines</label>
|
|
<input type="number" id="settingsMines" value="10" />
|
|
|
|
<label for="settingsSeed">Seed</label>
|
|
<input type="number" id="settingsSeed" value="" />
|
|
|
|
<button>Play</button>
|
|
</form>
|
|
|
|
<!-- Log -->
|
|
<label for="logArea">Log</label>
|
|
<textarea id="logArea" cols="80" rows="20" disabled></textarea>
|
|
</section>
|
|
</div>
|
|
<div id="footer"></div>
|
|
</main>
|
|
|
|
|
|
<!-- Scripts -->
|
|
<script src="https://cdnjs.cloudflare.com/ajax/libs/random-js/1.0.8/random.min.js"
|
|
integrity="sha512-C/21kASTZDv173aY5ERBPWuV9JVne9nhII/ZA7NIGhuPVCtGK5WnD6wzQ7dlQajXvu3003cojqouByxh+Fh3kg=="
|
|
crossorigin="anonymous"></script>
|
|
<script src="bundle.js"></script>
|
|
</body>
|
|
</html>
|