/
javascript-eng.html
864 lines (836 loc) · 37.2 KB
/
javascript-eng.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
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
781
782
783
784
785
786
787
788
789
790
791
792
793
794
795
796
797
798
799
800
801
802
803
804
805
806
807
808
809
810
811
812
813
814
815
816
817
818
819
820
821
822
823
824
825
826
827
828
829
830
831
832
833
834
835
836
837
838
839
840
841
842
843
844
845
846
847
848
849
850
851
852
853
854
855
856
857
858
859
860
861
862
863
864
<!DOCTYPE html>
<!--[if IE 7]><html lang="en" class="no-js ie7"><![endif]-->
<!--[if IE 8]><html lang="en" class="no-js ie8"><![endif]-->
<!--[if gt IE 8]><!-->
<html lang="en" class="no-js">
<!--<![endif]-->
<head>
<meta charset="utf-8" />
<!-- Web Experience Toolkit (WET) / Boîte à outils de l'expérience Web (BOEW)
wet-boew.github.io/wet-boew/License-eng.txt / wet-boew.github.io/wet-boew/Licence-fra.txt -->
<title>JavaScript add-ons - Design guide - Working examples - Web Experience Toolkit (WET)</title>
<link rel="shortcut icon" href="../../dist/theme-wet-boew/images/favicon.ico" />
<meta name="description" content="English description / Description en anglais" />
<meta name="viewport" content="width=device-width, initial-scale=1" />
<!--[if lte IE 8]>
<script src="../../dist/js/jquery-ie.min.js"></script>
<script src="../../dist/js/polyfills/html5shiv-min.js"></script>
<link rel="stylesheet" href="../../dist/grids/css/util-ie-min.css" />
<link rel="stylesheet" href="../../dist/js/css/pe-ap-ie-min.css" />
<link rel="stylesheet" href="../../dist/theme-wet-boew/css/theme-ie-min.css" />
<noscript><link rel="stylesheet" href="../../dist/theme-wet-boew/css/theme-ns-ie-min.css" /></noscript>
<![endif]-->
<!--[if gt IE 8]><!-->
<script src="../../dist/js/jquery.min.js"></script>
<link rel="stylesheet" href="../../dist/grids/css/util-min.css" />
<link rel="stylesheet" href="../../dist/js/css/pe-ap-min.css" />
<link rel="stylesheet" href="../../dist/theme-wet-boew/css/theme-min.css" />
<noscript><link rel="stylesheet" href="../../dist/theme-wet-boew/css/theme-ns-min.css" /></noscript>
<!--<![endif]-->
<!-- CustomCSSStart -->
<!-- CustomCSSEnd -->
</head>
<body><div id="wb-body-sec">
<div id="wb-skip">
<ul id="wb-tphp">
<li id="wb-skip1"><a href="#wb-cont">Skip to main content</a></li>
<li id="wb-skip2"><a href="#wb-nav">Skip to footer</a></li>
</ul>
</div>
<div id="wb-head"><div id="wb-head-in"><header>
<!-- HeaderStart -->
<section><div id="wet-fullhd"><h2>Full-width header area</h2>
<div id="wet-fullhd-in">
<ul>
<li id="wet-fullhd-lang-2"><a href="#" lang="fr">Français</a></li>
<li id="wet-fullhd-lang-current">English</li>
</ul>
</div>
</div></section>
<div id="wet-bnr" role="banner"><div id="wet-bnr-in">
<div id="wet-title"><p id="wet-title-in"><a href="../../index-eng.html" lang="en"><object data="../../dist/theme-wet-boew/images/logo.svg" role="img" tabindex="-1" type="image/svg+xml"><img src="../../dist/theme-wet-boew/images/logo.png" alt="" /></object> <span>Web Experience Toolkit (WET) <small>Collaborative open source project led by the Government of Canada</small></span></a></p></div>
<section role="search"><div id="wet-srchbx"><h2>Search</h2>
<form action="#" method="post"><div id="wet-srchbx-in">
<label for="wet-srch">Search website</label><input id="wet-srch" name="wet-srch" type="search" value="" size="27" maxlength="150" />
<input id="wet-srch-submit" name="wet-srch-submit" type="submit" value="Search" data-icon="search" class="button button-accent" />
</div></form>
</div></section>
</div></div>
<nav role="navigation">
<div id="wet-psnb"><h2>Site menu</h2><div id="wet-psnb-in"><div class="wet-boew-menubar mb-mega"><div>
<ul class="mb-menu" data-ajax-replace="../includes/projectmenu-eng.txt">
<li><div><a href="http://wet-boew.github.io/wet-boew/index-eng.html">WET project</a></div></li>
<li><div><a href="https://github.com/wet-boew/wet-boew/wiki/Implementing-WET">Implement WET</a></div></li>
<li><div><a href="https://github.com/wet-boew/wet-boew/wiki/Contributor-guidelines">Contribute to WET</a></div></li>
</ul>
</div></div></div></div>
<div id="wet-bc"><h2>Breadcrumb trail</h2><div id="wet-bc-in">
<ol>
<li><a href="../../index-eng.html">Home</a></li>
<li><a href="../index-eng.html">Working examples</a></li>
<li>JavaScript add-ons - Design guide</li>
</ol>
</div></div>
</nav>
<!-- HeaderEnd -->
</header></div></div>
<div id="wb-core"><div id="wb-core-in" class="equalize">
<div id="wb-main" role="main"><div id="wb-main-in">
<!-- MainContentStart -->
<h1 id="wb-cont">JavaScript add-ons - Design guide</h1>
<div class="span-6 module-info module-simplify">
<p>Each JavaScript style includes a <strong>Correct use</strong> section. By adhering to the style's intended purpose(s), any future changes in the stylesheets will have predictable outcomes. </p>
</div>
<div class="clear"></div>
<div class="span-6 module-table-contents">
<h2>Table of contents</h2>
<ul class="column-3">
<li> <a href="#archiving">Archiving content</a></li>
<li> <a href="#autocomplete">Auto-complete</a></li>
<li> <a href="#calendar1">Calendar: Date picker</a></li>
<li> <a href="#calendar2">Calendar: Events calendar</a></li>
<li> <a href="#charts">Charts and graphs</a></li>
<li> <a href="#expand">Expand/collapse </a></li>
<li> <a href="#feedback">Feedback</a></li>
<li> <a href="#footnotes">Footnotes</a></li>
<li> <a href="#validation">Form validation</a></li>
<li> <a href="#geomap">Geomap</a></li>
<li> <a href="#lightbox">Light box</a></li>
<li> <a href="#math">Mathematical/scientific formula display</a></li>
<li> <a href="#meter">Meter</a></li>
<li> <a href="#multimedia">Multimedia</a></li>
<li> <a href="#storage">Persistent storage</a></li>
<li> <a href="#progress">Progress bar</a></li>
<li> <a href="#share">Share widget</a></li>
<li> <a href="#slide">Slide out tab</a></li>
<li> <a href="#source">Source code (Prettify)</a></li>
<li> <a href="#slider">Slider control</a></li>
<li> <a href="#tabs">Tabs / News sliders</a></li>
<li> <a href="#table">Table enhancement</a></li>
<li> <a href="#highlight">Text highlighting</a></li>
<li> <a href="#feed">Web feeds</a></li>
<li><a href="#zebra">Zebra striping</a></li>
</ul>
</div>
<div class="clear"></div>
<h2 id="archiving" class="margin-bottom-none color-dark">Archiving</h2>
<div class="span-4">
<p>Indicate that a page has been archived. </p>
<h3 class="margin-bottom-none">Correct use</h3>
<p>Refer to: <a href="https://github.com/wet-boew/wet-boew/wiki/Archiving-content">Archiving content wiki</a></p>
</div>
<div class="border-left float-right">
<div class="span-2 margin-bottom-none">
<h3 class="margin-top-none margin-bottom-none">Demo</h3>
<p>No demo provided here.</p>
<p class="float-right"><a href="../datalist/datalist-eng.html" class="button">View all archived options</a></p>
</div>
</div>
<div class="clear"></div>
<h2 id="autocomplete" class="margin-bottom-none color-dark">Auto-complete</h2>
<div class="span-4">
<p>Add the auto-complete feature to a text input field. </p>
<h3 class="margin-bottom-none">Correct use</h3>
<p>Refer to: <a href="https://github.com/wet-boew/wet-boew/wiki/Auto-complete-for-text-input-fields-%28input-list---datalist-polyfill%29">Auto complete for text input fields wiki</a></p>
</div>
<div class="border-left float-right">
<div class="span-2 margin-bottom-none">
<h3 class="margin-top-none margin-bottom-none">Demo</h3>
<p>Type in <strong>W</strong> for <strong>Winnipeg</strong> to see the auto-complete behaviour. This enhancement only works in modern browsers. Older browsers require the user to type out the info in full.</p>
<label for="city">City</label>
<input type="text" id="city" name="city" list="suggestions" />
<datalist id="suggestions">
<!--[if lte IE 9]><select><![endif]-->
<option label="" value="Calgary"></option>
<option label="" value="Edmonton"></option>
<option label="" value="Iqualuit"></option>
<option label="" value="Ottawa"></option>
<option label="" value="Montreal"></option>
<option label="" value="St. John"></option>
<option label="" value="St. John's"></option>
<option label="" value="Toronto"></option>
<option label="" value="Vancouver"></option>
<option label="" value="Whitehorse"></option>
<option label="" value="Winnipeg"></option>
<option label="" value="Yellowknife"></option>
<!--[if lte IE 9]></select><![endif]-->
</datalist>
<p class="float-right"><a href="../datalist/datalist-eng.html" class="button">View all auto-complete options</a></p>
</div>
</div>
<div class="clear"></div>
<h2 id="calendar1" class="margin-bottom-none color-dark">Calendar: Date picker </h2>
<div class="span-4">
<p>This feature dynamically generates a calendar interface for selecting a date in a form. </p>
<h3 class="margin-bottom-none">Correct use</h3>
<p>Refer to: <a href="https://github.com/wet-boew/wet-boew/wiki/Date-picker">Date picker wiki</a></p>
</div>
<div class="border-left float-right">
<div class="span-2 margin-bottom-none">
<h3 class="margin-top-none margin-bottom-none">Demo</h3>
<form method="get" action="#">
<label for="startdate">Start Date (<abbr title="Four digits year">YYYY</abbr>-<abbr title="Two digits month">MM</abbr>-<abbr title="Two digits day">DD</abbr>)</label>
<input type="date" id="startdate" name="startdate" min="2013-07-27" max="2013-05-07" />
</form>
<p class="float-right"><a href="../datepicker/datepicker-eng.html" class="button">View all date picker options</a></p>
</div>
</div>
<div class="clear"></div>
<h2 id="calendar2" class="margin-bottom-none color-dark">Calendar: Events calendar </h2>
<div class="span-4">
<p>This feature dynamically generates a calendar interface for navigating a list of events.</p>
<h3 class="margin-bottom-none">Correct use</h3>
<p>Refer to: <a href="https://github.com/wet-boew/wet-boew/wiki/Events-calendar">Events calendar wiki</a></p>
</div>
<div class="border-left float-right">
<div class="span-2 margin-bottom-none">
<h3 class="margin-top-none margin-bottom-none">Demo</h3>
<div id="calendar-1"></div>
<div class="wet-boew-eventscalendar event-anchoring calendar-1">
<ol>
<li>
<section>
<h4><a href="http://www.canada.gc.ca" rel="external">Single-Day Event</a></h4>
<p>
<time datetime="2013-01-14">January 14th 2013</time>
</p>
<p>Event Description</p>
</section>
</li>
</ol>
</div>
<p class="float-right"><a href="../eventscalendar/eventscalendar-eng.html" class="button">View all events calendar options</a></p>
</div>
</div>
<div class="clear"></div>
<h2 id="charts" class="margin-bottom-none color-dark">Charts and graphs </h2>
<div class="span-4">
<p>This feature dynamically generates charts from table data. </p>
<h3 class="margin-bottom-none">Correct use</h3>
<p>Refer to: <a href=" https://github.com/wet-boew/wet-boew/wiki/Charts-and-graphs">Charts and graphs wiki</a></p>
</div>
<div class="border-left float-right">
<div class="span-2 margin-bottom-none">
<h3 class="margin-top-none margin-bottom-none">Demo</h3>
<table class="wet-boew-charts wb-charts-bar">
<caption>
2009 Individual Sales by Category
</caption>
<thead>
<tr>
<td></td>
<th>food</th>
<th>auto</th>
<th>household</th>
</tr>
</thead>
<tbody>
<tr>
<th>Mary</th>
<td>200</td>
<td>160</td>
<td>40</td>
</tr>
<tr>
<th>Tom</th>
<td>3</td>
<td>40</td>
<td>30</td>
</tr>
<tr>
<th>Brad</th>
<td>10</td>
<td>180</td>
<td>10</td>
</tr>
<tr>
<th>Kate</th>
<td>40</td>
<td>80</td>
<td>90</td>
</tr>
</tbody>
</table>
<p class="float-right"><a href="../charts/index-eng.html" class="button">View charts and graphs options</a></p>
</div>
</div>
<div class="clear"></div>
<h2 id="expand" class="margin-bottom-none color-dark">Expand/collaspe</h2>
<div class="span-4">
<p>Allows content to be expanded and collapsed.</p>
<h3 class="margin-bottom-none">Correct use</h3>
<ul>
<li>Use to hide secondary or tertiary content, not primary content</li>
<li>Do not use as a means to tidy up the look of your page. If the page is deemed too busy, consider other options like separating the content over several pages or chunking the information in a more aesthetically pleasing way.</li>
<li>Refer to: <a href="https://github.com/wet-boew/wet-boew/wiki/Expandable-collapsible-content">Expand/collapse content wiki</a></li>
</ul>
</div>
<div class="border-left float-right">
<div class="span-2 margin-bottom-none">
<h3 class="margin-top-none margin-bottom-none">Demo</h3>
<details>
<summary>I can open and close</summary>
<p>Told you so!</p>
</details>
<p class="float-right"><a href="../details/details-eng.html" class="button">View all expand/collapse options</a></p>
<p class="float-right"><a href="../details/expandcollapseall-eng.html" class="button">View all expand/collapse all content options</a></p>
</div>
</div>
<div class="clear"></div>
<h2 id="feedback" class="margin-bottom-none color-dark">Feedback form </h2>
<div class="span-4">
<p>This component allows users to submit feedback for a specific Web page or the Web site in general. </p>
<h3 class="margin-bottom-none">Correct use</h3>
<p>Refer to: <a href="https://github.com/wet-boew/wet-boew/wiki/Feedback-form">Feedback form wiki</a></p>
</div>
<div class="border-left float-right">
<div class="span-2 margin-bottom-none">
<h3 class="margin-top-none margin-bottom-none">Demo</h3>
<p>This is a Government of Canada specific product solution.</p>
<p class="float-right"><a href="../feedback/feedback-eng.html" class="button">View the feedback form</a></p>
</div>
</div>
<div class="clear"></div>
<h2 id="footnotes" class="margin-bottom-none color-dark">Footnotes </h2>
<div class="span-4">
<p>This component provides a consistent, accessible way of handling footnotes across websites. </p>
<h3 class="margin-bottom-none">Correct use</h3>
<p>Refer to: <a href="https://github.com/wet-boew/wet-boew/wiki/Footnotes">Footnotes wiki</a></p>
</div>
<div class="border-left float-right">
<div class="span-2 margin-bottom-none">
<h3 class="margin-top-none margin-bottom-none">Demo</h3>
<p>Paragraph of information goes here.<sup id="fnb1-ref"><a class="footnote-link" href="#fnb1"><span class="wb-invisible">Footnote </span>1</a></sup>.</p>
<div class="wet-boew-footnotes" role="note">
<section>
<h2 id="fnb" class="wb-invisible">Footnotes</h2>
<dl>
<dt>Footnote 1</dt>
<dd id="fnb1">
<p>Footnote go here.</p>
<p class="footnote-return"><a href="#fnb1-ref"><span class="wb-invisible">Return to footnote </span>1<span class="wb-invisible"> referrer</span></a></p>
</dd>
</dl>
</section>
</div>
<p class="float-right"><a href="../footnotes/footnotes-eng.html" class="button">View all footnotes options</a></p>
</div>
</div>
<div class="clear"></div>
<h2 id="validation" class="margin-bottom-none color-dark">Form validation </h2>
<div class="span-4">
<p>This component provides generic validation and error message handling for Web forms. </p>
<h3 class="margin-bottom-none">Correct use</h3>
<p>Refer to: <a href="https://github.com/wet-boew/wet-boew/wiki/Form-validation">Form validation wiki</a></p>
</div>
<div class="border-left float-right">
<div class="span-2 margin-bottom-none">
<h3 class="margin-top-none margin-bottom-none">Demo</h3>
<p>Too complex to demo here.</p>
<p class="float-right"><a href="../formvalid/formvalid-eng.html" class="button">View all form validation options</a></p>
</div>
</div>
<div class="clear"></div>
<h2 id="geomap" class="margin-bottom-none color-dark">Geomap</h2>
<div class="span-4">
<p>Displays a dynamic map over which information from additinal sources can be overlaid. </p>
<h3 class="margin-bottom-none">Correct use</h3>
<p>Refer to: <a href="https://github.com/wet-boew/wet-boew/wiki/Geomap">Geomap wiki</a></p>
</div>
<div class="border-left float-right">
<div class="span-2 margin-bottom-none">
<h3 class="margin-top-none margin-bottom-none">Demo</h3>
<p>Too complex to demo here.</p>
<p class="float-right"><a href="../geomap/geomap-eng.html" class="button">View all geomap options</a></p>
</div>
</div>
<div class="clear"></div>
<h2 id="lightbox" class="margin-bottom-none color-dark">Lightbox </h2>
<div class="span-4">
<p>Creates a gallery out of pictures or content.</p>
<h3 class="margin-bottom-none">Correct use</h3>
<p>Refer to: <a href="https://github.com/wet-boew/wet-boew/wiki/Light-Box">Light box wiki</a></p>
</div>
<div class="border-left float-right">
<div class="span-2 margin-bottom-none">
<h3 class="margin-top-none margin-bottom-none">Demo</h3>
<div class="wet-boew-lightbox">
<div class="span-1 row-start"> <a class="lb-item" href="../lightbox/images/1_b.jpg" title="Image 1"> <img src="../lightbox/images/1_s.jpg" alt="Image 1" /> </a> </div>
<div class="span-1 row-end"> <a class="lb-item" title="Example of inline content" href="#inline_content1">Inline content</a>
<div class="lb-inline">
<div id="inline_content1">
<p>Inline content goes here</p>
</div>
</div>
</div>
</div>
<div class="clear"></div>
<p class="float-right"><a href="../lightbox/lightbox-eng.html" class="button">View all lightbox display options</a></p>
</div>
</div>
<div class="clear"></div>
<h2 id="math" class="margin-bottom-none color-dark">Mathematical/scientific formula display </h2>
<div class="span-4">
<p>The MathML polyfill emulates MathML support in browsers that lack MathML support.</p>
<h3 class="margin-bottom-none">Correct use</h3>
<p>Refer to: <a href="https://github.com/wet-boew/wet-boew/wiki/Mathematical-Scientific-formula-display">Mathematical/scientific formula display wiki</a></p>
</div>
<div class="border-left float-right">
<div class="span-2 margin-bottom-none">
<h3 class="margin-top-none margin-bottom-none">Demo</h3>
The quadratic equation
<math>
<mrow>
<mi>a</mi>
<mo>⁢</mo>
<msup>
<mi>x</mi>
<mn>2</mn>
</msup>
<mo>+</mo>
<mi>b</mi>
<mo>⁢</mo>
<mi>x</mi>
<mo>+</mo>
<mi>c</mi>
<mo>=</mo>
<mi>0</mi>
</mrow>
</math>
<p class="float-right"><a href="../mathlib/mathlib-eng.html" class="button">View all mathematical/scientific formula display options</a></p>
</div>
</div>
<div class="clear"></div>
<h2 id="meter" class="margin-bottom-none color-dark">Meter </h2>
<div class="span-4">
<p>The HTML5 <code>meter</code> element displays a scalar measurement in a known range.</p>
<h3 class="margin-bottom-none">Correct use</h3>
<ul>
<li>The meter element represents a scalar measurement within a known range, or a fractional value; for example disk usage, the relevance of a query result, or the fraction of a voting population to have selected a particular candidate. </li>
<li>This is also known as a gauge. </li>
<li>The meter element should not be used to indicate progress (as in a <a href="#progress">progress bar</a>). For that role, HTML provides a separate progress element. </li>
<li>The meter element also does not represent a scalar value of arbitrary range — for example, it would be wrong to use this to report a weight, or height, unless there is a known maximum value. </li>
<li>Refer to: <a href="https://github.com/wet-boew/wet-boew/wiki/Meter">Meter wiki</a></li>
</ul>
</div>
<div class="border-left float-right">
<div class="span-2 margin-bottom-none">
<h3 class="margin-top-none margin-bottom-none">Demo</h3>
<meter min="20" value="65" max="80">75% (normal)</meter>
<p class="float-right"><a href="../meter/meter-eng.html" class="button">View all meter options</a></p>
</div>
</div>
<div class="clear"></div>
<h2 id="multimedia" class="margin-bottom-none color-dark">Multimedia</h2>
<div class="span-4">
<p>This feature provides a multimedia player for embedding accessible video and audio into web pages. </p>
<h3 class="margin-bottom-none">Correct use</h3>
<p>Refer to: <a href="https://github.com/wet-boew/wet-boew/wiki/Multimedia-player">Multimedia player wiki</a></p>
</div>
<div class="border-left float-right">
<div class="wet-boew-multimedia span-2 margin-bottom-none">
<h3 class="margin-top-none margin-bottom-none">Demo</h3>
<video width="480" height="270" poster="http://31591.vws.magma.ca/sct-tbs/wet-boew/thumbnail.png" title="Video Example">
<source src="http://31591.vws.magma.ca/sct-tbs/wet-boew/demo-eng.webm" type="video/webm" />
<source src="http://31591.vws.magma.ca/sct-tbs/wet-boew/demo-eng.mp4" type="video/mp4" />
<track kind="captions" data-type="text/html" src="../multimedia/mediaplayer-transcript_captions-eng.html"/>
</video>
<p><a href="../multimedia/mediaplayer-transcript_captions-eng.html">Transcript</a></p>
<p class="float-right"><a href="../multimedia/multimedia-eng.html" class="button">View all multimedia player options</a></p>
</div>
</div>
<div class="clear"></div>
<h2 id="storage" class="margin-bottom-none color-dark">Persistent storage</h2>
<div class="span-4">
<p>The HTML5 localStorage object is used to store data persistently (no expiration date). This component adds support for this object in browsers that do not already have native support. </p>
<h3 class="margin-bottom-none">Correct use</h3>
<p>Refer to: <a href="https://github.com/wet-boew/wet-boew/wiki/Persistent-storage-%28localStorage-polyfill%2C-Web-Storage-%28HTML5%29%29">Persistent storage wiki</a></p>
</div>
<div class="border-left float-right">
<div class="span-2 margin-bottom-none">
<h3 class="margin-top-none margin-bottom-none">Demo</h3>
<p>No demo provided here.</p>
<p class="float-right"><a href="../webstorage/localstorage-eng.html" class="button">View all local storage options</a></p>
</div>
</div>
<div class="clear"></div>
<h2 id="progress" class="margin-bottom-none color-dark">Progress bar </h2>
<div class="span-4">
<p>The HTML5 <code>progress</code> element displays the progress of a task.</p>
<h3 class="margin-bottom-none">Correct use</h3>
<p>Refer to: <a href="https://github.com/wet-boew/wet-boew/wiki/Progress-bar">Progress bar wiki</a></p>
</div>
<div class="border-left float-right">
<div class="span-2 margin-bottom-none">
<h3 class="margin-top-none margin-bottom-none">Demo</h3>
<progress value="22" max="100" class="width-80"><span class="wb-invisible">22%</span></progress>
<p class="float-right"><a href="../progress/progress-eng.html" class="button">View all progress bar options</a></p>
</div>
</div>
<div class="clear"></div>
<h2 id="timeout" class="margin-bottom-none color-dark">Session timeout</h2>
<div class="span-4">
<p>This component helps Web asset owners to provide session timeout and inactivity timeout functionality. </p>
<h3 class="margin-bottom-none">Correct use</h3>
<p>Refer to: <a href="https://github.com/wet-boew/wet-boew/wiki/Session-timeout">Session timeout wiki</a></p>
</div>
<div class="border-left float-right">
<div class="span-2 margin-bottom-none">
<h3 class="margin-top-none margin-bottom-none">Demo</h3>
<p>Too complex to demo here.</p>
<p class="float-right"><a href="../sessiontimeout/sessiontimeout-eng.html" class="button">View all session timeout options</a></p>
</div>
</div>
<div class="clear"></div>
<h2 id="share" class="margin-bottom-none color-dark">Share widget</h2>
<div class="span-4">
<p>This component facilitates sharing Web content on social media platforms.</p>
<h3 class="margin-bottom-none">Correct use</h3>
<p>Refer to: <a href="https://github.com/wet-boew/wet-boew/wiki/Share-widget">Share widget wiki</a></p>
</div>
<div class="border-left float-right">
<div class="span-2 margin-bottom-none">
<h3 class="margin-top-none margin-bottom-none">Demo</h3>
<div class="wet-boew-share span-5 margin-bottom-none" data-wet-boew="{sites:[]}"></div>
<p class="float-right"><a href="../share/share-eng.html" class="button">View all share widget options</a></p>
</div>
</div>
<div class="clear"></div>
<h2 id="slide" class="margin-bottom-none color-dark">Slide out tab</h2>
<div class="span-4">
<p>This component provides a tab at the edge of the content area that can slide out to show content. </p>
<h3 class="margin-bottom-none">Correct use</h3>
<p>Refer to: <a href="https://github.com/wet-boew/wet-boew/wiki/Slide-out-Tab">Slide out tab wiki</a></p>
</div>
<div class="border-left float-right">
<div class="span-2 margin-bottom-none">
<h3 class="margin-top-none margin-bottom-none">Demo</h3>
<p>Too complex to demo here.</p>
<p class="float-right"><a href="../slideout/slideout-eng.html" class="button">View all slide out tab options</a></p>
</div>
</div>
<div class="clear"></div>
<h2 id="slider" class="margin-bottom-none color-dark">Slider control</h2>
<div class="span-4">
<p>The <code><input type="range" /></code> allows to display a slider control bar. </p>
<h3 class="margin-bottom-none">Correct use</h3>
<p>Refer to: <a href="https://github.com/wet-boew/wet-boew/wiki/Slider-control">Slider control wiki</a></p>
</div>
<div class="border-left float-right">
<div class="span-2 margin-bottom-none">
<h3 class="margin-top-none margin-bottom-none">Demo</h3>
<h4 class="background-dark margin-bottom-medium">Range: 0 to 100 in steps of 1 <span id="html5shim-1-out"></span></h4>
<p>
<input name="html5shim-1" id="html5shim-1" type="range" min="0" max="100" step="1" title="Range: 0 to 100 in steps of 1" value="50" onchange="document.getElementById('html5shim-1-out').innerHTML = '(Current Value: ' + this.value + ')'" />
</p>
<p class="float-right"><a href="../slider/slider-eng.html" class="button">View all slider options</a></p>
</div>
</div>
<div class="clear"></div>
<h2 id="source" class="margin-bottom-none color-dark">Source code (Prettify)</h2>
<div class="span-4">
<p>Syntax highlighting of source code snippets in an html page using google-code-prettify.</p>
<h3 class="margin-bottom-none">Correct use</h3>
<p>Refer to: <a href="https://github.com/wet-boew/wet-boew/wiki/Prettify">Prettify source code wiki</a></p>
</div>
<div class="border-left float-right">
<div class="span-2 margin-bottom-none">
<h3 class="margin-top-none margin-bottom-none">Demo</h3>
<section>
<div class="wet-boew-prettify">
<pre class="prettyprint"><code><label for="data1">Form input default appearance:</label>
<input name="data1" type="text" id="data1" />
</code></pre>
</div>
</section>
<p class="float-right"><a href="../prettify/prettify-eng.html" class="button">View all source code options</a></p>
</div>
</div>
<div class="clear"></div>
<h2 id="tabs" class="margin-bottom-none color-dark">Tabs / News slider</h2>
<div class="span-4">
<p>This component displays multiple pieces of content into a tabbed interface. </p>
<h3 class="margin-bottom-none">Correct use</h3>
<p>Jakob Nielsen, a top usability expert, wrote the article <a href="http://www.useit.com/alertbox/tabs.html">Tabs, Used Right (external link)</a>, which outlines the correct use of tabs. In this document, he states that tabs should: </p>
<ul>
<li>Not use all-capital letters for the labels; </li>
<li>Use only only one row of tabs that are<strong> on top of the panel</strong>;</li>
<li><strong><strong>Alternate only between views within the same type of context, and not navigate to different areas;</strong></strong>
<ul>
<li>Tabs should logically chunk information so users can easily predict what they’ll find. They should not have to simultaneously refer to and compare content. </li>
</ul>
</li>
<li>Have a highlighted<strong> Currently selected</strong> tab — with unselected tabs that are clearly visible and readable;
<ul>
<li>The <strong>Current </strong>tab should connect to the content area. </li>
</ul>
</li>
<li>Use plain language and have short titles;</li>
<li><strong>Use a parallel naming structure</strong>.
<div class="clear"></div>
Correct use = parallel labels:
<div class="tabs">
<ul class="margin-bottom-none">
<li><a href="#">Tax forms</a></li>
<li><a href="#">Charity forms</a></li>
<li><a href="#">All forms</a></li>
</ul>
</div>
<div class="clear"></div>
Incorrect use = unrelated labels:
<div class="tabs">
<ul class="margin-bottom-none">
<li><a href="#">Forms</a></li>
<li><a href="#">Offices</a></li>
<li><a href="#"><abbr title="Frequently Asked Questions">FAQ</abbr>s</a></li>
</ul>
</div>
</li>
<li>Have an obvious scope that the tabs control;</li>
<li>Have a quick click response time (ideally <0.1 s). </li>
<li>Refer to: <a href="https://github.com/wet-boew/wet-boew/wiki/Tabbed-interface">Tabbed interface wiki</a></li>
</ul>
</div>
<div class="border-left float-right">
<div class="span-2 margin-bottom-none">
<h3 class="margin-top-none margin-bottom-none">Demo</h3>
<div class="wet-boew-tabbedinterface ">
<ul class="tabs">
<li><a href="#tabs-1">Tab 1</a></li>
<li><a href="#tabs-2">Tab 2</a></li>
</ul>
<div class="tabs-panel">
<div id="tabs-1">
<p>Tab 1 content</p>
</div>
<div id="tabs-2">
<p>Tab 2 content</p>
</div>
</div>
</div>
<div class="wet-boew-tabbedinterface tabs-style-2 margin-top-medium">
<ul class="tabs">
<li><a href="#tabs-3">Tab 3</a></li>
<li><a href="#tabs-4">Tab 4</a></li>
</ul>
<div class="tabs-panel">
<div id="tabs-3">
<section>
<div class="tabs-content-pad">
<h2 class="margin-top-none">Tab 3</h2>
<p>Tab 3 content. Tab 3 content. Tab 3 content. Tab 3 content.</p>
</div>
</section>
</div>
<div id="tabs-4">
<section>
<div class="tabs-content-pad">
<h2 class="margin-top-none">Tab 4</h2>
<p>Tab 4 content. Tab 4 content. Tab 4 content. Tab 4 content.</p>
</div>
</section>
</div>
</div>
</div>
<p class="float-right"><a href="../tabs/tabs-eng.html" class="button">View all tab and news slider options</a></p>
</div>
</div>
<div class="clear"></div>
<h2 id="table" class="margin-bottom-none color-dark">Table enhancement</h2>
<div class="span-4">
<p>The table enhancement plugin adds advanced functionality such as sorting, filtering, pagination to tables.</p>
<h3 class="margin-bottom-none">Correct use</h3>
<p>Refer to: <a href="https://github.com/wet-boew/wet-boew/wiki/Table-enhancement">Table enhancement wiki</a></p>
</div>
<div class="border-left float-right">
<div class="span-2 margin-bottom-none">
<h3 class="margin-top-none margin-bottom-none">Demo</h3>
<table class="wet-boew-tables">
<thead>
<tr>
<th>Rendering engine</th>
<th>Browser</th>
</tr>
</thead>
<tbody>
<tr>
<td>Trident</td>
<td>Internet
Explorer 4.0</td>
</tr>
<tr>
<td>Trident</td>
<td>Internet
Explorer 5.0</td>
</tr>
<tr>
<td>Trident</td>
<td>Internet
Explorer 5.5</td>
</tr>
<tr>
<td>Trident</td>
<td>Internet
Explorer 6</td>
</tr>
<tr>
<td>Trident</td>
<td>Internet Explorer 7</td>
</tr>
</tbody>
</table>
<p class="float-right"><a href="../tables/tables-eng.html" class="button">View all table enhancement options</a></p>
</div>
</div>
<div class="clear"></div>
<h2 id="highlight" class="margin-bottom-none color-dark">Text highlighting</h2>
<div class="span-4">
<p>This component automatically highlights certain words on a Web page. The words to highlight can be set through the query string. </p>
<h3 class="margin-bottom-none">Correct use</h3>
<p>Refer to: <a href="https://github.com/wet-boew/wet-boew/wiki/Text-highlighting">Text highlighting wiki</a></p>
</div>
<div class="border-left float-right">
<div class="span-2 margin-bottom-none">
<h3 class="margin-top-none margin-bottom-none">Demo</h3>
<p>Too complex to demo here.</p>
<p class="float-right"><a href="../texthighlight/texthighlight-eng.html?texthighlight=avian%20influenza+world+cook+flu-like%20symptoms+Don't%20Forget...+causes%20sickness%20in%20birds,%20it%20can%20also%20infect%20people." class="button">View all text highlighting options</a></p>
</div>
</div>
<div class="clear"></div>
<h2 id="feed" class="margin-bottom-none color-dark">Web feeds</h2>
<div class="span-4">
<p>Provides a widget for aggregating and displaying the entries from one or more Web feeds on a Web page. </p>
<h3 class="margin-bottom-none">Correct use</h3>
<p>Refer to: <a href="https://github.com/wet-boew/wet-boew/wiki/Web-feeds">Web feeds wiki</a></p>
</div>
<div class="border-left float-right">
<div class="span-2 margin-bottom-none">
<h3 class="margin-top-none margin-bottom-none">Demo</h3>
<div class="wet-boew-webwidget limit-2 span-2">
<div class="widget-container">
<section>
<h4 class="background-accent">RSS Feed</h4>
<ul class="widget-content">
<li><a href="http://www.tc.gc.ca/mediaroom/rss/road.xml" rel="external">Road News Releases (All)</a></li>
<li><a href="http://wwwapps.tc.gc.ca/Saf-Sec-Sur/7/VRDB-BDRV/Search/Rss-Search.aspx" rel="external">Road Safety Recalls</a></li>
</ul>
</section>
</div>
</div>
<p class="float-right"><a href="../webfeeds/webfeeds-eng.html" class="button">View all web feed options</a></p>
</div>
</div>
<div class="clear"></div>
<h2 id="zebra" class="margin-bottom-none color-dark">Zebra striping</h2>
<div class="span-4">
<p>Adds zebra stripes to ordered list, unordered list, definition list, table rows, table columns and provide visual support for the complex data table relationship.</p>
<h3 class="margin-bottom-none">Correct use</h3>
<p>Refer to: <a href="https://github.com/wet-boew/wet-boew/wiki/Zebra-striping">Zebra striping wiki</a></p>
</div>
<div class="border-left float-right">
<div class="span-2 margin-bottom-none">
<h3 class="margin-top-none margin-bottom-none">Demo</h3>
<table class="wet-boew-zebra">
<caption>
Caption
</caption>
<tr>
<th>Header</th>
<th>Header</th>
</tr>
<tr>
<td>Data</td>
<td>Data</td>
</tr>
<tr>
<td>Data</td>
<td>Data</td>
</tr>
<tr>
<td>Data</td>
<td>Data</td>
</tr>
<tr>
<td>Data</td>
<td>Data</td>
</tr>
<tr>
<td>Data</td>
<td>Data</td>
</tr>
</table>
<p class="float-right"><a href="../zebra/zebra-eng.html" class="button">View all zebra striping options</a></p>
</div>
</div>
<div class="clear"></div>
<dl id="wet-date-mod" role="contentinfo">
<dt>Date modified:</dt><dd><span><time>2013-04-11</time></span></dd>
</dl>
<div class="clear"></div>
<!-- MainContentEnd -->
</div></div>
<div id="wb-sec"><div id="wb-sec-in"><nav role="navigation"><h2 id="wb-nav"></h2>
<div class="wb-sec-def">
<!-- SecNavStart -->
<section><h3 class="top-section"><a href="guide-eng.html">Design guide</a></h3>
<div><ul>
<li class="top-level"><a href="default-eng.html">Default design</a></li>
<li class="top-level"><a href="components-eng.html">Design components</a></li>
<li class="top-level"><a href="javascript-eng.html">JavaScript add-ons</a></li>
<li class="top-level"><a href="layout-eng.html">Page layout</a></li>
<li class="top-level"><a href="format-eng.html">Content formatting</a></li>
</ul></div>
</section>
<!-- SecNavEnd -->
</div>
</nav></div></div>
</div></div>
<div id="wb-foot"><div id="wb-foot-in"><footer><h2>Footer</h2>
<!-- FooterStart -->
<nav role="navigation"><div id="wet-sft"><h3>Site footer</h3><div id="wet-sft-in">
<section><div class="span-2"><h4 class="wet-col-head">About</h4>
<ul>
<li><a href="http://wet-boew.github.io/wet-boew/index-eng.html#about">About the Web Experience Toolkit</a></li>
<li><a href="http://www.tbs-sct.gc.ca/ws-nw/index-eng.asp">About the Web Standards</a></li>
</ul>
</div></section>
<section><div class="span-2"><h4 class="wet-col-head">News</h4>
<ul>
<li><a href="https://github.com/wet-boew/wet-boew/pulse">Recent project activity</a></li>
<li><a href="https://github.com/wet-boew/wet-boew/graphs">Project statistics</a></li>
</ul>
</div></section>
<section><div class="span-2"><h4 class="wet-col-head">Contact us</h4>
<ul>
<li><a href="https://github.com/wet-boew/wet-boew/issues/new">Questions or comments?</a></li>
</ul>
</div></section>
<section><div class="span-2"><h4 class="wet-col-head">Stay connected</h4>
<ul>
<li><a rel="external" href="https://twitter.com/WebExpToolkit">Twitter</a></li>
</ul>
</div></section>
</div></div></nav>
<section><div id="wet-fullft"><h3>Full-width footer area</h3>
<div id="wet-fullft-in"></div>
</div></section>
<!-- FooterEnd -->
</footer>
</div></div></div>
<!-- ScriptsStart -->
<script src="../../dist/js/settings.js"></script>
<!--[if lte IE 8]>
<script src="../../dist/theme-wet-boew/js/theme-ie-min.js"></script>
<script src="../../dist/js/pe-ap-ie-min.js"></script>
<script src="../../dist/js/jquerymobile/jquery.mobile-ie.min.js"></script>
<![endif]-->
<!--[if gt IE 8]><!-->
<script src="../../dist/theme-wet-boew/js/theme-min.js"></script>
<script src="../../dist/js/pe-ap-min.js"></script>
<script src="../../dist/js/jquerymobile/jquery.mobile.min.js"></script>
<!--<![endif]-->
<!-- ScriptsEnd -->
<!-- CustomScriptsStart -->
<!-- CustomScriptsEnd -->
</body>
</html>