We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent f82dc7d commit 95558c6Copy full SHA for 95558c6
_layouts/default.html
@@ -5,22 +5,25 @@
5
6
<!-- hack iOS CSS :active style -->
7
<body ontouchstart="">
8
-
+<script type="text/javascript">
9
+ function addBlankTargetForLinks () {
10
+ $('a[href^="http"]').each(function(){
11
+ $(this).attr('target', '_blank');
12
+ });
13
+ }
14
+
15
+ $(document).bind('DOMNodeInserted', function(event) {
16
+ addBlankTargetForLinks();
17
18
19
+</script>
20
{% include nav.html %}
21
22
{{ content }}
23
24
{% include footer.html %}
25
- function addBlankTargetForLinks () {
- $('a[href^="http"]').each(function(){
- $(this).attr('target', '_blank');
- });
-}
26
-$(document).bind('DOMNodeInserted', function(event) {
- addBlankTargetForLinks();
-});
27
28
29
<!-- Image to hack wechat -->
0 commit comments