-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex.html
79 lines (75 loc) · 2.95 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
73
74
75
76
77
78
79
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<title>Demo | rovueing tabindex</title>
<meta name="viewport"
content="user-scalable=no, width=device-width, initial-scale=1, maximum-scale=1, viewport-fit=cover">
<meta name="theme-color" content="#FAFAFA">
<script type="module">
import { createApp } from "vue/dist/vue.esm-bundler.js";
import { RovueingTabindex } from "./dist/rovueing-tabindex.esm.js";
const App = document.querySelector('#app');
const app = createApp(App);
app.use(RovueingTabindex);
app.mount("#app");
</script>
<link rel="stylesheet" href="./styles.css">
</head>
<body>
<div id="app">
<main>
<section>
<h2>Foods</h2>
<ul class="list" v-rove>
<button v-rove-focusable>Frittata</button>
<button v-rove-focusable>Carbonara</button>
<button v-rove-focusable>Lamb Chops</button>
<button v-rove-focusable>Chow Mein</button>
</ul>
</section>
<hr />
<section>
<h2>Animals</h2>
<ul class="list" v-rove>
<li>
<input type="checkbox" id="cheetah" name="cheetah" v-rove-focusable />
<label for="cheetah">Cheetah</label>
</li>
<li>
<input type="checkbox" id="sheep" name="sheep" v-rove-focusable />
<label for="sheep">Sheep</label>
</li>
<li>
<input type="checkbox" id="dog" name="dog" v-rove-focusable />
<label for="dog">Dog</label>
</li>
</ul>
</section>
<hr />
<section>
<h2>People</h2>
<ul class="list" v-rove>
<li>
<input type="radio" id="robert-de-niro" name="people" v-rove-focusable />
<label for="robert-de-niro">Robert De Niro</label>
</li>
<li>
<input type="radio" id="oprah-winfrey" name="people" v-rove-focusable />
<label for="oprah-winfrey">Oprah Winfrey</label>
</li>
<li>
<input type="radio" id="jim-carrey" name="people" v-rove-focusable />
<label for="jim-carrey">Jim Carrey</label>
</li>
<li>
<input type="radio" id="anne-hathaway" name="people" v-rove-focusable />
<label for="anne-hathaway">Anne Hathaway</label>
</li>
</ul>
</section>
</main>
</div>
</body>
</html>