From: Hakim El Hattab Date: Sat, 9 Mar 2013 00:48:30 +0000 (-0500) Subject: merge search plugin, adjust styles X-Git-Tag: 2.3.0~3 X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=13046a0337a3e5d8359cd2d8e01426683ea7bcc1;p=reveal.js.git merge search plugin, adjust styles --- 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 ) {