Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- function getHashFilter() {
- var hash = location.hash;
- // get filter=filterName
- var matches = location.hash.match( /filter=([^&]+)/i );
- var hashFilter = matches && matches[1];
- return hashFilter && decodeURIComponent( hashFilter );
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement