aboutsummaryrefslogtreecommitdiff
path: root/sileodepictions/js/jquery.querystring.js
diff options
context:
space:
mode:
authorStrugglingDoge <cbckelley@yahoo.com>2019-04-30 21:12:37 -0400
committerStrugglingDoge <cbckelley@yahoo.com>2019-04-30 21:12:37 -0400
commit80603494574a93527505c0d03efddbf98f28dfad (patch)
tree44f1961479909fc8230946d072962dae33b8b94b /sileodepictions/js/jquery.querystring.js
Initial Commit
Diffstat (limited to 'sileodepictions/js/jquery.querystring.js')
-rw-r--r--sileodepictions/js/jquery.querystring.js13
1 files changed, 13 insertions, 0 deletions
diff --git a/sileodepictions/js/jquery.querystring.js b/sileodepictions/js/jquery.querystring.js
new file mode 100644
index 0000000..507d005
--- /dev/null
+++ b/sileodepictions/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);