Skip to content

Instantly share code, notes, and snippets.

@stpettersens
Last active August 29, 2015 14:24
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save stpettersens/e1f4478f299b6f4905c1 to your computer and use it in GitHub Desktop.
Save stpettersens/e1f4478f299b6f4905c1 to your computer and use it in GitHub Desktop.
jquery-urlparam
/*
jQuery module to get URL parameters.
Copied from: http://stackoverflow.com/questions/19491336/get-url-parameter-jquery
Minified.
*/
$.urlParam=function(a){var b=new RegExp("[?&]"+a+"=([^&#]*)").exec(window.location.href);if(b==null){return null}else{return b[1]||0}};
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment