diff options
author | Joakim Reinert <mail@jreinert.com> | 2015-04-18 23:09:44 +0200 |
---|---|---|
committer | Florian Pritz <bluewind@xinu.at> | 2015-05-05 12:21:26 +0200 |
commit | 9f1fb6e1c8fbe2c54b5d9a7f0755557acd7ea84a (patch) | |
tree | 0f748b6d74d70dc6668ec6055aa4313f42f2230e /data/js/script.js | |
parent | e9a248f9e9ff9a5b816338a634a0ace1d4883471 (diff) |
Refactor line higlighting functionality
Diffstat (limited to 'data/js/script.js')
-rw-r--r-- | data/js/script.js | 15 |
1 files changed, 0 insertions, 15 deletions
diff --git a/data/js/script.js b/data/js/script.js index 9b8319b14..91df1b786 100644 --- a/data/js/script.js +++ b/data/js/script.js @@ -4,21 +4,6 @@ function fixedEncodeURIComponent (str) { (function($) { $(function() { - $(window).bind('hashchange', function(e) { - var hash = window.location.hash; - - $('.highlight_line').removeClass("highlight_line"); - - if (hash.match(/^#n(?:-.+-)?\d+$/) === null) { - return; - } - - var line = $(hash).parent().parent(); - line.addClass("highlight_line"); - }); - - $(window).trigger('hashchange'); - var lexer_source = []; for (var key in window.lexers) { lexer_source.push({ label: window.lexers[key], value: key }); |