diff --git a/index.html b/index.html index bc2f3601..a226ad77 100644 --- a/index.html +++ b/index.html @@ -367,6 +367,7 @@ function linkify( selector ) { { src: 'plugin/highlight/highlight.js', async: true, callback: function() { hljs.initHighlightingOnLoad(); } }, { src: 'plugin/zoom-js/zoom.js', async: true, condition: function() { return !!document.body.classList; } }, { src: 'plugin/notes/notes.js', async: true, condition: function() { return !!document.body.classList; } } + // { src: 'plugin/search/search.js', async: true, condition: function() { return !!document.body.classList; } } // { src: 'plugin/remotes/remotes.js', async: true, condition: function() { return !!document.body.classList; } } ] }); diff --git a/plugin/search/search.js b/plugin/search/search.js index 29add45a..ae6582e7 100644 --- a/plugin/search/search.js +++ b/plugin/search/search.js @@ -155,13 +155,16 @@ function Hilitor(id, tag) var searchElement = document.createElement( 'div' ); searchElement.id = "searchinputdiv"; searchElement.classList.add( 'searchdiv' ); + searchElement.style.position = 'absolute'; + searchElement.style.top = '10px'; + searchElement.style.left = '10px'; //embedded base64 search icon Designed by Sketchdock - http://www.sketchdock.com/: - searchElement.innerHTML = ''; + searchElement.innerHTML = ''; dom.wrapper.appendChild( searchElement ); } document.getElementById("searchbutton").addEventListener( 'click', function(event) { - toggleSearch(); + doSearch(); }, false ); document.getElementById("searchinput").addEventListener( 'keyup', function( event ) {