-
Notifications
You must be signed in to change notification settings - Fork 22
/
Copy pathlists.html
169 lines (166 loc) · 5.58 KB
/
lists.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
<html lang="en-US">
<head>
<meta charset="UTF-8">
<title>Lists Bookmarklet for Accessibility Testing</title>
<meta name="viewport" content="width=device-width, initial-scale=1">
<link rel="stylesheet" href="http://code.jquery.com/mobile/1.4.5/jquery.mobile-1.4.5.min.css" />
</head>
<body>
<p><a href="index.html"><span aria-hidden="true"><</span> Back to Bookmarklets for Accessibility Testing</a></p>
<h1>Lists Bookmarklet for Accessibility Testing</h1>
<p>Lists Bookmarklet for Accessibility Testing visually highlights the location and accessibility properties of <ul>, <ol>, <li>, <dl>, <dd>, and <dt> elements. </p>
<h2>Installation</h2>
<p><a href="javascript:(function(){document.body.appendChild(document.createElement('script')).src='https://cdn.jsdelivr.net/gh/pauljadam/bookmarklets@master/lists.js';var iframes=document.getElementsByTagName('iframe');for(i=0;i<iframes.length;i++) {iframes[i].contentDocument.body.appendChild(document.createElement('script')).src='https://cdn.jsdelivr.net/gh/pauljadam/bookmarklets@master/lists.js';}})();">Lists Bookmarklet</a> (drag link to bookmarks bar)</p>
<h2>Test Content</h2>
<ol>
<li>Mix eggs and milk in a bowl.</li>
<li>Add salt and pepper.</li>
</ol>
<ul>
<li>Milk</li>
<li>Eggs</li>
<li>Butter</li>
</ul>
<dl>
<dt>blink</dt>
<dd>turn on and off between .5 and 3 times per second </dd>
</dl>
<dl>
<dt><span>name:</span></dt>
<dd><span>John Doe</span></dd>
<dt><span>tel:</span></dt>
<dd><span>01-2345678</span></dd>
<dt><span>fax:</span></dt>
<dd><span>02-3456789</span></dd>
<dt><span>email:</span></dt>
<dd><span>johndoe@someemail.com</span></dd>
</dl>
<a name="categories" id="categories"></a>
<h2>Product Categories</h2>
<ul class="navigation">
<li><a href="kitchen.html">Kitchen</a></li>
<li><a href="bedbath.html">Bed & Bath</a></li>
<li><a href="dining.html">Fine Dining</a></li>
<li><a href="lighting.html">Lighting</a></li>
<li><a href="storage.html">Storage</a></li>
</ul>
<style>
ul.red {
border-left: 5px solid red;
background-color: #f1f1f1;
list-style-type: none;
padding: 10px 20px;
}
</style>
<p>List with a red left border:</p>
<ul class="red">
<li>Coffee</li>
<li>Tea</li>
<li>Coca Cola</li>
</ul>
<h2>A Nested List</h2>
<ul>
<li>Coffee</li>
<li>Tea
<ul>
<li>Black tea</li>
<li>Green tea</li>
</ul>
</li>
<li>Milk</li>
</ul>
<style>
ul#menu {
padding: 0;
}
ul#menu li {
display: inline;
}
ul#menu li a {
background-color: black;
color: white;
padding: 10px 20px;
text-decoration: none;
border-radius: 4px 4px 0 0;
}
ul#menu li a:hover {
background-color: orange;
}
</style>
<h2>Horizontal List</h2>
<ul id="menu">
<li><a href="/html/default.asp">HTML</a></li>
<li><a href="/css/default.asp">CSS</a></li>
<li><a href="/js/default.asp">JavaScript</a></li>
<li><a href="/php/default.asp">PHP</a></li>
</ul>
<ul>
<li>blah</li>
<li>what</li>
<p>paragraph</p>
</ul>
<ol>
<li>blah</li>
<li>what</li>
<p>paragraph</p>
</ol>
<ul>
<li>
<p>blah</p>
</li>
<li>
<p>what</p>
</li>
</ul>
<ul class="nav-aside">
<li class="nav-aside__title">
<p class="h5 ff-hm">CAREERS </p>
</li>
<li>
<ul class="nav-aside">
<li class="nav-aside__title nav-aside__title--2"><a href="#" class="a4">Search jobs</a></li>
<li class="nav-aside__title nav-aside__title--2"><a href="#" class="a4">About Us</a></li>
<li class="nav-aside__title nav-aside__title--2"><a href="#" class="a4">Our Stories</a></li>
<li class="nav-aside__title nav-aside__title--2"><a href="#" class="a4">Career Development</a></li>
<li class="nav-aside__title nav-aside__title--2"><a href="#" class="a4">FAQS</a></li>
</ul>
<p> <a class="a2" href="#"> London<br>
</a><a class="a2" href="#"> Los Angeles<br>
</a><a class="a2" href="#"> New York<br>
</a><a class="a2" href="#"> San Francisco<br>
</a><a class="a2" href="#"> South Beach<br>
</a><a class="a2" href="#"> London</a></p>
<p> <strong> Coming Soon: </strong></p>
<p> <a class="a2" href="#"> Doha</a></p>
</li>
</ul>
<iframe src="http://pauljadam.com/demos"></iframe>
<iframe src="http://pauljadam.com/bookmarklets" title="Bookmarklets"></iframe>
<h2>Bookmarklet Demo
<script type="application/javascript">
function loadJS(file) {
// DOM: Create the script element
var jsElm = document.createElement("script");
// set the type attribute
jsElm.type = "application/javascript";
// make the script element load file
jsElm.src = file;
// finally insert the element to the body element in order to load the script
document.body.appendChild(jsElm);
var iframes = document.getElementsByTagName('iframe');
for (i=0; i<iframes.length; i++) {
var jsElm2 = document.createElement("script");
jsElm2.type = "application/javascript";
jsElm2.src = file;
iframes[i].contentDocument.body.appendChild(jsElm2);
}
}
</script>
</h2>
<button onclick="loadJS('lists.js');">Show Lists Info</button>
<h4><a href="iosinstall.html">Not so easy installation method</a></h4>
<label for="jscode">Copy/Paste JavaScript Bookmarklet URL Code</label>
<br>
<textarea id="jscode" rows="4" cols="40">javascript:(function(){document.body.appendChild(document.createElement('script')).src='https://cdn.jsdelivr.net/gh/pauljadam/bookmarklets@master/lists.js';var iframes=document.getElementsByTagName('iframe');for(i=0;i<iframes.length;i++) {iframes[i].contentDocument.body.appendChild(document.createElement('script')).src='https://cdn.jsdelivr.net/gh/pauljadam/bookmarklets@master/lists.js';}})();</textarea>
</body>
</html>