From 80603494574a93527505c0d03efddbf98f28dfad Mon Sep 17 00:00:00 2001 From: StrugglingDoge Date: Tue, 30 Apr 2019 21:12:37 -0400 Subject: Initial Commit --- depictions/js/jquery.querystring.js | 13 +++++++++++++ 1 file changed, 13 insertions(+) create mode 100644 depictions/js/jquery.querystring.js (limited to 'depictions/js/jquery.querystring.js') diff --git a/depictions/js/jquery.querystring.js b/depictions/js/jquery.querystring.js new file mode 100644 index 0000000..507d005 --- /dev/null +++ b/depictions/js/jquery.querystring.js @@ -0,0 +1,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); -- cgit v1.2.3