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.
2 parents b5a4d6f + 95558c6 commit ef868baCopy full SHA for ef868ba
_layouts/default.html
@@ -5,14 +5,27 @@
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
26
27
28
29
<!-- Image to hack wechat -->
30
<img src="/img/icon_wechat.png" width="0" height="0" />
31
<!-- Migrate from head to bottom, no longer block render and still work -->
0 commit comments