/* \nIt's a simple function to get the URL params,\nyou can send the URL within the method parameters \nor you can use 'window.location.href' to get the actual URL.\n\nObs: This only works for all the URL, if you just want to \nsend the params (after the '?'), you have to send a '?' before the params. \n*/\n\nfunctiongetUrlParams(url){\nvarparams={};\n\nurl.replace(/[?&]+([^=&]+)=([^&]*)/gi,function(str,key,value){\nparams[key]=value;\n});\n\nreturnparams;\n}\n