jQuery(function($){if($('.ht-sticky-header').length>0){$(window).scroll(function(){if($(window).scrollTop()>34){$('#ht-masthead').addClass('ht-sticky');}else{$('#ht-masthead').removeClass('ht-sticky');}});} if($('#ht-bx-slider .ht-slide').length>0){$('#ht-bx-slider').owlCarousel({autoplay:true,items:1,loop:true,nav:true,dots:false,autoplayTimeout:7000,animateOut:'fadeOut'});} $('.ht-testimonial-slider').owlCarousel({autoplay:true,items:1,loop:true,nav:true,dots:false,autoplayTimeout:7000,navText:[' ',' ']});$(".ht_client_logo_slider").owlCarousel({autoplay:true,items:5,loop:true,nav:false,dots:false,autoplayTimeout:5000,responsive:{0:{items:2,},768:{items:3,},979:{items:4,},1200:{items:5,}}});$('.ht-portfolio-image').nivoLightbox();var sf=$('.ht-menu > ul').superfish({delay:500,animation:{opacity:'show',height:'show'},speed:'fast',});$(window).resize(function(){if($(window).width()<1000){sf.superfish('destroy');$('.ht-dropdown').removeClass('ht-opened');}else{sf.superfish('init');}}).resize();$('.menu-item-has-children > a').append(' ');$('.ht-dropdown').on('click',function(){$(this).parent('a').next('ul').slideToggle();$(this).toggleClass('ht-opened');return false;}) $('.ht-service-excerpt h5').click(function(){$(this).next('.ht-service-text').slideToggle();$(this).parents('.ht-service-post').toggleClass('ht-active');});$('.ht-service-icon').click(function(){$(this).next('.ht-service-excerpt').find('.ht-service-text').slideToggle();$(this).parent('.ht-service-post').toggleClass('ht-active');});$('.toggle-bar').click(function(){$(this).next('.ht-main-navigation').slideToggle();totalKeyboardLoop($('.ht-main-navigation'));return false;});setTimeout(function(){$.stellar({horizontalScrolling:false,responsive:true,});},3000);$('.ht-team-counter-wrap').waypoint(function(){setTimeout(function(){$('.odometer1').html($('.odometer1').data('count'));},500);setTimeout(function(){$('.odometer2').html($('.odometer2').data('count'));},1000);setTimeout(function(){$('.odometer3').html($('.odometer3').data('count'));},1500);setTimeout(function(){$('.odometer4').html($('.odometer4').data('count'));},2000);},{offset:800,triggerOnce:true});if($('.ht-sticky-header').length>0){var onpageOffset=74;}else{onpageOffset=0} $('.ht-sticky-header .ht-menu').onePageNav({currentClass:'current',changeHash:false,scrollSpeed:750,scrollThreshold:0.1,scrollOffset:onpageOffset});var anchorId=window.location.hash;anchorId=anchorId.replace('/','');if($(anchorId).length>0){$('html, body').animate({scrollTop:$(anchorId).offset().top-onpageOffset},1000);} $(window).scroll(function(){if($(window).scrollTop()>300){$('#ht-back-top').removeClass('ht-hide');}else{$('#ht-back-top').addClass('ht-hide');}});$('#ht-back-top').click(function(){$('html,body').animate({scrollTop:0},800);});if($('.ht-portfolio-posts').length>0){var first_class=$('.ht-portfolio-cat-name:first').data('filter');$('.ht-portfolio-cat-name:first').addClass('active');var $container=$('.ht-portfolio-posts').imagesLoaded(function(){$container.isotope({itemSelector:'.ht-portfolio',filter:first_class});var elems=$container.isotope('getFilteredItemElements');elems.forEach(function(item,index){if(index==0||index==4||index==11||index==14||index==21||index==24){$(item).addClass('wide');var bg=$(item).find('.ht-portfolio-image').attr('href');$(item).find('.ht-portfolio-wrap').css('background-image','url('+bg+')');}else{$(item).removeClass('wide');}});GetMasonary();setTimeout(function(){$container.isotope({itemSelector:'.ht-portfolio',filter:first_class,});},2000);$(window).on('resize',function(){GetMasonary();});});$('.ht-portfolio-cat-name-list').on('click','.ht-portfolio-cat-name',function(){var filterValue=$(this).attr('data-filter');$container.isotope({filter:filterValue});var elems=$container.isotope('getFilteredItemElements');elems.forEach(function(item,index){if(index==0||index==4||index==11||index==14||index==21||index==24){$(item).addClass('wide');var bg=$(item).find('.ht-portfolio-image').attr('href');$(item).find('.ht-portfolio-wrap').css('background-image','url('+bg+')');}else{$(item).removeClass('wide');}});GetMasonary();var filterValue=$(this).attr('data-filter');$container.isotope({filter:filterValue});$('.ht-portfolio-cat-name').removeClass('active');$(this).addClass('active');});function GetMasonary(){var winWidth=window.innerWidth;if(winWidth>580){$container.find('.ht-portfolio').each(function(){var image_width=$(this).find('img').width();if($(this).hasClass('wide')){$(this).find('.ht-portfolio-wrap').css({height:(image_width*2)+10+'px'});}else{$(this).find('.ht-portfolio-wrap').css({height:image_width+'px'});}});}else{$container.find('.ht-portfolio').each(function(){var image_width=$(this).find('img').width();if($(this).hasClass('wide')){$(this).find('.ht-portfolio-wrap').css({height:(image_width*2)+5+'px'});}else{$(this).find('.ht-portfolio-wrap').css({height:image_width+'px'});}});}}} var totalKeyboardLoop=function(elem){var tabbable=elem.find('select, input, textarea, button, a').filter(':visible');var firstTabbable=tabbable.first();var lastTabbable=tabbable.last();firstTabbable.focus();lastTabbable.on('keydown',function(e){if((e.which===9&&!e.shiftKey)){e.preventDefault();firstTabbable.focus();}});firstTabbable.on('keydown',function(e){if((e.which===9&&e.shiftKey)){e.preventDefault();lastTabbable.focus();}});elem.on('keyup',function(e){if(e.keyCode===27){elem.hide();};});};var swiper=new Swiper('#product_options.swiper-container',{slidesPerView:1,spaceBetween:10,pagination:{el:'#product_options .swiper-pagination',clickable:true,},scrollbar:{el:'#product_options .swiper-scrollbar',draggable:true,hide:false,},breakpoints:{360:{slidesPerView:2,spaceBetween:20,},540:{slidesPerView:3,spaceBetween:20,},768:{slidesPerView:4,spaceBetween:30,},992:{slidesPerView:5,spaceBetween:30,},}});$(document).ready(function(){var ht_fp_el=document.getElementById("ht-frontpage");if(ht_fp_el){document.getElementById("ht-frontpage").style.visibility="visible";}});});
Baidu
map