diff --git a/js/utils.js b/js/utils.js new file mode 100644 index 0000000..5ab9f65 --- /dev/null +++ b/js/utils.js @@ -0,0 +1,7 @@ + +// http://stackoverflow.com/questions/1403888/get-url-parameter-with-jquery +function getURLParameter(name) { + return decodeURI( + (new RegExp('[&?]'+name + '=' + '(.+?)(&|$)').exec(location.search)||[,null])[1] + ); +}