;$(function(){ new WOW().init(); $('.side-menu a').filter(function () { if ($(".bread-crumbs a").length > 2){ 聽 聽 聽 聽if ($(this).html() == $('.bread-crumbs span').html() && $(this).parents('ul').parents('li').children('a').attr('href') == $('.bread-crumbs a').last().attr('href')) { $('.side-menu a').removeClass('active'); $(this).addClass('active'); }else if ($(this).attr('href') == $('.bread-crumbs a').last().attr('href')){ $(this).addClass('active'); } }else{ 聽 聽 聽 聽if ($(this).html() == $('.bread-crumbs span').html()) { $('.side-menu a').removeClass('active'); $(this).addClass('active'); }else if ($(this).attr('href') == $('.bread-crumbs a').last().attr('href')){ $(this).addClass('active'); } } }); var oSerBtn = $('.h-search'), oSerBox = $('.search-box'), oSerClose = oSerBox.find('.close'); oSerBtn.click(function() { oSerBox.fadeIn(200); }); oSerClose.click(function() { oSerBox.hide(); }); $("#menu-on").add($("#menu-off")).click(function (e) { $("#mobile").toggleClass('active'); }); $("#gotop").click(function () { $("body,html").animate({scrollTop:0},1500) }) $(window).scroll(function () { if ($(document).scrollTop() > 100) { $("#header").addClass('active'); }else { $("#header").removeClass('active'); } }) $(".bot-box .clearfix").slick({ autoplay: true, pauseOnHover: false, speed: 1500, autoplaySpeed: 5000, slidesToShow:4, prevArrow:'.i-scroll-bar .head-box .tab-arr .fa.fa-chevron-left', nextArrow:'.i-scroll-bar .head-box .tab-arr .fa.fa-chevron-right', responsive:[{ breakpoint:1000, settings:{ slidesToShow:3, } },{ breakpoint:700, settings:{ slidesToShow:2, } }] }); $('.list .slideBox .swiper-wrapper').slick({ autoplay: true, pauseOnHover: false, speed: 1500, autoplaySpeed: 5000, slidesToShow:4, arrows:false, responsive:[{ breakpoint:1000, settings:{ slidesToShow:3, } },{ breakpoint:700, settings:{ slidesToShow:2, } }] }); });