// javascript document //$(".cultural_mian .item").each(function (i, j) { // var datatitle=$(this).attr("data-title") // $(".cultural_menu ul").append("
  • "+datatitle+"
  • ") //}) intaos(); function intaos() { // aos配置 aos.init({ offset: 200, duration: 1200, easing: 'ease', delay: 100, disable: 'mobile' }); } window.onload = function(){ aos.refresh(); } $(window).resize(function () { aos.refresh(); }) $(".cultural_mian .item:odd,.brands_list .item:odd,.services_list .item:even,.projects_list .item:odd").each(function () { var intro=$(this).find(".info"); var photo=$(this).find(".pic"); $(window).on("resize", function(e) { var w = $(window).width() if (w >= 768) { intro.insertafter(photo); } else { photo.insertafter(intro); } }).trigger("resize"); }) $(".healthy_list .item:odd").each(function () { var intro=$(this).find(".info"); var photo=$(this).find(".pic"); $(window).on("resize", function(e) { var w = $(window).width() if (w >= 768) { intro.insertbefore(photo); } else { photo.insertbefore(intro); } }).trigger("resize"); }) $(".events_mian").each(function(){ var mainslick=$(this).find(".events_info") var titleslick=$(this).find('.events_year') var subslick=$(this).find('.subbox') mainslick.slick({ slidestoshow: 1, slidestoscroll: 1, dots: false, arrows: false, infinite: true, asnavfor:titleslick }); titleslick.slick({ slidestoshow: 7, slidestoscroll: 1, dots: false, arrows: true, focusonselect: true, centermode: true, centerpadding: '0px', infinite: true, asnavfor: mainslick, responsive: [ { breakpoint: 1200, settings: { slidestoshow: 5 } }, { breakpoint: 960, settings: { slidestoshow: 3 } } ] }); subslick.slick({ autoplay: true, autoplayspeed: 2000, slidestoshow: 1, slidestoscroll: 1, dots: true, arrows: false, infinite: true, }); }) $(".news_hot").each(function(){ var mainslick=$(this) var num=$(this).find(".item").length if ( num <=0 ){ $(this).remove() } mainslick.slick({ autoplay: true, autoplayspeed: 2000, slidestoshow: 1, slidestoscroll: 1, dots: false, arrows: true, infinite: true, }); }) $(".reports_list .item").each(function() { $(this).find(".title h3").click(function(e) { $(this).parent().next(".box").stop(true,true).slidetoggle()//.slidedown(300); if($(this).parent().hasclass("show")){ $(this).parent().removeclass("show"); }else{ $(this).parent().addclass("show"); } $(this).parent(".item").siblings().find(".box").stop(true,true).slideup(); $(this).parent(".item").siblings().find(".title").removeclass("show"); }); }); //$(".reports_list .item").eq(0).find(".title h3").click() $(".staff_style").each(function(){ var mainslick=$(this).find(".subbox") mainslick.slick({ slidestoshow: 1, slidestoscroll: 1, dots:false, arrows:true, }); }); $(".jobs_category").each(function(){ var mainslick=$(this).find(".slickbox") mainslick.slick({ slidestoshow: 4, slidestoscroll: 1, dots:true, arrows:false, responsive: [ { breakpoint: 1200, settings: { slidestoshow: 3 } }, { breakpoint: 960, settings: { slidestoshow: 2 } } ] }); }); $(".form_input .item_box").each(function () { var tips = $(this).find(".tips"); var input = $(this).find(".text"); input.val(""); input.focus(function () { tips.hide(); }); input.blur(function () { var val = $(this).val(); if (val == "") { tips.show(); } }); tips.click(function () { $(this).hide(); $(this).next(".text").focus(); }); }); var wid = $(window).width(); if ( wid < 640) { $(".process").slick({ slidestoshow: 1, slidestoscroll: 1, dots:true, arrows:false, }); } //打开视频播放器 $(".video_play").click(function() { //清除其他视频 $(".video_files").remove(); // var vadeo_rel = $(this).attr("rel"); $(this).parent().prepend('
    '); var audio = document.getelementbyid('vadeo_file'); audio.play(); //关闭视频播放器 $(".video_files .close").click(function() { $(this).parent(".video_files").remove(); }); }); $(".common_tab").each(function (i,item){ var _this=$(this) $(".tab_title .item").bind("click", function () { var index = $(this).index(); $(this).parent(".tab_title").find(".item").removeclass("show"); $(this).addclass("show"); $(this).parent().parent().find(".subbox").addclass("hide") $(this).parent().parent().find(".subbox").eq(index).removeclass("hide") }); _this.find(".tab_title .item").eq(0).click() }) //$(".jobs_list .list").each(function () { // $(this).find(".title").unbind("click").click(function (e) { // $(this).next(".info").stop(true, true).slidetoggle() //.slidedown(300); // if ($(this).hasclass("show")) { // $(this).removeclass("show"); // } else { // $(this).addclass("show"); // } // $(this).parent(".list").siblings().find(".info").stop(true, true).slideup(); // $(this).parent(".list").siblings().find(".title").removeclass("show"); // }); //}); ////默认第一个打开 //$(".jobs_list .list").eq(0).find(".title").click(); // // $('.clickpopup').click(function () { // $('.popupform').show(); // $(".form_item .item_box").each(function () { // var tips = $(this).find(".tips"); // var input = $(this).find(".text"); // // input.val(""); // input.focus(function () { // tips.hide(); // }); // input.blur(function () { // var val = $(this).val(); // if (val == "") { // tips.show(); // } // }); // tips.click(function () { // $(this).hide(); // $(this).next(".text").focus(); // }); // }); // // $(".popupform .close").on('click', function () { // $(".popupform").hide(); // $(".popupform .tips").show(); // }); // // })