Commit 8ab0ed7b authored by Robert Lord's avatar Robert Lord

Merge pull request #265 from realityking/unusedjs

Remove some unused JS.
parents 1f4e6b91 a38011b4
......@@ -54,7 +54,6 @@ under the License.
}
function setupLanguages(l) {
var currentLanguage = l[0];
var defaultLanguage = localStorage.getItem("language");
languages = l;
......@@ -81,7 +80,7 @@ under the License.
activateLanguage(language);
return false;
});
window.onpopstate = function(event) {
window.onpopstate = function() {
activateLanguage(window.location.search.substr(1));
};
});
......
//= require ../lib/_lunr
//= require ../lib/_jquery.highlight
(function (global) {
(function () {
'use strict';
var $global = $(global);
var content, darkBox, searchResults;
var content, searchResults;
var highlightOpts = { element: 'span', className: 'search-highlight' };
var index = new lunr.Index();
......@@ -31,7 +30,6 @@
function bind() {
content = $('.content');
darkBox = $('.dark-box');
searchResults = $('.search-results');
$('#input-search').on('keyup', search);
......@@ -73,5 +71,4 @@
function unhighlight() {
content.unhighlight(highlightOpts);
}
})(window);
})();
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment