Last active
August 29, 2015 14:24
-
-
Save stpettersens/e1f4478f299b6f4905c1 to your computer and use it in GitHub Desktop.
jquery-urlparam
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* | |
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