From 13046a0337a3e5d8359cd2d8e01426683ea7bcc1 Mon Sep 17 00:00:00 2001 From: Hakim El Hattab Date: Fri, 8 Mar 2013 19:48:30 -0500 Subject: [PATCH] merge search plugin, adjust styles --- index.html | 1 + plugin/search/search.js | 7 +++++-- 2 files changed, 6 insertions(+), 2 deletions(-) diff --git a/index.html b/index.html index bc2f360..a226ad7 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 29add45..ae6582e 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 ) {