Skip to content

Commit 604a3a0

Browse files
committed
Merge pull request #35 from robertbosse/master
API Doc: Revised Example1 for hashtag
2 parents 7b75e1a + 2e9f07b commit 604a3a0

File tree

1 file changed

+2
-5
lines changed

1 file changed

+2
-5
lines changed

resources/hashtag/example1.html

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,6 @@
2020
width:17.1875em;
2121
margin:0 auto;
2222
}
23-
2423
#nav a {
2524
color: #777;
2625
border: 2px solid #777;
@@ -30,13 +29,11 @@
3029
float: left;
3130
margin-right: 0.3em;
3231
}
33-
3432
#nav a:hover {
3533
color: #999;
3634
border-color: #999;
3735
background: #eee;
3836
}
39-
4037
#nav a.selected,
4138
#nav a.selected:hover {
4239
color: #0a0;
@@ -73,8 +70,8 @@
7370
$(window).hashchange();
7471

7572
// To change src attribute of parent iframe element
76-
$(.hashExLink).on('click', function() {
77-
Top.document.getElementById('hashtagIframe').location.href='/resources/hashtag/example1.html' + $(this).href;
73+
$('.hashExLink').on('click', function() {
74+
window.top.document.getElementById('hashtagIframe').location.href='/resources/hashtag/example1.html' + $(this).href;
7875
});
7976
});
8077
</script>

0 commit comments

Comments
 (0)