diff --git a/themes/geronimo/static/js/fixedsearch.js b/themes/geronimo/static/js/fixedsearch.js new file mode 100644 index 0000000..2337ca2 --- /dev/null +++ b/themes/geronimo/static/js/fixedsearch.js @@ -0,0 +1,242 @@ +// static/scripts/fixedsearch/fixedsearch.js +/*-------------------------------------------------------------- +fixedsearch — Super fast, client side search for Hugo.io with Fusejs.io +based on https://gist.github.com/cmod/5410eae147e4318164258742dd053993 +--------------------------------------------------------------*/ + +if (typeof variable !== 'undefined') { + console.log('fixedsearch.js already loaded'); +} else { +fixedsearch = function(){ + var search_form = document.getElementById('search-form'); // search form + var search_input = document.getElementById('search-input'); // input box for search + var search_submit = document.getElementById('search-submit'); // form submit button + var search_results = document.getElementById('search-results'); // targets the