blob: 17100b154ede9fb8c921fca803aaec1d79491345 [file] [log] [blame]
Paul Greysonbcd3c772013-03-21 13:16:44 -07001function parseURLParameters() {
2 var parameters = {};
3
4 var search = location.href.split('?')[1];
5 if (search) {
6 search.split('&').forEach(function (param) {
7 var key = param.split('=')[0];
8 var value = param.split('=')[1];
9 parameters[key] = decodeURIComponent(value);
10 });
11 }
12
13 return parameters;
14}