This repository has been archived on 2024-09-11. You can view files and clone it, but cannot push or open issues or pull requests.
Files
IT2/html/tasks/chapter_10/snake/oppgave.html
2020-02-20 10:32:07 +01:00

31 lines
894 B
HTML
Executable File

<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<meta http-equiv="X-UA-Compatible" content="ie=edge" />
<title>Snake</title>
<link rel="stylesheet" href="../../../../resources/css/main.css" />
<script async src="./script.js"></script>
</head>
<body>
<h1>Snake</h1>
<div class="center">
<canvas id="game"></canvas>
<button class="big" id="start">Start game</button>
<button class="big" id="reset">Reset</button>
score: <span id="score"></span> Highscore: <span id="highscore"></span>
<form id="pixelAmountForm">
<label for="pixelAmount">Size of map:</label>
<input type="number" id="pixelAmount" min="5" max="40" value="20">
<input type="submit" value="Apply">
</form>
</div>
</body>
</html>