-
Notifications
You must be signed in to change notification settings - Fork 0
/
playground.html
230 lines (217 loc) · 9.74 KB
/
playground.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
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
<title>tabwrap playground</title>
<script type="text/javascript" src="./playground-dist.js" defer></script>
<link rel="stylesheet" type="text/css" href="./playground.css">
</head>
<body>
<main>
<h1>tabwrap playground</h1>
<div id="playground-instructions">
<!-- these instructions will be removed on page load if playground-dist.js have been generated -->
npm run playground
</div>
<section data-tabwrap data-label="normal inputs">
<p>
<!-- https://ipsum-community.github.io/hodoripsum/ -->
Hodor, hodor. Hodor. Hodor hodor HODOR! Hodor. Hodor, hodor. Hodor. Hodor?
Hodor hodor. Hodor hodor. Hodor hodor! Hodor hodor HODOR! Hodor. Hodor hodor!
</p>
<p>
<kbd>shift + tab</kbd> should work while focus is on this text.
</p>
<input type="text" placeholder="normal input">
<hr>
<input type="text" placeholder="normal input">
<hr>
<input type="text" placeholder="normal input">
<p>
<!-- http://skateipsum.com/ -->
Rad 540 quarter pipe bail. Coping deck Chris Pastras airwalk casper.
Cab flip crail grab g-turn rocket air. Shoveit nosebone gap steps.
Sacto coper camel back slam nose-bump. Airwalk gap boned out speed wobbles.
Kingpin skater blunt wax. Hurricane transfer smith grind nose-bump
Lance Mountain. Pop shove-it 180 skate or die Julien Stranger masonite.
</p>
</section>
<section data-tabwrap data-label="first disabled">
<p>
<!-- https://baconipsum.com/ -->
Cow boudin corned beef turducken tenderloin tail spare ribs salami prosciutto andouille.
Salami drumstick strip steak, kielbasa buffalo burgdoggen tail pastrami tongue brisket.
Shankle tongue sausage ham. Bresaola fatback pork sirloin, tongue spare ribs
short ribs andouille shoulder shank beef brisket hamburger.
</p>
<p>
<kbd>shift + tab</kbd> should work while focus is on this text.
</p>
<input type="text" disabled placeholder="disabled input">
<hr>
<input type="text" placeholder="normal input">
<hr>
<input type="text" placeholder="normal input">
<hr>
<select>
<option>normal select</option>
</select>
<p>
<!-- https://satoristudio.net/delorean-ipsum/ -->
See, there's Biff out there waxing it right now. Now, Biff, I wanna make sure that we
get two coats of wax this time, not just one. Mom, is that you?
Right. Right. Lou, gimme a milk, chocolate. Lorraine, my density has popped me to you.
Marty, you're acting like you haven't seen me in a week.
</p>
</section>
<section data-label="not wrapping">
<p>
section without tabwrap
</p>
<input type="text" placeholder="normal input">
<hr>
<input type="text" disabled placeholder="disabled input">
</section>
<section data-tabwrap data-label="no tabbable elements">
<p>
section with tabwrap but without any tabbable elements
</p>
<p>
<!-- https://spaceipsum.com/pale-blue-dot/ -->
The Earth is the only world known so far to harbor life. There is nowhere else,
at least in the near future, to which our species could migrate.
Visit, yes. Settle, not yet. Like it or not, for the moment the Earth is where we make our stand.
</p>
</section>
<section data-tabwrap data-label="hidden elements">
<p>
<!-- https://slipsum.com/ -->
Well, the way they make shows is, they make one show. That show's called a pilot.
Then they show that show to the people who make shows, and on the strength of
that one show they decide if they're going to make more shows.
Some pilots get picked and become television programs.
Some don't, become nothing. She starred in one of the ones that became nothing.
</p>
<input type="text" placeholder="normal input">
<hr>
<input type="text" placeholder="normal input">
<hr>
<input type="text" placeholder="normal input">
<hr>
<input type="text" hidden>
<pre><input type="text" hidden></pre>
<hr>
<div style="display: none;">
<input type="text">
</div>
<pre>
<div style="display: none;">
<input type="text">
</div></pre>
<hr>
<input type="text" style="display: none;">
<pre><input type="text" style="display: none;"></pre>
<hr>
<div hidden>
<input type="text">
</div>
<pre>
<div hidden>
<input type="text">
</div></pre>
<p>
<!-- https://www.pommyipsum.com/ -->
Pommy ipsum red telephone box a week on Sunday come hither easy peasy jolly good,
fish fingers and custard working class bloke made a pig's ear of it Sherlock.
Working class done up like a kipper one feels that baffled could murder a
pint gobsmacked, jolly hockey sticks The Hounds of Baskerville ridiculous.
Air one's dirty linen a bit wonky nowt done up like a kipper her
Majesty's pleasure, rumpy pumpy lad unhand me sir.
Southeners scally alright geezer have a bash upper class,
ridicule see a man about a dog well chuffed, a right royal knees up
the black death a tad. Victoria sponge cake it's me peepers on
the beat scrubber numpty indeed, Victoria sponge cake punter
Sonic Screwdriver good old fashioned knees up.
</p>
</section>
<section data-tabwrap data-label="input type=hidden">
<p>
<!-- http://www.buseyipsum.com/ -->
I wrestled a bear once. A 750lbs black bear. The best way to communicate is compatible.
Compatible communication is listening with open ears and an open mind, and not
being fearful or judgemental about what you're hearing.You gotta go
through it to see there ain't nothing to it.
</p>
<input type="text" placeholder="normal input">
<hr>
<input type="text" placeholder="normal input">
<hr>
<input type="hidden">
<pre>
<input type="hidden"></pre>
</section>
<section data-tabwrap data-label="single input">
<p>
<!-- https://ipsum-community.github.io/hodoripsum/ -->
Hodor, hodor. Hodor. Hodor hodor HODOR! Hodor. Hodor, hodor. Hodor. Hodor?
Hodor hodor. Hodor hodor. Hodor hodor! Hodor hodor HODOR! Hodor. Hodor hodor!
</p>
<input type="text" placeholder="normal input">
<p>
The focus should be trapped on this single input when tabbing.
</p>
</section>
<section data-tabwrap data-label="single untabbable input">
<input type="text" placeholder="normal input" tabindex="-1">
<p>
The focus should be released when tabbing.
</p>
</section>
<section data-tabwrap data-label="anchor with href">
<input type="text" placeholder="normal input">
<hr>
<input type="text" placeholder="normal input">
<hr>
<a href="#"><a> with href</a>
</section>
<section data-tabwrap data-label="anchor without href">
<input type="text" placeholder="normal input">
<hr>
<input type="text" placeholder="normal input">
<hr>
<a><a> without href (should not be tabbed to)</a>
</section>
<section data-tabwrap data-label="div with tabindex">
<a href="#"><a> with href</a>
<hr>
<input type="text" placeholder="normal input">
<hr>
<input type="text" placeholder="normal input">
<hr>
<div tabindex="0">
<div> with tabindex="0"
</div>
</section>
<section data-tabwrap data-label="grid with custom taborder" class="grid-with-custom-taborder">
<p>
The element order and taborder are not the same here, but the tabbing should still be top to bottom.
</p>
<div class="grid">
<div data-grid-area="tre">
<input type="text" tabindex="3" placeholder="tabindex 3">
</div>
<div data-grid-area="uno">
<input type="text" tabindex="1" placeholder="tabindex 1">
</div>
<div data-grid-area="quattro">
<input type="text" tabindex="4" placeholder="tabindex 4">
</div>
<div data-grid-area="zwei">
<input type="text" tabindex="2" placeholder="tabindex 2">
</div>
</div>
</section>
</main>
</body>
</html>