From 9f1fb6e1c8fbe2c54b5d9a7f0755557acd7ea84a Mon Sep 17 00:00:00 2001 From: Joakim Reinert Date: Sat, 18 Apr 2015 23:09:44 +0200 Subject: Refactor line higlighting functionality --- data/js/script.js | 15 --------------- 1 file changed, 15 deletions(-) (limited to 'data/js/script.js') 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 }); -- cgit v1.2.3-24-g4f1b