AOS.init({ disable: 'mobile', // accepts following values: 'phone', 'tablet', 'mobile', boolean, expression or function startEvent: 'DOMContentLoaded', // name of the event dispatched on the document, that AOS should initialize on initClassName: 'aos-init', // class applied after initialization animatedClassName: 'aos-animate', // class applied on animation useClassNames: false, // if true, will add content of `data-aos` as classes on scroll disableMutationObserver: false, // disables automatic mutations' detections (advanced) debounceDelay: 50, // the delay on debounce used while resizing window (advanced) throttleDelay: 99, // the delay on throttle used while scrolling the page (advanced) // Settings that can be overridden on per-element basis, by `data-aos-*` attributes: offset: 150, // offset (in px) from the original trigger point delay: 0, // values from 0 to 3000, with step 50ms duration: 1000, // values from 0 to 3000, with step 50ms easing: 'ease', // default easing for AOS animations mirror: false, // whether elements should animate out while scrolling past them anchorPlacement: 'top-bottom', // defines which position of the element regarding to window should trigger the animation }); //头部导航滑动 $(window).scroll(function () { var winHeight = $(this).scrollTop(); if (winHeight > 0) { $('#header').addClass('xg'); } else { $('#header').removeClass("xg"); } }); $(window).scroll(function () { var scrollPos=$(window).scrollTop(); if(scrollPos >600){ $(".rightFix").fadeIn(); }else{ $(".rightFix").fadeOut(); } }) $(".totop").click(function () { $('body,html').animate({ scrollTop: 0 }, 500); return false; }); // $(window).scroll(function() { // if ($(this).scrollTop()>100){ // $("#gotop").removeClass("hide"); // }else{ // $("#gotop").addClass("hide"); // }; // }); // $('#gotop').click(function () { // $('html,body').animate({ // scrollTop : '0px' // }, 800); // }); //数字滚动 // $('.sz').countUp({ // delay: 10,//每个数字动画的延迟时间,单位毫秒。 // time: 1000//计数动画总的持续时间。 // }); //搜索框 // $('.search_btn').click(function(e){ // $(this).parent().addClass("on"); // $(document).one("click", function () { // $(".sstop").removeClass('on') // }); // e.stopPropagation(); $('.search_btn').on('click',function(){ $('.search-dialog-box').toggleClass("on"); }); $('.search-dialog-box .pub-close').on('click',function(){ $('.search-dialog-box').removeClass("on"); }); // }) $(".input").click(function (event) { event.stopPropagation(); }); // 视频弹框 $(document).on("click", ".list_vtc", function (e) { var video_s = $(this).attr("data-video"); $('#videobox video').attr("src", video_s); $(".vwrap").fadeIn(); }); $(".vwrap .close").click(function () { $(".vwrap").hide(); $('#videobox video').attr("src", ''); }); // $('.search-dialog-box .pub-close').on('click', function () { // $('.search-dialog-box').removeClass("on"); // }); //移动端导航 $(".list_box_nav_mobile>li i").click(function () { $(this).parents(".list_box_nav_mobile>li").find(".list").slideToggle(); $(this).parents(".list_box_nav_mobile>li").toggleClass("on1"); $(this).parents(".list_box_nav_mobile>li").siblings().find(".list").slideUp(); $(this).parents(".list_box_nav_mobile>li").siblings().removeClass("on1"); }); $("#nav_btn_box").click(function () { $("#nav_btn_box .point").toggleClass("on"); $("#nav_btn_box").toggleClass("on"); $("#m_nav").toggleClass("act"); $(".nav_mask").fadeToggle(); }); $(".nav_mask").click(function () { $("#nav_btn_box .point").removeClass("on"); $("#nav_btn_box").removeClass("on"); $(this).fadeToggle(); $(".nav_btn_box").removeClass("act"); $("#m_nav").removeClass("act"); }) $("#m_nav .close").click(function () { $("#nav_btn_box .point").removeClass("on"); $("#nav_btn_box").removeClass("on"); $(".nav_btn_box").removeClass("act"); $("#m_nav").removeClass("act"); $(".nav_mask").fadeOut(); }); // 手机下二级导航 $(".ejlm h2").click(function (e) { $(this).next('ul').slideToggle(); // $(document).one("click", function(){ // $(".ejlm ul").slideUp(); // }); // e.stopPropagation(); }) //三级导航 // $(".wrap_ph li img").click(function (e) { // $(this).parent().next('.san-wrap').slideToggle(); // }); //三级导航 $(".wrap_ph h3 i").click(function () { $(this).toggleClass("on"); $(this).parent("h3").next('.box').slideToggle(); }); $(".list_left li p").click(function(){ $(this).next(".nysubnav").slideToggle(); }); //移动端内页导航 $("#bnt_sub_nav").click(function(){ $(this).toggleClass("on"); $("#sub_nav_content").slideToggle(); }); $("#sub_nav_content dt.title a").attr("href","javascript:void(0)"); $("#sub_nav_content dt.title_on").next("dd").show(); $("#sub_nav_content dt.title").click(function() { if ($(this).hasClass("title_on")) { $(this).next("dd").slideToggle(); $(this).removeClass("title_on"); } else { $("#sub_nav_content dd").slideUp(); $("#sub_nav_content dt.title").removeClass("title_on").removeClass("on"); $(this).toggleClass("title_on"); $(this).next("dd").slideDown(); } }); $(".select h2").click(function(){ $(this).next('ul').slideToggle() $(this).toggleClass('on') $(this).parent().siblings().find('ul').slideUp() $(this).parent().siblings().find('h2').removeClass('on') }) $("body").click(function(e){ var target = $(e.target); if(target.closest(".select h2").length != 0) return; $(".select h2").removeClass('on'); $(".select ul").slideUp() }) // 地图 // JavaScript Document // var map = new BMap.Map("map01"); // 创建Map实例 // var point = new BMap.Point(113.410495,23.06413); // 创建点坐标 // map.centerAndZoom(point, 17); // // 创建点标记 // var marker = new BMap.Marker(point); // // 在地图上添加点标记 // map.addOverlay(marker); // setTimeout(function () { // if($(window).width() > 1200){ // map.panBy(-250,100) // } // }, 300); // marker.setAnimation(BMAP_ANIMATION_BOUNCE); // // 自定义信息窗体样式 // var html = ["