-
Notifications
You must be signed in to change notification settings - Fork 3
/
test.html
29 lines (25 loc) · 895 Bytes
/
test.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
<!DOCTYPE html>
<html>
<head>
<link rel="stylesheet" href="urlhighlight.css" />
<script src="urlhighlight.min.js"></script>
</head>
<body>
<script>
var urls = [
'http://www.example.com',
'data-uri:image/jpeg,base64;foo',
'http://www.example.com?foo=5&bar=baz',
'http://www.example.com?foo=5',
'http://www.example.com:8080?foo=5',
'http://www.example.com?foo=5&bar=baz#top',
'http://www.example.com/section/article?foo=5&bar=baz#top'
];
document.write('<table>');
for (var i = 0; i < urls.length; i++) {
document.write('<tr><td>' + urls[i] + '</td><td>' + urlhighlight({ url: urls[i] }) + '</td></tr>');
}
document.write('</table>');
</script>
</body>
</html>