-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.html
66 lines (65 loc) · 3.18 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
<!doctype html>
<html lang="en-US">
<head>
<title>Fingerspelling Practice</title>
<meta name="viewport" content="width=device-width, initial-scale=1">
<meta name="theme-color" content="#000000" />
<meta name="description" content="A basic app for practicing ASL fingerspelling. Hand images from Bill Vicars' amazing ASL resource, lifeprint.com." />
<meta charset="UTF-8">
<link rel="stylesheet" type="text/css" href="styles.css">
<link rel="manifest" href="manifest.json">
</head>
<body>
<main>
<!-- TODO consider the language used for the ids and names here. -->
<form id="answer-form" class="answer-form" name="answer-form">
<label for="answer-input" class="sr-only">Enter answer:</label>
<input id="answer-input"
name="answer"
type="text"
autocomplete="off"
autocapitalize="off"
placeholder="Answer here"
disabled />
<button id="submit-answer" type="submit" class="submit-answer" name="submit-answer" disabled>⏎</button>
</form>
<div class="control-button-container">
<button id="retry-button" class="control-button" disabled>Retry</button>
<button id="next-word-button" class="control-button" autofocus disabled>Next</button>
</div>
<div class="aspect-ratio-box">
<div class="aspect-ratio-box-inside">
<div id="message-wrapper" class="message flex-centered" tabindex="0">
<div class="flex-centered-vertical">
<!-- TODO check these aria-labels. Not sure what they should convey -->
<p id="message-emoji" class="emoji" role="img" aria-label="ghost">
👻
</p>
<p id="message-text">Loading...</p>
</div>
</div>
<div id="image-wrapper" class="single-letter hidden"></div>
</div>
</div>
<hr />
<form id="adjust-speed-form" name="adjust-speed-form">
<label for="adjust-speed-input">Adjust Interval (millis):</label>
<input id="adjust-speed-input" type="number" min="50" max="2000" step="50" />
<button id="adjust-speed-button" name="adjust-speed" type="submit">Update</button>
</form>
<footer>
Hand images from <a href="https://lifeprint.com">Lifeprint.com</a>.
</footer>
</main>
<script type="text/javascript" src="fingerspelling.js"></script>
<script type="text/javascript">
if ("serviceWorker" in navigator) {
window.addEventListener("load", function(event) {
navigator.serviceWorker.register("sw.js")
.then(registration => console.log("registered service worker", registration))
.catch(error => console.log("error registering service worker", error));
});
}
</script>
</body>
</html>