//banner $(function(){ //移动端展开nav $('#navToggle').on('click',function(){ $('.m_nav').addClass('open'); }) //关闭nav $('.m_nav .top .closed').on('click',function(){ $('.m_nav').removeClass('open'); }) //二级导航 移动端 $(".m_nav .ul li").click(function() { $(this).children("div.dropdown_menu").slideToggle('slow') $(this).siblings('li').children('.dropdown_menu').slideUp('slow'); }); //全屏滚动 $('#about_main').fullpage({ 'navigation': true, scrollBar: true, slidesNavigation: true, css3: true, controlArrows: false, continuousHorizontal:true, scrollingSpeed:500, showActiveTooltip :true, anchors: ['hero', 'one', 'two', 'three','four','five'], loopHorizontal: true, afterLoad: function(anchorLink, index){ console.log(index) $('header').addClass('on').addClass("animation"); }, afterSlideLoad:function(){ }, afterRender: function(){ }, onLeave: function(index, direction){ $(".header").removeClass("animation"); } }) })