mirror of
https://github.com/Doodle3D/doodle3d-client.git
synced 2024-11-24 18:17:56 +01:00
new utils file for general methods. This first method grabs the query string variables from the URL
This commit is contained in:
parent
7da38d2e98
commit
70b59c923a
7
js/utils.js
Normal file
7
js/utils.js
Normal file
@ -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]
|
||||
);
|
||||
}
|
Loading…
Reference in New Issue
Block a user