Guest User

Untitled

a guest
Oct 18th, 2018
94
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.18 KB | None | 0 0
  1. // this object gets filled with params
  2. var params = {};
  3.  
  4. // split and map parameters
  5. location.search.substr(1).split('&').map(function(p) {
  6. p = p.split('=');
  7. params[p[0]] = p[1] || 1;
  8. });
Add Comment
Please, Sign In to add comment