//MATHS var MathUtils = new Object(); MathUtils.getRandomArbitary = function(min, max) { return Math.random() * (max - min) + min; } //UI var FormUtils = new Object(); FormUtils.inputPlaceholder = function($input){ var placeholder = $input.attr('placeholder'); //console.log($input.attr('id'), $input.hasClass('watermark')); if(placeholder && !$input.hasClass('watermark')){ //console.log($input.attr('id'), $input.hasClass('watermark')); $input.watermark(placeholder); } } //Browsers var BrowserDetect = { init: function () { this.browser = this.searchString(this.dataBrowser) || "An unknown browser"; this.version = this.searchVersion(navigator.userAgent) || this.searchVersion(navigator.appVersion) || "an unknown version"; this.OS = this.searchString(this.dataOS) || "an unknown OS"; }, // Ie Fix isIE:function(){ return ((navigator.appName == 'Microsoft Internet Explorer') || ((navigator.appName == 'Netscape') && (new RegExp("Trident/.*rv:([0-9]{1,}[\.0-9]{0,})").exec(navigator.userAgent) != null))); }, searchString: function (data) { for (var i=0;i