forked from mvasigh/intro-web-workers
-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.html
43 lines (39 loc) · 1.2 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
<!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>Basic Web Workers Example</title>
<link rel="stylesheet" type="text/css" href="./styles.css" />
</head>
<body>
<h1 class="title">Horribly Inefficient Bouncy Fibonacci Calculator</h1>
<p id="display">Enter a position to calculate</p>
<canvas id="canvas" height="300"></canvas>
<form id="input-form" class="input-form">
<div>
<input type="radio" id="sync" name="mode" value="sync" checked />
<label for="sync">Blocking</label>
<input type="radio" id="async" name="mode" value="async" />
<label for="async">Non-blocking (Worker)</label>
</div>
<input
id="input"
type="number"
min="0"
step="1"
placeholder="Enter a position"
autocomplete="off"
required
/>
<button>Calculate</button>
</form>
<p>
<a href="https://github.com/mvasigh/intro-web-workers"
>Fork me on GitHub</a
>
</p>
<script src="./src/index.js"></script>
</body>
</html>