// $(document).ready(function() { // // /* affix the navbar after scroll below header */ // $('nav').affix({ // offset: { // top: $('.banner').scrollTop() > 1200 - $('nav').height() // // // } // }); // // // // }); $(document).ready(function(){ //$(window).resize(function() { // if($(window).width() > 768) { // $(window).scroll(function() { // if ($(this).scrollTop() > 10){ // $('nav').addClass("sticky"); // } // else{ // $('nav').removeClass("sticky"); // } //}); // } // // //}); //if($(window).width() > 768) { // $(window).scroll(function() { // if ($(this).scrollTop() > 10){ // $('nav').addClass("sticky"); // } // else{ // $('nav').removeClass("sticky"); // } //}); //} }); $(window).load(function(){ $(window).scroll(function () { // var height = $('.top').outerHeight(); if($(this).scrollTop() > 10){ if($('.navbar.sticky').length == 0) { $('.top').append( $('.navbar').clone().addClass('sticky')); } }else{ $('.navbar.sticky').remove(); } }); }); $(document).ready(function() { $("#owl-clients").owlCarousel({ autoPlay: false, pagination : true, items : 6, //10 items above 1000px browser width itemsDesktop : [1000,4], //5 items between 1000px and 901px itemsDesktopSmall : [900,3], // betweem 900px and 601px itemsTablet: [600,2], //2 items between 600 and 0 itemsMobile : 1 // itemsMobile disabled - inherit from itemsTablet option }); }); $('.product-bottom-panels').each(function(){ var $columns = $('.column',this); var maxHeight = Math.max.apply(Math, $columns.map(function(){ return $(this).height(); }).get()); $columns.height(maxHeight); }); $('.show-menu').click(function() { if($('.sfNavWrp .sub-navigation').css('display') == 'none'){ $('.sfNavWrp .sub-navigation').show(); } else { $('.sfNavWrp .sub-navigation').hide(); } });