# hashNav
Lets you add/remove classes and show and hide elements based on hash tag. You can use it to create hash based navigation menus.

# hashNav
Lets you add/remove classes and show and hide elements based on hash tag. You can use it to create hash based navigation menus.

For example to show and hide full screen menu

```javascript
var h = new hashNav();
h.add('menu'); //will set style d:n d:b 
```
 
     <div id = 'menu'> .... //give menu id to div that needs to become visible, usually container div.
     
     <a href='#menu'> Show menu </a>
     
Once menu is visible pressing backspace or back button on browser will hide it again. 

Furthermore..

you can assign a class or classes to element that needs to be applied and removed. Instead of just default behavior which sets `display:none` and `display:block`.

     h.add('heading', 'red bo'); // or you can tell what class(es) to add and remove
     h.add('pp', 'red bo');
     
[Jsfiddle Demo](http://jsfiddle.net/0uk0g0qq/9/)

Add initial docs to readme
Add initial docs to readme