This repository has been archived by the owner on Oct 9, 2018. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 3
/
example1.html
114 lines (106 loc) · 3.42 KB
/
example1.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
<!DOCTYPE html>
<head>
<meta charset="utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
<title>Treevue example page 1</title>
<link id="style_basic" rel="stylesheet" href="tree_default.css">
<link id="style_compact" rel="alt-stylesheet" href="tree_compact.css">
<link id="style_fancy" rel="alt-stylesheet" href="tree_fancy.css">
</head>
<body>
<div id="styleswitch">
<input type="button" value="basic" />
<input type="button" value="compact" />
<!-- Work in progress:
<input type="button" value="fancy" />
-->
</div>
<h4>Accessibility Criteria</h4>
<ol>
<li data-treevue-type="guideline">Guideline 1.1 Text Alternatives<ol>
<li>1.1.1 Non-text Content</li>
</ol></li>
<li data-treevue-type="guideline">Guideline 1.2 Time-based Media<ol>
<li>1.2.1 Audio-only and Video-only (Prerecorded)<ol>
<li>1.2.1a ???</li>
</ol></li>
</ol></li>
</ol>
<button>log</button>
<h4>Assistive Technology</h4>
<ul>
<li><div>
<input class="treevue-indeterminate" type="checkbox" id="jaws" data-type="subselector" checked />
<label>Jaws (subselecting)</label><div><ul>
<li><div><input type="checkbox" id="jaws119" value="j119"
data-type="subselector" checked />
<label for="jaws119">Jaws 11.9</label></div></li>
<li><div><input type="checkbox" id="jaws1212" value="j1212" disabled />
<label for="jaws1212">Jaws 12.1.2</label></div></li>
<li><div><input type="checkbox" id="jaws137" value="j137" />
<label for="jaws137">Jaws 13.7 beta</label></div></li>
</ul></div></div></li>
<li><div><input type="checkbox" id="nvda" />
<label for="nvda"> NVDA (not subselecting)</label><div><ul>
<li><div><input type="checkbox" id="nvda119" disabled />
<label for="nvda119"> NVDA 11.9</label></div></li>
<li><div><input type="checkbox" id="nvda1212" checked />
<label for="nvda1212"> NVDA 12.1.2</label></div></li>
<li><div><input type="checkbox" id="nvda137" />
<label for="nvda137"> NVDA 13.7 beta</label></div></li>
</ul></div></div></li>
</ul>
<button>log</button>
<h4>Web Browser</h4>
<ul>
<li>IE<ul>
<li>IE 8.1</li>
<li>IE 7</li>
<li>IE 9.2<ul>
<li>On Windows 7</li>
<li>On Windows 8</li>
</ul></li>
</ul></li>
<li>Firefox<ul>
<li>Firefox 11.9</li>
<li>Firefox 12.1.2</li>
<li>Firefox 13.7 beta</li>
</ul></li>
</ul>
<button>log</button>
<h4>Web Technology</h4>
<ul>
<li>HTML and XHTML Techniques</li>
<li>CSS Techniques </li>
<li>ARIA Techniques</li>
</ul>
<button>log</button>
<h4>Operating System</h4>
<ul>
<li>Windows<ul>
<li>6</li>
<li>XP</li>
</ul></li>
<li>Linux<ul>
<li>Ubuntu x86 12</li>
</ul></li>
</ul>
<button>log</button>
<script src="http://ajax.googleapis.com/ajax/libs/jquery/1.10.1/jquery.min.js"></script>
<script src="jquery.treevue.js"></script>
<script src="jquery.treevue.import.js"></script>
<script src="jquery.treevue.export.js"></script>
<script>
jQuery(function ($) {
$('body > ul, body > ol').treevue();
$('button').click(function () {
console.log($(this).prev().treevueJson());
});
$('#styleswitch input').on('click', function () {
$('head link').attr('rel', 'alt-stylesheet');
$('#style_' + $(this).val()).attr('rel', 'stylesheet');
});
});
</script>
</body>
</html>