Created
November 16, 2015 12:01
-
-
Save doofy-dev/87d6481cd1bd039df1f7 to your computer and use it in GitHub Desktop.
This file contains hidden or 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
function getParam(param){ | |
var params = location.href.match(/(\w+)=(\d+)/g); | |
for(var i=0;i<params.length;i++){ | |
var split = params[i].split('='); | |
if(split[0]==param) | |
return split[1]; | |
} | |
return null; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment