$(function(){ $('#dowebok').fullpage({ anchors: ['hero', 'services', 'cases', 'news','about','think','footer'], navigationposition:'left', autoscrolling:true, afterload: function(anchorlink, index){ if(index == 1){ $("#fp-nav").css({'display':'none'}); $(".cbl").addclass('active'); $("header").removeclass('active'); $(".nav_btn").css({'opacity':'0'}).removeclass("active"); } if(index == 2){ $("header").addclass('active'); $(".section2").addclass('active'); } if(index == 3){ $("header").addclass('active1'); $(".section3").addclass('active'); } if(index == 4){ $(".section4").addclass('active'); } if(index == 5){ $(".section6").addclass('active'); } if(index == 6){ $(".section8").addclass('active'); } }, onleave: function(index, direction){ if(index == '1'){ $("#fp-nav").css({'display':'block'}); $(".cbl").removeclass('active'); $(".nav_btn").css({'opacity':'1'}); $("header .nav2").slideup(); } if(index == '2'){ $("header").addclass('active'); $(".section2").removeclass('active'); $("header .nav2").slideup(); } if(index == '3'){ $("header").removeclass('active1'); $("header").addclass('active'); $(".section3").removeclass('active'); } if(index == '4'){ $("header").addclass('active'); $(".section4").removeclass('active'); $("header .nav2").slideup(); } if(index == '5'){ $("header").addclass('active'); $(".section6").removeclass('active'); } if(index == '6'){ $("header").addclass('active'); $(".section8").removeclass('active'); $("header .nav2").slideup(); } } }); var swiper1 = new swiper('.section1 .swiper-container', { pagination: '.section1 .swiper-pagination', nextbutton: '.section1 .swiper-button-next', prevbutton: '.section1 .swiper-button-prev', paginationclickable: true, spacebetween: 0, autoplay:5000, autoplaydisableoninteraction: false, slidesperview:1, loop: true, }); var swiper2 = new swiper('.section2 .swiper-container', { pagination: '.section2 .swiper-pagination', nextbutton: '.section2 .swiper-button-next', prevbutton: '.section2 .swiper-button-prev', paginationclickable: true, spacebetween: 0, autoplaydisableoninteraction: false, slidesperview:3, breakpoints: { //褰撳搴﹀皬浜庣瓑浜?20 768: { slidesperview:1, slidespercolumn: 1, } } }); var swiper3 = new swiper('.section6 .swiper-container', { pagination: '.section6 .swiper-pagination', nextbutton: '.section6 .swiper-button-next', prevbutton: '.section6 .swiper-button-prev', paginationclickable: true, spacebetween: 10, autoplaydisableoninteraction: false, slidesperview:4, breakpoints: { //褰撳搴﹀皬浜庣瓑浜?20 768: { slidesperview:1, slidespercolumn: 1, } } }); var gallerytop4 = new swiper('.section7 .swiper-container', { pagination: '.section7 .swiper-pagination', nextbutton: '.section7 .swiper-button-next', prevbutton: '.section7 .swiper-button-prev', paginationclickable: true, spacebetween: 0, autoplay:8000, slidesperview:5, autoplaydisableoninteraction: false, slidespercolumn:2, slidespergroup : 6, speed:1000, breakpoints: { //褰撳搴﹀皬浜庣瓑浜?20 768: { slidesperview:2, slidespercolumn: 2, slidespergroup :1, } } }); var swipeslsd = new swiper('.section5 .swiper-container', { pagination: '.section5 .swiper-pagination', nextbutton: '.section5 .swiper-button-next', prevbutton: '.section5 .swiper-button-prev', paginationclickable: true, spacebetween: 40, autoplay:5000, slidesperview:4, autoplaydisableoninteraction: false, slidespercolumn:1, slidespergroup : 1, speed:1000, loop:true, breakpoints: { //褰撳搴﹀皬浜庣瓑浜?20 768: { slidesperview:1, slidespercolumn: 1, slidespergroup :1, } } }); $(".sec4_left1 ul li").eq(0).addclass('active').siblings().removeclass("active"); $(".sec4_left1 ol li").eq(0).addclass('active').siblings().removeclass('active'); $(".sec4_left1 ul li").mouseenter(function(){ var index=$(this).index(); $(this).addclass('active').siblings().removeclass("active"); /*$(".sec4_left1 ol li").eq(index).addclass('active').siblings().removeclass('active');*/ }); $(".sec6_right a").eq(0).addclass('active').siblings().removeclass("active"); $(".se6_xxk").eq(0).addclass('active').siblings().removeclass('active'); $(".sec6_right a").click(function(){ var index=$(this).index(); $(this).addclass('active').siblings().removeclass("active"); $(".se6_xxk").eq(index).addclass('active').siblings().removeclass('active'); }); /* var gallerytop = new swiper('.section5 .gallery-top', { pagination: '.section5 .swiper-pagination', nextbutton: '.section5 .swiper-button-next', prevbutton: '.section5 .swiper-button-prev', paginationclickable: true, spacebetween: 0, autoplaydisableoninteraction: false, speed:600, }); var gallerythumbs = new swiper('.gallery-thumbs', { spacebetween: 10, centeredslides: true, slidesperview:4, paginationclickable: true, autoplaydisableoninteraction: false, slidetoclickedslide: true, breakpoints: { //褰撳搴﹀皬浜庣瓑浜?20 768: { slidesperview:1, slidespercolumn: 1, } } }); gallerytop.params.control = gallerythumbs; gallerythumbs.params.control = gallerytop; */ });