maison_alexandra/www/js/comingSoon.js

46 lines
1.1 KiB
JavaScript

(function() {
ComingSoon = (function() {
function ComingSoon(){
// Document ready - show content
this.getDevice();
this.showContent();
}
ComingSoon.dt = {};
ComingSoon.browser = {};
ComingSoon.prototype.pr = function(obj){
if("console" in window){
if(typeof(obj) != 'object'){
console.log(obj);
}else{
console.dir(obj);
}
}
};
ComingSoon.prototype.getDevice = function(){
var ua = navigator.userAgent.toLowerCase();
this.browser = {
idevice: ua.match(/(iphone|ipod|ipad)/),
blackberry: ua.match(/blackberry/),
android: ua.match(/android/),
firefox: ua.match(/firefox/)
}
};
ComingSoon.prototype.showContent = function(){
setTimeout(function(){
$(".base").fadeIn("slow");
}, 100);
};
return ComingSoon;
})();
Base = new ComingSoon();
}).call(this);