$(function(){ $(".header").addclass("anim"); //打开搜索 $(".top_right .open-search").click(function(e) { if($(this).hasclass("search_show")){ $(this).removeclass("search_show") $(".top_right .search-box").hide(300); }else{ $(this).addclass("search_show") $(".top_right .search-box").show(300); } }); //集团站群 $(".top_right .site dt").click(function () { $(this).next("dd").slidetoggle(); }) // 导航打开 $('.top_right .open_menu').click(function () { $('#sidenav').addclass('active'); }); // 导航关闭 $('#sidenav .head .close').click(function () { $('#sidenav').removeclass('active'); }); $('#sidenav ul li').click(function(){ var windowwidth = parseint($(window).width()); if (windowwidth <= 1024) { if ($(this).hasclass('active')) { $('#sidenav ul li').removeclass('active'); } else{ $('#sidenav ul li').removeclass('active'); $(this).addclass('active'); } } }); // wow if($(".wow").length){ if (!(/msie [6|7|8|9]/i.test(navigator.useragent))){ var wow = new wow({ boxclass: 'wow', animateclass: 'animated', offset: 50, mobile: false, live: true }); wow.init(); }; } //集团领导致辞————致辞 $(".speech_list ul").slick({ slidestoshow: 3, slidestoscroll: 1, dots:false, arrows:true, infinite: false, responsive: [ { breakpoint: 641, settings: { slidestoshow: 2, } }, { breakpoint: 480, settings: { slidestoshow: 1, } } ] }); //荣誉资质 $(".honor_top ul").slick({ slidestoshow: 3, slidestoscroll: 1, dots:false, arrows:true, infinite: false, responsive: [ { breakpoint: 768, settings: { slidestoshow: 2, } }, { breakpoint: 480, settings: { slidestoshow: 1, } } ] }); //己内酰胺事业————图片列表 $(".caprolactam_list ul").slick({ slidestoshow: 4, slidestoscroll: 1, dots:false, arrows:true, infinite: false, responsive: [ { breakpoint: 768, settings: { slidestoshow: 3, } }, { breakpoint: 480, settings: { slidestoshow: 2, } } ] }); $(".nylonnew_tab_ul li").click(function () { var e=$(this).index(); $(this).addclass("on").siblings().removeclass("on"); $(".nylonnew_tab_con").hide(); $(".nylonnew_tab_con").eq(e).show(); //尼龙新材料事业————新品介绍 $(".nylonnew_tab_con").eq(e).find(".nylonnew_slick_one").slick({ slidestoshow: 1, slidestoscroll: 1, dots:false, arrows:true, infinite: false, }); //尼龙新材料事业————产品介绍 $(".nylonnew_tab_con").eq(e).find(".nylonnew_slick_two").slick({ slidestoshow: 5, slidestoscroll: 1, dots:false, arrows:true, infinite: false, responsive: [ { breakpoint: 1000, settings: { slidestoshow: 3, } }, { breakpoint: 640, settings: { slidestoshow: 2, } } ] }); }) $(".nylonnew_tab_ul li").eq(0).click(); //供应链事业————金融服务 $(".supply_item3_ul").slick({ slidestoshow: 2, slidestoscroll: 1, dots:false, arrows:true, infinite: false, responsive: [ { breakpoint: 640, settings: { slidestoshow: 1, } } ] }); //供应链事业————建工服务 $(".supply_item4_ul").slick({ slidestoshow: 4, slidestoscroll: 1, dots:false, arrows:true, infinite: false, responsive: [ { breakpoint: 768, settings: { slidestoshow: 3, } }, { breakpoint: 640, settings: { slidestoshow: 2, } } ] }); //企业期刊 $(".company_item4 .time_ul").slick({ slidestoshow: 8, slidestoscroll: 1, dots:false, arrows:true, infinite: false, responsive: [ { breakpoint: 1200, settings: { slidestoshow: 6, } }, { breakpoint: 1000, settings: { slidestoshow: 4, } }, { breakpoint: 640, settings: { slidestoshow: 3, } } ] }); //家在永乐 $(".home_index .pic_list .fl ul").slick({ slidestoshow: 1, slidestoscroll: 1, dots:true, arrows:true, infinite: false, fade: true, draggable: false, responsive: [ { breakpoint: 640, draggable: true, } ] }); $(".home_index .pic_list .fr li").click(function () { $(this).addclass("aon").siblings().removeclass("aon"); var e=$(this).index(); $(".home_index .slick-dots li").eq(e).click(); }) $(".home_index .pic_list .fr li").eq(0).addclass("aon"); //激情永娱 $(".entertainment_item1 .ul").slick({ slidestoshow: 3, slidestoscroll: 1, dots:false, arrows:true, infinite: false, responsive: [ { breakpoint: 640, settings: { slidestoshow: 1, } } ] }); $(".entertainment_item3 .tab_ul li").click(function () { var e=$(this).index(); $(this).addclass("on").siblings().removeclass("on"); $(".entertainment_item3 .tab_list article").hide(); $(".entertainment_item3 .tab_list article").eq(e).show(); }) $(".entertainment_item3 .tab_ul li").eq(0).click(); /*标杆学院*/ $(".college_tab_ul li").click(function () { var e=$(this).index(); $(this).addclass("on").siblings().removeclass("on"); $(".college_tab_list .list_pic_three").hide(); $(".college_tab_list .list_pic_three").eq(e).show(); }) $(".college_tab_ul li").eq(0).click(); /*招聘岗位*/ $(".job_list .list .top").click(function () { $(this).toggleclass("on").parents(".list").siblings().find(".top").removeclass("on"); $(this).siblings(".info").slidetoggle(); $(this).parents(".list").siblings().find(".info").slideup() }) $(".job_list .list .top").eq(0).click(); $(".eversuns_info .ytable").each(function(){ var e=$(this).index()+1 if(e<=9){ $(this).find(".h3 span").text("0"+e) }else{ $(this).find(".h3 span").text(e) } }) /*智能制造*/ $(".smart_video figure").click(function () { $(this).next(".video").show(); $(this).next(".video")[0].play(); }) /*终端运用*/ $(".enduse_info .ytable:even").find(".pic").addclass("fadeinleft"); $(".enduse_info .ytable:even").find(".txt").addclass("fadeinright") $(".enduse_info .ytable:odd").each(function () { var pic=$(this).find(".pic"); var txt=$(this).find(".txt"); pic.addclass("fadeinright"); txt.addclass("fadeinleft"); $(window).on("resize", function(e) { var w = $(window).width() if (w <= 640) { txt.insertafter(pic); } else { pic.insertafter(txt); } }).trigger("resize"); }) /*领导致辞*/ $(".leader_list:odd").each(function () { var pic=$(this).find(".dt_pic"); var txt=$(this).find(".dd_txt"); $(window).on("resize", function(e) { var w = $(window).width() if (w <= 640) { txt.insertafter(pic); } else { pic.insertafter(txt); } }).trigger("resize"); }) $(".list_pic_one li").each(function(){ var e=$(this).index()*0.3 $(this).attr("data-wow-delay",""+e+"s") }); });