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
log = function (kwargs) { | |
try { | |
var console = window.console, | |
debug = | |
window.location.toString().indexOf('_mode=debug') !== -1; | |
kwargs = $.extend({ | |
name: '', | |
id: '', | |
args: [] |
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
queryParams: function() { | |
var query = {}, | |
search = window.location.search, | |
fields = ['postalcode', 'range', 'franchise']; | |
fields.map(function(param){ | |
var p = escape(unescape(param)), | |
regex = new RegExp("[?&]" + p + "(?:=([^&]*))?","i"), | |
match = regex.exec(search); | |
if(match == null) return; |
NewerOlder