summaryrefslogtreecommitdiff
path: root/index.html
blob: 399671fa131ec013f24b7222221d8446350762cc (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
<!DOCTYPE html>
<html>

<head>
	<title>fractiform</title>
	<style>
	body {
		font-family: sans-serif;
		background-color: black;
		margin: 0;
		padding: 0;
		color: white;
		overflow: hidden;
	}
	
	#canvas {
		width: 100vw;
		height: 100vh;
	}
	
	.error {
		color: red;
	}
	
	#error-dialog {
		border: 2px solid red;
		background-color: black;
	}
	#error-dialog button {
		border: 2px solid white;
		background-color: black;
		color: white;
	}
	button:focus {
		outline: 2px solid #0a0;
	}
	</style>
	<meta charset="utf-8">
	<meta content="width=device-width,initial-scale=1" name="viewport">
</head>

<body>
<script src="fractiform.js" type="text/javascript"></script>

<canvas id="canvas">
  Your browser doesn't support &lt;canvas&gt;<br>
  This page won't work for you.
</canvas>

<dialog id="error-dialog">
  <pre id="error-message" class="error"></pre>
  <form method="dialog">
    <button>OK</button>
  </form>
</dialog>

</body>
</html>