forked from bobbijvoet/a11y
-
Notifications
You must be signed in to change notification settings - Fork 0
/
table.html
368 lines (323 loc) · 13.3 KB
/
table.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
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=5.0, minimum-scale=0.5, user-scalable=yes">
<title>Good tables - A11Y Champions Developer Training</title>
<link href="https://fonts.googleapis.com/css?family=Roboto:400,400i,500,700,900" rel="stylesheet">
<link rel="stylesheet" href="styles/libs/bootstrap/bootstrap.processed.css">
<link rel="stylesheet" href="styles/style.processed.min.css">
<link rel="stylesheet" href="https://www.ing.nl/assets/web/ng/css/bb4d737d.the-guide-styles-responsive.min.css">
</head>
<body>
<header class="site-header" role="banner">
<div class="skip-links">
<a href="#main-menu">Skip to Main Menu</a>
<a href="#main-content">Skip to Main Content</a>
</div>
<div class="pipe-links bg-faded">
<div class="container pt-2 pb-1">
<ul class="list-inline m-0">
<li class="list-inline-item"><a href="http://bit.ly/a11y-dev-champs">Champ Lessons</a></li>
<li class="list-inline-item">Good / Bad</li>
<li class="list-inline-item"><a href="http://bit.ly/a11y-quiz">Quiz</a></li>
</ul>
</div>
</div>
<div class="navbar navbar-toggleable-md navbar-light">
<nav class="container" role="navigation" aria-labelledby="main-nav">
<div class="sr-only" id="main-nav">Main Menu</div>
<a href="#" class="navbar-brand">
<img class="avatar-img" src="https://s3-us-west-2.amazonaws.com/s.cdpn.io/1182308/a11y-logo.png" alt="Accessibility Portal">
</a>
<button class="navbar-toggler navbar-toggler-right" type="button" data-toggle="collapse" data-target="#navbarSupportedContent" aria-controls="navbarSupportedContent" aria-expanded="false">
<span class="navbar-toggler-icon"></span>
<span class="sr-only">Toggle main menu</span>
</button>
<div class="collapse navbar-collapse" id="navbarSupportedContent">
<div class="mr-auto">
<ul class="navbar-nav">
<li class="nav-item">
<a class="nav-link" href="index.html" id="main-menu">Home</a>
</li>
<li class="nav-item">
<a class="nav-link" href="article.html">Article</a>
</li>
<li class="nav-item">
<a class="nav-link" href="media.html">Media</a>
</li>
<li class="nav-item">
<a class="nav-link" href="request.html">Request</a>
</li>
<li class="nav-item active">
<a class="nav-link" href="table.html" aria-current="page">Tables <span class="sr-only">(current)</span></a>
<ul class="pagination pagination-navbar">
<li class="page-item"><a class="page-link active" href="table.html" aria-current="page">Good <span class="sr-only">(current)</span></a></li>
<li class="page-item"><a class="page-link" href="table-bad.html">Bad</a></li>
</ul>
</li>
</ul>
</div>
<nav class="form-inline my-2 my-lg-0" role="search">
<form>
<label class="sr-only" for="search">Search</label>
<input class="form-control mr-sm-2" type="text" id="search">
<button class="btn btn-tertiary search-button my-2 my-sm-0" type="submit">
<span class="icon icon-search icon-md text-orange" aria-hidden="true"></span>
<span class="sr-only">Search</span>
</button>
</form>
</nav>
</div>
</nav>
</div>
<div class="brandbar">
<div class="container">
<h1 class="heading-xl">Accessible Table Page</h1>
<div class="sr-only" id="second-nav">Secondary Menu</div>
<p class="lead">Good and Bad Demonstration</p>
</div>
</div>
</header>
<main role="main" id="main-content">
<section class="full-cover bg-faded" role="region" aria-labelledby="cards-main">
<div class="container">
<h2>One header</h2>
<div class="card">
<div class="card-block">
<div class="table-responsive">
<table class="table table-striped">
<caption class="heading-m">Your portfolio</caption>
<thead>
<tr>
<th scope="col">Date</th>
<th scope="col">Description</th>
<th scope="col">Division</th>
<th scope="col" class="text-right">Amount</th>
</tr>
</thead>
<tbody>
<tr>
<td>3-1-2014</td>
<td>
<div>BG-ING Dutch Fund</div>
</td>
<td>23,53%</td>
<td class="text-right">€ 40.000,00</td>
</tr>
<tr>
<td>16-1-2014</td>
<td>
<div>BGZD-Blackrock New Energy Fund</div>
</td>
<td>35,29%</td>
<td class="text-right">€ 60.000,00</td>
</tr>
<tr>
<td>20-1-2014</td>
<td>CV ANNEXUM MARMER PART 50.000</td>
<td>11,76%</td>
<td class="text-right">€ 20.000,00</td>
</tr>
</tbody>
</table>
</div>
</div>
</div>
<h2 class="mt-4">Two headers</h2>
<div class="card">
<div class="card-block">
<div class="table-responsive">
<table class="table table-striped">
<caption>Our portfolio</caption>
<thead>
<tr>
<th></th>
<th scope="col">Date</th>
<th scope="col">Description</th>
<th scope="col">Division</th>
<th scope="col" class="text-right">Amount</th>
</tr>
</thead>
<tfoot>
<tr>
<th scope="row" colspan="4">Total amount</th>
<td class="text-right">€ 170.000,00</td>
</tr>
</tfoot>
<tbody>
<tr>
<th scope="row">low</th>
<td>3-1-2014</td>
<td>BG-ING Dutch Fund</td>
<td>23,53%</td>
<td class="text-right">€ 40.000,00</td>
</tr>
<tr>
<th scope="row">mid</th>
<td>16-1-2014</td>
<td>BGZD-Blackrock New Energy Fund</td>
<td>35,29%</td>
<td class="text-right">€ 60.000,00</td>
</tr>
<tr>
<th scope="row">high</th>
<td>20-1-2014</td>
<td>CV ANNEXUM MARMER PART 50.000</td>
<td>11,76%</td>
<td class="text-right">€ 20.000,00</td>
</tr>
</tbody>
</table>
</div>
</div>
</div>
<h2 class="mt-4">Irregular headers</h2>
<div class="card">
<div class="card-block">
<div class="table-responsive">
<table class="table table-striped">
<caption>Their portfolio</caption>
<colgroup span="2"></colgroup>
<colgroup>
<col>
<col>
</colgroup>
<thead>
<tr>
<th scope="col">Date</th>
<th scope="col">Description</th>
<th scope="col">Division</th>
<th scope="col" class="text-right">Amount</th>
</tr>
<tr class="thead-sub">
<th scope="colgroup" colspan="2">Dividends and Coupons</th>
<th scope="col">Percentage <abbr class="percentage" title="tolerance">%</abbr></th>
<td></td>
</tr>
</thead>
<tfoot>
<tr>
<th scope="row" colspan="2">Total percentage</th>
<td colspan="2">100%</td>
</tr>
<tr>
<th scope="row" colspan="3">Total amount</th>
<td class="text-right">€ 170.000,00</td>
</tr>
</tfoot>
<tbody>
<tr>
<th scope="row">3-1-2014</th>
<td>BG-ING Dutch Fund</td>
<td>23,53%</td>
<td class="text-right">€ 40.000,00</td>
</tr>
<tr>
<th scope="row">16-1-2014</th>
<td>BGZD-Blackrock New Energy Fund</td>
<td>35,29%</td>
<td class="text-right">€ 60.000,00</td>
</tr>
<tr>
<th scope="row">20-1-2014</th>
<td>CV ANNEXUM MARMER PART 50.000</td>
<td>11,76%</td>
<td class="text-right">€ 20.000,00</td>
</tr>
</tbody>
</table>
</div>
</div>
</div>
<h2 class="mt-4">Irregular headers with headers</h2>
<div class="card">
<div class="card-block">
<div class="table-responsive">
<table class="table table-striped">
<caption>Combined portfolio</caption>
<thead>
<tr>
<th id="date">Date</th>
<th id="description">Description</th>
<th id="division">Division</th>
<th id="amount" class="text-right">Amount</th>
</tr>
<tr class="thead-sub">
<th id="dividends" colspan="2">Dividends and Coupons</th>
<th id="percentage">Percentage <abbr class="percentage" title="tolerance">%</abbr></th>
<td></td>
</tr>
</thead>
<tfoot>
<tr>
<th colspan="2" headers="total-percentage">
<div id="total-percentage">Total percentage</div>
</th>
<td colspan="2" headers="total-percentage">100%</td>
</tr>
<tr>
<th colspan="3" headers="total-amount">
<div id="total-amount">Total amount</div>
</th>
<td headers="total-amount" class="text-right">€ 170.000,00</td>
</tr>
</tfoot>
<tbody>
<tr>
<th id="date-1" headers="date dividends">3-1-2014</th>
<td headers="description dividends date-1">BG-ING Dutch Fund</td>
<td headers="division percentage date-1">23,53%</td>
<td headers="amount date-1" class="text-right date-1">€40.000,00</td>
</tr>
<tr>
<th id="date-2" headers="date dividends">16-1-2014</th>
<td headers="description dividends date-2">BGZD-Blackrock New Energy Fund</td>
<td headers="division percentage date-2">35,29%</td>
<td headers="amount date-2" class="text-right">€ 60.000,00</td>
</tr>
<tr>
<th id="date-3" headers="date dividends">20-1-2014</th>
<td headers="description dividends date-3">CV ANNEXUM MARMER PART 50.000</td>
<td headers="division percentage date-3">11,76%</td>
<td headers="amount date-3" class="text-right">€ 20.000,00</td>
</tr>
</tbody>
</table>
</div>
</div>
</div>
</div>
</section>
</main>
<footer class="full-cover site-footer bg-grey" role="contentinfo">
<div class="container">
<ul class="pipe-links list-inline mt-2 mb-3">
<li class="list-inline-item">
<a href="#">About A11Y</a>
</li>
<li class="list-inline-item">
<a href="#">A11Y in the Netherlands</a>
</li>
<li class="list-inline-item">
<a href="#">Save A11Y</a>
</li>
<li class="list-inline-item">
<a href="#">Privacy en cookies</a>
</li>
<li class="list-inline-item">
<a href="#">Disclaimer</a>
</li>
</ul>
</div>
<div class="footer-copyright py-2">
<p class="m-0">© 2017 Copyright</p>
</div>
</footer>
<script src="https://cdnjs.cloudflare.com/ajax/libs/jquery/3.1.1/jquery.min.js"></script>
<script src="https://cdnjs.cloudflare.com/ajax/libs/tether/1.4.0/js/tether.min.js"></script>
<script src="scripts/libs/bootstrap/bootstrap.js"></script>
<script src="scripts/script.js"></script>
<script src="scripts/videosub.js"></script>
</body>
</html>