From f15d3344ddafd0bd2e4ed4f22b47f4b897f42b20 Mon Sep 17 00:00:00 2001 From: Filippo <45kb@users.noreply.github.com> Date: Thu, 9 Jul 2015 11:24:54 +0200 Subject: [PATCH 1/2] Updated README.md --- README.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index e111b14..5b8bb5b 100644 --- a/README.md +++ b/README.md @@ -138,7 +138,7 @@ Highlighter.select(''); Sometime you could need to work only on visible/viewable elements, so, to skip invisible or hidden elements, set the option ```{ viewable:true}``` ```javascript -var Highlighter = new window.Highlighter({ +var Highlighter = new Highlighter({ 'viewable':true //this way Highlighter.js will exclude/avoid selecting or highlighting hidden/invisible elements }); ``` @@ -146,7 +146,7 @@ var Highlighter = new window.Highlighter({ ####Scroll to the underlined element Sometime you could need to scroll to the current underlined element, so, to automatically scroll to it once is underlined you can set the options ```{scroll:true, scrollDuration: 500 }``` ```javascript -var Highlighter = new window.Highlighter({ +var Highlighter = new Highlighter({ 'scroll':true, //Automatically scroll to the underlined element 'scrollDuration': 500 //milliseconds }); From 432127e63440a02b2bf257e16a11d078b2ccc4f0 Mon Sep 17 00:00:00 2001 From: Filippo <45kb@users.noreply.github.com> Date: Thu, 9 Jul 2015 11:26:09 +0200 Subject: [PATCH 2/2] Updated README.md --- README.md | 1 + 1 file changed, 1 insertion(+) diff --git a/README.md b/README.md index 5b8bb5b..81b4806 100644 --- a/README.md +++ b/README.md @@ -154,6 +154,7 @@ var Highlighter = new Highlighter({ ##Gtk - Not yet 100% ready for production +- isVisible() control need a deep check, it could probably mistake at any time - Scroller is a bit horrible atm - If no selectable next elements, Highlighter will restart from the first element in DOM - If no selectable previous elements, Highlighter will restart from the first element in DOM