diff options
| author | pepperpepperpepper <pepper@scannerjammer.com> | 2015-11-27 23:54:26 -0800 |
|---|---|---|
| committer | pepperpepperpepper <pepper@scannerjammer.com> | 2015-11-27 23:54:26 -0800 |
| commit | 4fd71a291f52267e435ecaebe6b0c4f97c918883 (patch) | |
| tree | cc01bd840701166e86029a89758d3b1988c45307 /share/frontend/gallery-static/js/querystring.js | |
| parent | 11a45143e555fbb5e651f5538a82d046661882a4 (diff) | |
great, rewrote gallery
Diffstat (limited to 'share/frontend/gallery-static/js/querystring.js')
| -rw-r--r-- | share/frontend/gallery-static/js/querystring.js | 13 |
1 files changed, 13 insertions, 0 deletions
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); |
