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 244d3e4 commit 2b28bb4Copy full SHA for 2b28bb4
root/source.html
@@ -71,7 +71,4 @@
71
<% IF module.sloc > 0 %>
72
togglePod();
73
<% END %>
74
-if(document.location.hash)
75
- document.location.href = document.location.href;
76
-});
77
</script>
root/static/js/syntaxhighlighter.js
@@ -157,6 +157,12 @@ $(function () {
157
$(el).contents().wrap('<a href="#'+id+'" id="'+id+'"></a>');
158
}
159
});
160
+
161
+ var res;
162
+ if (res = document.location.hash.match(/^(#L\d+)(-|,|$)/)) {
163
+ var el = $(res[1]);
164
+ $('html, body').scrollTop(el.offset().top);
165
+ }
166
167
168
0 commit comments