var $banner=jquery(".banner"), $banneritem=jquery(".banner .item"), $bannerimg=jquery(".banner .pimg"); function initpro(){ var bannerh=win_height-178; if(!ismobile){ $banner.css({height:bannerh}); $banneritem.css({height:bannerh}); pageinit.setimgmax($bannerimg,1782,718,jquery(".banner").width(),bannerh); }else{ $banner.css({height:"auto"}); $banneritem.css({height:"auto"}); $bannerimg.attr("style","").css({position: "relative"}); } } initpro(); jquery(window).resize(function () { initpro(); }); $banner.slick({ slide:".item", autoplay: true, arrows: false, dots:true, infinite: true, easing:"easeinoutexpo", speed: 0, autoplayspeed: 6000, pauseonhover: false, fade: true, draggable:false, touchmove:false }); jquery(function(){ jquery(".ibox-hot").slick({ autoplay: true, arrows: false, dots: true, infinite: true, autoplayspeed: 5000, speed: 800, pauseonhover: false }); jquery(".itab-t a").mouseenter(function() { $(this).addclass("active").siblings().removeclass("active"); $(".ibox-new-tabc .ibox-new-txt").eq($(this).index()).addclass("active").siblings().removeclass("active"); }); jquery(".ibox-case-demo").slick({ autoplay: true, arrows: true, dots: false, infinite: true, autoplayspeed: 5000, speed: 800, fade: true, pauseonhover: false }); }); jquery('.newpicibox').slick({ arrows: true, dots: true }); $('.business-list').owlcarousel({ items:5, slidespeed:1000, navigation: false, pagination: true, controls:true, itemsdesktop: [1280, 4], itemsdesktopsmall: [1024, 3], itemstablet: [750, 2], itemstabletsmall: false, itemsmobile: [380, 1] }); /*$('.sceclal-list').owlcarousel({ items:3, slidespeed:1000, navigation: true, pagination: false, controls:true, itemsdesktop: [1280, 3], itemsdesktopsmall: [1100, 1], itemstablet: [750, 1], itemstabletsmall: false, itemsmobile: [380, 1] });*/ $('.sceclal-list').slick({ dots: false, infinite: true, autoplay:true, speed: 1000, slidestoshow: 3, slidestoscroll: 3, responsive: [ { breakpoint: 1280, settings: { autoplay:true, slidestoshow: 3, slidestoscroll: 3, infinite: false, dots: true } }, { breakpoint: 750, settings: { autoplay:true, slidestoshow: 1, slidestoscroll: 1 } }, { breakpoint: 480, settings: { autoplay:true, slidestoshow: 1, slidestoscroll: 1 } } ] }); $('.projects').hover(function(){ $(this).addclass('show').siblings().addclass('hiden'); },function(){ $(this).removeclass('show').siblings().removeclass('hiden'); }); $(".project-list").flexslider({ animation: "slide", direction:"horizontal", slideshow: true, slideshowspeed: 5000, animationspeed: 500, pauseonhover:true, directionnav:true, controlnav:false }); $(".hotnew-box").flexslider({ animation: "slide", direction:"horizontal", slideshow: true, slideshowspeed: 4000, animationspeed: 500, pauseonhover:true, directionnav:false, controlnav:true }); $(".project-mbile").flexslider({ animation: "slide", direction:"horizontal", slideshow:false, pauseonhover:true, directionnav:true, controlnav:false, start: function(slider) { jquery(".project-mbile li").removeclass("on").eq(slider.currentslide+1).addclass("on"); }, after: function(slider) { jquery(".project-mbile li").removeclass("on").eq(slider.currentslide+1).addclass("on"); }, }); $(".business .owl-carousel .owl-item").each(function(i,o){ $(this).css({"transition":"500ms "+(i*300)+"ms","-webkit-transition":"500ms "+(i*300)+"ms"}); }); $('.collecte-t a').click(function(e){ e.preventdefault(); var index_=$(this).index(); $(this).addclass('on').siblings().removeclass('on'); $('.newindex .new-list').eq(index_).show().siblings().hide(); }); $(".magaze-sele").change(function(){ var indexnow= $(this).val(); $('.magaze .magaze-wr figure a').eq(indexnow).addclass('show').siblings().removeclass('show'); }); $(".ibox-case-demo").slick({ speed: 1000, slidestoshow:3, slidestoscroll: 1, centerpadding:"0", centermode: false, focusonselect: true, arrows: true, dots: false, autoplay: true, autoplayspeed: 2000, cssease:"cubic-bezier(0.7, 0, 0.3, 1)", responsive: [ { breakpoint: 860, settings: { slidestoshow: 1 } } ] }); $(document).on("click", ".ibox-case-nav a", function () { pagetextchange($(this).index()); }); pagetextchange(0); function pagetextchange(ind) { $(".ibox-case-nav a").eq(ind).addclass("active").siblings().removeclass("active"); $(".ibox-case-demo").eq(ind).addclass("active").siblings().removeclass("active"); };