jquery(function(){ function initbox() { if(!ismobile){ var headerh = $('.header-box').height(); $('.banner').css('height', w_height - headerh); $('.banner .slides').css('height', w_height - headerh); $('.banner .slides li').css('height', w_height - headerh); setimgmax($('.banner .bimg'), 1920, 952, w_width, w_height - headerh); }else{ } }; initbox(); jquery(window).resize(function () { initbox(); }); jquery(function(){ }); jquery(function(){ $('.banner .en,.banner .batxts b,.banner .batxts small,.banner .batxt span').addclass('transy'); var bannersider=jquery(".banner"); bannersider.flexslider({ animation: "fade", easing:"swing", slideshowspeed: 4000, animationspeed: 0, slideshow:true, animationloop:true, pauseonhover:false, directionnav:false, controlnav:true, start: function(slider) { jquery(".banne-list li").removeclass("on").eq(slider.currentslide).addclass("on"); jquery(".bamnline").addclass("load"); jquery('.banner .slides li').eq(slider.currentslide).addclass("imgin").siblings().removeclass("imgin"); }, after: function(slider) { jquery(".bamnline").addclass("load"); jquery(".banne-list li").removeclass("on").eq(slider.currentslide).addclass("on"); jquery('.banner .slides li').eq(slider.currentslide).addclass("imgin").siblings().removeclass("imgin"); }, before: function(slider) { jquery(".bamnline").removeclass("load"); } }); }); $('.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'); }); });