Author: | EastingAndNorthing |
---|---|
Views Total: | 231 views |
Official Page: | Go to website |
Last Update: | August 28, 2017 |
License: | MIT |
Preview:

Description:
urlhash.js is a URL hash handling JavaScript library that allows you to set and get URL parameters in the current location of the document.
How to use it:
Install it with NPM:
$ npm install urlhash
Install it with browser:
<script src="dist/urlhash.min.js"></script>
Initialize the urlhash and specify the default parameter:
window.urlhash = new urlHash({ default: 'hello' });
Set a URL hash:
urlhash.set( params )
Get the current URL hash.
urlhash.get( parameter, parse )