-
Notifications
You must be signed in to change notification settings - Fork 31
Expand file tree
/
Copy pathdemo.html
More file actions
35 lines (35 loc) · 1.44 KB
/
demo.html
File metadata and controls
35 lines (35 loc) · 1.44 KB
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
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
<title>External Links - Demo</title>
<link rel="stylesheet" type="text/css" href="external-links.css" />
<style type="text/css">
body {
font-family: sans;
}
ul, li {
list-style: none;
}
</style>
</head>
<body>
<h1>External Links Demo</h1>
<p>The links below that point to external sites should have a little external link icon following the link text due to them having an <code>external-link</code> CSS class assigned by <code>external-links.js</code>.</p>
<div id="example">
<ul>
<li><a href="#example">Internal link</a></li>
<li><a href="http://bbc.co.uk">BBC Website</a></li>
<li><a href="/">Another internal link</a></li>
<li><a href="http://reddit.com">Reddit</a></li>
</ul>
<p>See the <a href="https://github.com/AstunTechnology/external-links">external-links</a> repository on GitHub for the source and usage.</p>
</div>
<script src="http://code.jquery.com/jquery-1.11.0.min.js"></script>
<script src="external-links.js"></script>
<script type="text/javascript">
jQuery('#example').externalLinks();
</script>
</body>
</html>