Advertisement
Guest User

Untitled

a guest
Oct 19th, 2019
114
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.23 KB | None | 0 0
  1. function getHashFilter() {
  2. var hash = location.hash;
  3. // get filter=filterName
  4. var matches = location.hash.match( /filter=([^&]+)/i );
  5. var hashFilter = matches && matches[1];
  6. return hashFilter && decodeURIComponent( hashFilter );
  7. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement