diff --git a/README.md b/README.md index c229126..6bcd954 100644 --- a/README.md +++ b/README.md @@ -2,7 +2,6 @@ PriorityNav is a pure javascript plugin that will move your menu items if they don't fit its parent. ![Priority Navigation demo](http://gijsroge.github.io/priority-nav.js/priority-nav-demo.gif) -#### Take a look at the **[Demo](http://gijsroge.github.io/priority-nav.js/)** site. ---------- @@ -58,6 +57,7 @@ breakPoint: 500, //amount of pixels when all menu items should b throttleDelay: 50, // this will throttle the calculating logic on resize because i'm a responsible dev. offsetPixels: 0, // increase to decrease the time it takes to move an item. count: true, // prints the amount of items are moved to the attribute data-count to style with css counter. +hiddenAfterClick: false, // hide dropdown after click on inside elemants. //Callbacks moved: function () {}, // executed when item is moved to dropdown diff --git a/demo/css/main.css b/demo/css/main.css index d67fa5a..1a76aca 100644 --- a/demo/css/main.css +++ b/demo/css/main.css @@ -465,7 +465,7 @@ h1 { nav { background-color: black; - margin: 7rem 0; + margin: 0 0 7rem; padding: 0 4rem; min-width: 200px; position: relative; diff --git a/demo/index.html b/demo/index.html index 8a4b282..a850cbe 100644 --- a/demo/index.html +++ b/demo/index.html @@ -1,4 +1,4 @@ - + @@ -22,47 +22,66 @@

You are using an outdated browser. Please upgrade your browser to improve your experience.

-
-
-

PriorityNav.js

- - - - - - - - download on GitHub -
- -
-

- PriorityNav is a lightweight pure javascript plugin that will move your menu items if they don't fit its parent. -

- -
-
+
Stayed open dropdown after click
-
- - -
-

- - PriorityNav is developed by @gijsroge & weighs - around 5kb - & 2kb gzipped. The idea behind this plugin is based around the priority+ navigation from - Brad Frost. - -

- -

- PriorityNav is licensed under the MIT license which basically means you can do whatever you want as - long - as you include the original copyright and license notice in any copy of the software/source. -

- -

- -

- Browsers support:
ie9+ (if you include classList.js), Chrome, Firefox, Safari, Opera. (mobile & desktop) -

-
-
+
+

+ + PriorityNav is developed by @gijsroge & weighs + around 5kb + & 2kb gzipped. The idea behind this plugin is based around the priority+ navigation from + Brad Frost. + +

+ +

+ PriorityNav is licensed under the MIT license which basically means you can do whatever you want as + long + as you include the original copyright and license notice in any copy of the software/source. +

+ +

+ +

+ Browsers support:
ie9+ (if you include classList.js), Chrome, Firefox, Safari, Opera. (mobile & desktop) +

+
+