-
Notifications
You must be signed in to change notification settings - Fork 3
/
index.html
72 lines (55 loc) · 1.55 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
67
68
69
70
71
72
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
<title>Track Focus Demo Page</title>
<link rel="stylesheet" href="dest/stylesheets/index.css">
</head>
<body>
<form class="container">
<p>
<a href="#">A Link</a> <a href="#">Another Link</a> <a href="#">One more Link</a>
</p>
<p>
<input type="text" placeholder="A text input">
</p>
<p>
<textarea rows="7" placeholder="A textarea"></textarea>
</p>
<p>
<select>
<option>1</option>
<option>2</option>
<option>3</option>
<option>4</option>
<option>5</option>
</select>
</p>
<p>
<label><input type="checkbox"> A checkbox</label>
</p>
<p>
<label><input type="radio" name="radio"> A radio button</label><br>
<label><input type="radio" name="radio"> A radio button</label>
</p>
<p>
<button class="button--default">A Button</button>
<input class="button--primary" type="submit" value="A Submit Input">
</p>
</form>
<script src="dest/javascripts/polyfills.js"></script>
<script src="dest/javascripts/track-focus.js"></script>
<script>
var blockActions = function() { return false; };
var forms = document.getElementsByTagName('form');
for (var i = 0, len = forms.length; i < len; i++) {
forms[i].onsubmit = blockActions;
}
var links = document.getElementsByTagName('a');
for (var i = 0, len = links.length; i < len; i++) {
links[i].onclick = blockActions;
}
</script>
</body>
</html>