var isMobile = { Android: function() { "use strict"; return navigator.userAgent.match(/Android/i) ? true : false; }, BlackBerry: function() { "use strict"; return navigator.userAgent.match(/BlackBerry/i) ? true : false; }, iOS: function() { "use strict"; return navigator.userAgent.match(/iPhone|iPad|iPod/i) ? true : false; }, Windows: function() { "use strict"; return navigator.userAgent.match(/IEMobile/i) ? true : false; }, any: function() { "use strict"; return (isMobile.Android() || isMobile.BlackBerry() || isMobile .iOS() || isMobile.Windows()); } }; $(function() { "use strict"; if (!isMobile.any()) { var s = skrollr.init({ forceHeight: false } // // { // render: function(data) { // //Log the current scroll position. // //console.log(data.curTop); // $('#offset').text(data.curTop); // } // } ); } }); new WOW().init(); jQuery(document).ready(function() { "use strict"; jQuery('.fancybox').fancybox({ padding: 0, openEffect: 'elastic' }); }); jQuery(document).ready(function() { "use strict"; jQuery('#owl-customers').owlCarousel({ margin: 10, nav: true, loop: true, autoplay: true, autoplayTimeout: 5000, responsive: { 0: { items: 1 }, 768: { items: 1 }, 1200: { items: 1 } } }); }); jQuery(document).ready(function() { "use strict"; jQuery('#owl-laptop').owlCarousel({ margin: 10, nav: true, loop: true, autoplay: true, autoplayTimeout: 5000, responsive: { 0: { items: 1 }, 768: { items: 1 }, 1200: { items: 1 } } }); }); jQuery(document).ready(function() { "use strict"; jQuery('#owl-logos').owlCarousel({ margin: 10, nav: true, loop: true, autoplay: true, autoplayTimeout: 5000, responsive: { 0: { items: 6 }, 768: { items: 8 }, 1200: { items: 9 } } }); }); jQuery(document).ready(function() { "use strict"; jQuery('#owl-projects').owlCarousel({ margin: 10, nav: true, loop: true, autoplay: true, autoplayTimeout: 5000, responsive: { 0: { items: 1 }, 768: { items: 2 }, 1200: { items: 4 } } }); }); jQuery(document).ready(function() { "use strict"; jQuery('#owl-related').owlCarousel({ margin: 10, nav: true, loop: true, autoplay: true, autoplayTimeout: 5000, responsive: { 0: { items: 1 }, 768: { items: 2 }, 1200: { items: 3 } } }); }); jQuery(document).ready(function() { "use strict"; jQuery('#owl-services').owlCarousel({ margin: 10, nav: true, loop: true, autoplay: true, autoplayTimeout: 5000, responsive: { 0: { items: 1 }, 768: { items: 2 }, 1200: { items: 2 } } }); }); jQuery(document).ready(function() { "use strict"; jQuery('#owl-single').owlCarousel({ margin: 10, nav: true, loop: true, autoplay: true, autoplayTimeout: 5000, responsive: { 0: { items: 1 }, 768: { items: 1 }, 1200: { items: 1 } } }); }); jQuery(document).ready(function() { "use strict"; jQuery('#owl-about').owlCarousel({ margin: 10, nav: true, loop: true, autoplay: true, autoplayTimeout: 5000, responsive: { 0: { items: 1 }, 768: { items: 1 }, 1200: { items: 1 } } }); }); jQuery(document).ready(function() { "use strict"; jQuery('#owl-team').owlCarousel({ margin: 10, nav: true, loop: true, autoplay: true, autoplayTimeout: 5000, responsive: { 0: { items: 1 }, 768: { items: 2 }, 1200: { items: 4 } } }); }); jQuery(document).ready(function() { "use strict"; jQuery('#owl-breadcrumb').owlCarousel({ margin: 10, nav: true, loop: true, autoplay: true, autoplayTimeout: 15000, responsive: { 0: { items: 1 }, 768: { items: 3 }, 1200: { items: 3 } } }); }); jQuery(document).ready(function() { "use strict"; jQuery('#owl-testimonials').owlCarousel({ margin: 10, nav: true, loop: true, autoplay: true, autoplayTimeout: 5000, responsive: { 0: { items: 1 }, 768: { items: 1 }, 1200: { items: 1 } } }); }); jQuery(document).ready(function() { "use strict"; jQuery('#social-icon').owlCarousel({ margin: 10, nav: true, loop: true, autoplay: true, autoplayTimeout: 5000, responsive: { 0: { items: 2 }, 768: { items: 4 }, 1200: { items: 6 } } }); }); jQuery(document).ready(function() { "use strict"; if (jQuery().countdown) { jQuery('#countdown').countdown({ until: new Date(2015, 12 - 3, 25) }); } }); jQuery(document).ready(function() { "use strict"; jQuery(".thumb-load").click(function() { jQuery(this).children("img").show(); var t = jQuery(this).children("img"); setTimeout(function() { t.hide(); }, 2e3), jQuery(".thumb-hide").delay(2e3).slideDown() }); }); $('#bs-welcome').carousel({ interval: 15000 }); $('#bs-quotes').carousel({ interval: 20000 }); $('#bs-testimonials').carousel({ interval: 25000 }); $('#ibc').carousel({ interval: 30000 }); $('#jumbo-carousel').carousel({ interval: 8000 }); // jQuery(window).load(function() { //"use strict"; // setTimeout(function() { // jQuery('.progress-bar').addClass('stretchRight'); //}, 2000); // }); jQuery(function($) { jQuery('#background-video').YTPlayer({ fitToBackground: false, videoId: 'zaIy-W01fuo', pauseOnScroll: true, start: 3, callback: function() { var player = jQuery('#background-video').data('ytPlayer').player; console.log("callback", player); } }); }); jQuery(document).ready(function () { jQuery('.phone').delay(0).fadeIn(1000); //$('.menu-top').fadeIn(2200); // OR $('.menu-top').show(2200); // OR $('.menu-top').slideDown("slow"); }); jQuery(document).ready(function () { jQuery('.social-icons').delay(500).fadeIn(1000); //$('.menu-top').fadeIn(2200); // OR $('.menu-top').show(2200); // OR $('.menu-top').slideDown("slow"); }); jQuery(document).ready(function () { jQuery('.google-search').delay(1500).fadeIn(1000); //$('.menu-top').fadeIn(2200); // OR $('.menu-top').show(2200); // OR $('.menu-top').slideDown("slow"); }); jQuery(document).ready(function () { jQuery('.menu-top').delay(2500).fadeIn(1000); //$('.menu-top').fadeIn(2200); // OR $('.menu-top').show(2200); // OR $('.menu-top').slideDown("slow"); });