aboutsummaryrefslogtreecommitdiff
path: root/sileodepictions/js/jquery.querystring.js
blob: 507d005c30df9b8cf4df89c6c24e18abac805e14 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
(function($) {
	$.QueryString = (function(a) {
		if (a == "") return {};
		var b = {};
		for (var i = 0; i < a.length; ++i)
		{
			var p=a[i].split('=');
			if (p.length != 2) continue;
			b[p[0]] = decodeURIComponent(p[1].replace(/\+/g, " "));
		}
		return b;
	})(window.location.search.substr(1).split('&'))
})(jQuery);