Skip to content

Instantly share code, notes, and snippets.

@tal
Created December 21, 2011 21:55
Show Gist options
  • Select an option

  • Save tal/1507890 to your computer and use it in GitHub Desktop.

Select an option

Save tal/1507890 to your computer and use it in GitHub Desktop.
function PageParams() {}
GC.pageParams = new PageParams();
_.each(window.location.search.replace(/^\?/,'').split('&'), function(paramSet) {
var array = paramSet.split('=');
GC.pageParams[array[0]] = array[1];
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment