This file contains 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 urlParams = (function () { | |
var _params={}, | |
e, | |
a = /\+/g, // Regex for replacing addition symbol with a space | |
r = /([^&=]+)=?([^&]*)/g, | |
d = function (s) { return decodeURIComponent(s.replace(a, " ")); }, | |
q = window.location.search.substring(1); | |
while (e = r.exec(q)) { | |
_params[d(e[1])] = d(e[2]); |
This file contains 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
$.fn.inputPlaceholder = function(options){ | |
return $(this).each(function() { | |
var options = jQuery.extend({ | |
text: $(this).attr('placeholder') | |
},options); | |
if($(this).val() == '') { | |
$(this).val(options.text); | |
} | |
$(this) |
This file contains 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 Logger = (function() { | |
return { | |
active: true, | |
post: false, | |
log: function(obj, type) { | |
if(Logger.active) { | |
console.log(obj); | |
} | |
if(Logger.post) { | |
$.post(Logger.post, { |
NewerOlder