// javascript document aos.init({ offset: 0, duration: 800, easing: 'linear', delay: 0, disable: 'mobile' }); $(".a_first").text("首页"); $(".a_end").text("末页"); // $(".footer .column ul li").each(function () { var $this = $(this); $this.find("b i").on('click', function () { $(this).parent().next(".sub").stop().slidetoggle(); $this.siblings().find(".sub").slideup(); if ($this.hasclass("on")) { $this.removeclass("on"); } else { $this.addclass("on").siblings().removeclass("on"); } }) }) //新闻中心 function newsjs(){ $(".news_list .ishot").each(function(){ var _this=$(this); var num=_this.find(".item").length; if(num<=0){ _this.remove() } }); $(".news_list .isnew").each(function(){ var _this=$(this); var num=_this.find(".box").length; if(num<=0){ _this.remove() } }); $('.news_list .ishot').slick({ dots: false, arrows: true, infinite: false, speed: 300, slidestoshow: 3, slidestoscroll: 1, responsive: [ { breakpoint: 960, settings: { slidestoshow: 1, } }, { breakpoint: 640, settings: { slidestoshow: 1, } } ] }); $(".newsyear a").html($(".year a:first-child").html()); $(".newsyear").each(function () { var $this = $(this); $this.find(".txt a").on('click', function () { $(this).parent().next(".year").stop().slidetoggle(); $this.siblings().find(".year").slideup(); if ($this.hasclass("on")) { $this.removeclass("on"); } else { $this.addclass("on").siblings().removeclass("on"); } }) }) } function newsinfojs(){ $(".other_news").each(function(){ var _this=$(this); var num=_this.find("li").length; if(num<=0){ _this.remove() } }); } function historyjs(){ $('.history_list .year_box').slick({ slidestoshow: 5, slidestoscroll: 1, asnavfor: '.history_list .list_box', infinite:false, dots: false, arrows: true, //centermode: true, focusonselect: true, responsive: [ { breakpoint: 1024, settings: { slidestoshow: 4, } }, { breakpoint: 960, settings: { slidestoshow: 3, } }, { breakpoint: 640, settings: { slidestoshow: 2, } } ] }); $('.history_list .list_box').slick({ slidestoshow: 1, slidestoscroll: 1, infinite:false, dots: false, arrows: false, //fade: true, asnavfor: '.history_list .year_box', adaptiveheight: true }); }