Created
June 29, 2018 11:49
-
-
Save Zorono/06f8c39eea2eca05ccbc3a77f15f20f6 to your computer and use it in GitHub Desktop.
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
var $_GET = {}; | |
if(document.location.toString().indexOf('?') !== -1) | |
{ | |
var query = document.location.toString() .replace(/^.*?\?/, '').replace(/#.*$/, '').split('&'); | |
for(var i=0, l=query.length; i<l; i++) | |
{ | |
var aux = decodeURIComponent(query[i]).split('='); | |
$_GET[aux[0]] = aux[1]; | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment