diff options
| author | pepperpepperpepper <pepper@scannerjammer.com> | 2015-11-17 22:49:33 -0800 |
|---|---|---|
| committer | pepperpepperpepper <pepper@scannerjammer.com> | 2015-11-17 22:49:33 -0800 |
| commit | ad0283d00256228d58828c878425d37398b9c05a (patch) | |
| tree | 78e7c097a88b04db3feb4fbca5cb585211bb5835 /share/frontend/gallery/js/querystring.js | |
| parent | 2f550032693af38a7a5b528336112c904d6b0792 (diff) | |
finishing gallery
Diffstat (limited to 'share/frontend/gallery/js/querystring.js')
| -rw-r--r-- | share/frontend/gallery/js/querystring.js | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/share/frontend/gallery/js/querystring.js b/share/frontend/gallery/js/querystring.js new file mode 100644 index 0000000..79c2a4d --- /dev/null +++ b/share/frontend/gallery/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); |
