From 4fd71a291f52267e435ecaebe6b0c4f97c918883 Mon Sep 17 00:00:00 2001 From: pepperpepperpepper Date: Fri, 27 Nov 2015 23:54:26 -0800 Subject: great, rewrote gallery --- share/frontend/gallery-static/js/querystring.js | 13 +++++++++++++ 1 file changed, 13 insertions(+) create mode 100644 share/frontend/gallery-static/js/querystring.js (limited to 'share/frontend/gallery-static/js/querystring.js') diff --git a/share/frontend/gallery-static/js/querystring.js b/share/frontend/gallery-static/js/querystring.js new file mode 100644 index 0000000..79c2a4d --- /dev/null +++ b/share/frontend/gallery-static/js/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-70-g09d2