This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| function parseSearchString () { | |
| var qs = window.location.search | |
| qs = qs.replace(/^\?/,'') | |
| var parts = qs.split('&') | |
| var params = {} | |
| parts.forEach(function (part) { | |
| var pair = part.split('=') | |
| params[pair[0]] = decodeURIComponent(pair[1]) | |
| }) | |
| return params |