This repository has been archived by the owner on Jun 9, 2020. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 6
/
promote-mdn-test.html
60 lines (53 loc) · 3.23 KB
/
promote-mdn-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
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
<html>
<head>
<title>Promote MDN Test</title>
</head>
<body>
<h1>Lorm Ipsum JavaScript</h1>
<p>
Lorem ipsum dolor sit amet, consectetur adipiscing elit. Aenean mollis, enim ut condimentum commodo, quam
velit tincidunt nulla, non gravida lacus <a href="javascript:;" id="link1" title="--PRE EXUSTED LINK--">JavaScript</a> non ante. Proin eu augue hendrerit, fermentum dolor
dignissim, facilisis mauris. Donec placerat leo ut mi luctus, eget suscipit quam rutrum.
Cras congue varius turpis. JavaScrwipt felis at nibh porttitor, a cursus diam consequat.
Ut vel tempor nisl, ut faucibus ante. Lorem ipsum dolor sit amet, consectetur adipiscing elit.
Praesent fermentum faucibus dolor, nec facilisis nisl dictum sit amet.
</p>
<div>
Suspendisse eget elit id Html5 aliquet condimentum. Vestibulum ultricies, risus accumsan ultricies
vulputate, nibh augue tempus massa, quis viverra odio eros sed metus. Nunc bibendum orci in justo laoreet,
non vulputate mauris ornare. javascript <a href="javascript:;" title="--PRE EXUSTED LINK--">JavaScript and some more</a> morbi tristique senectus et netus et malesuada fames ac
turpis egestas. Quisque sed libero eu nisi rhoncus id sit amet purus. Pellentesque aliquam
interdum augue, in adipiscing quam suscipit eget. JS Reference Morbi blandit tempor consectetur. Mauris blandit sapien
vel risus iaculis venenatis. Curabitur tellus turpis, porttitor vitae luctus et, euismod et nisi. Proin
at dapibus nunc, vel convallis risus. Morbi nec leo tristique, tristique risus ornare, egestas nunc.
Vivamus ac tortor turpis. Curabitur ornare tincidunt turpis, ac lacinia turpis pellentesque a.
Donec sed enim id nunc fringilla tempus nec eu elit.
</div>
<p>
Mauris in eros non risus JavaScript commodo sed HTML5 odio. Donec a urna metus. Praesent odio massa,
semper at leo et, viverra cursus sapien. Vestibulum placerat imperdiet condimentum. Nulla facilisi.
Donec ac mi eget nunc tempus rutrum sed aliquet tortor. Suspendisse blandit <a href="javascript:;">blandit nulla</a>, ac dignissim
justo varius vel. Ut tristique sem ac arcu sollicitudin rutrum.
</p>
</body>
<!-- To test if event listeners previously bound to links are still working -->
<script src="https://code.jquery.com/jquery-2.1.0.min.js"></script>
<script>
$(document).ready(function () {
$('#link1').click(function () {
alert('Event fired!')
});
});
</script>
<script>
(function (d,f,a) {
// Your settings here
var o = {maxLinks: 4, searchElements: ['div', 'h'], linkClass: 'link-to-mdn', extraLinks: {'keywordx': 'http://example.com'}};
var s=d.createElement("script");s.type="text/javascript";if(s.f)
{s.a=function(){if(s.f=="loaded"||s.f=="complete")
{s.a=null;PromoteMDN(o)}}}else{s.onload=function()
{PromoteMDN(o)}}s.src="promote-mdn.js";
d.getElementsByTagName("head")[0].appendChild(s)
})(document,'readyState','onreadystatechange');
</script>
</html>