$(function(){ var press01Swiper = new Swiper('.press01 .swiper-container',{ pagination : '.press01 .swiper-pagination', //grabCursor: true, paginationClickable: true, autoplay:5000, speed:2000, }) }) $(function(){ // $('.medium_t_inner').click(function(e){ // e.stopPropagation(); // $(this).find('em').hide(); // $(this).find('.video-box').show(); // $(this).find('#vid_1').get(0).play(); // $(this).find('#vid_1').get(0).addEventListener("ended",function(){ // $(this).find('em').show(); // $(this).find('.video-box').hide(); // $(this).find('#vid_1').get(0).currentTime=0; // }) // }) // $(document).click(function(){ // $('.medium_t_inner').find('em').show(); // $('.medium_t_inner').find('.video-box').hide(); // }) $(".medium_t_inner").addClass('pause'); $(".medium_t_inner").find("video").trigger("pause"); $(document).on("click", ".medium_t_inner", function (){ var this_v = $(this).find("video"); if ($(this).hasClass('pause')) { this_v.trigger("play"); $(this).removeClass('pause'); $(this).addClass('play'); $(this).find('em').hide(); $(this).find('.video-box').show(); } else { this_v.trigger("pause"); $(this).removeClass('play'); $(this).addClass('pause'); $(this).find('em').show(); $(this).find('.video-box').show(); } this_v.bind('contextmenu',function() { return false; }); }) }) $(function () { $(document).on('click', '.support_t h3 span,.support_b span', function () { if ($(this).parents('.support_inner').hasClass('on')) { $(this).parents('.support_inner').removeClass('on'); $(this).parents('.support_inner').find('.support_c').slideUp(500); $(this).parents('.support_inner').find('.support_b .retract').hide(); $(this).parents('.support_inner').find('.support_b .open').show(); } else { $(this).parents('.support_inner').addClass('on').siblings().removeClass('on'); $(this).parents('.support_inner').find('.support_c').slideDown(500); $(this).parents('.support_inner').addClass('on').siblings().find('.support_c').slideUp(500); $(this).parents('.support_inner').find('.support_b .retract').show(); $(this).parents('.support_inner').addClass('on').siblings().find('.support_b .retract').hide(); $(this).parents('.support_inner').find('.support_b .open').hide(); $(this).parents('.support_inner').addClass('on').siblings().find('.support_b .open').show(); } }) }); $(function(){ //鐐瑰嚮鍙宠竟绠ごicon鏃跺€ $(".selectBox2").on("click",function(event){ $('.revise_c_r .inputCase2 input').removeClass() $(".selectBox2 .fa").parent().next().fadeToggle(300);//ul寮圭獥灞曞紑 if($(".selectBox2 .fa").hasClass("fa-caret-down")){ $(".selectBox2 .fa").removeClass("fa-caret-down").addClass("fa-caret-up")//鐐瑰嚮input閫夋嫨閫傚悎锛屽皬鍥炬爣鍔ㄦ€佸垏鎹 }else{ $(".selectBox2 .fa").addClass("fa-caret-down").removeClass("fa-caret-up")//鐐瑰嚮input閫夋嫨閫傚悎锛屽皬鍥炬爣鍔ㄦ€佸垏鎹 } if (event.stopPropagation) { // 閽堝 Mozilla 鍜 Opera event.stopPropagation(); }else if (window.event) { // 閽堝 IE window.event.cancelBubble = true; } }); // $(".selectUl2 li").click(function (event) { event=event||window.event; $(this).addClass("actived_li").siblings().removeClass("actived_li");//鐐瑰嚮褰撳墠鐨勬坊鍔犮€俛ctived_li杩欎釜绫伙紱鍏朵粬鐨勭Щ闄よ繖涓被鍚 var artime_text = $(this).html(); var id_name = $(this).attr('class'); $(this).parent().prev().children().val(artime_text); $(this).parent().prev().children().attr("value",artime_text); $(this).parent().prev().children().addClass(id_name); if ($('.revise_c_r .inputCase2 input').hasClass('available')) { $('.revise_c_t:nth-child(2)').show(); $('.revise_b').show(); $('.revise_b_box').show(); $('.revise_b_box1').hide(); } if ($('.revise_c_r .inputCase2 input').hasClass('unavailable')) { $('.revise_c_t:nth-child(2)').hide(); $('.revise_b').show(); $('.revise_b_box').hide(); $('.revise_b_box1').show(); } }); //鐐瑰嚮浠绘剰鍦版柟闅愯棌涓嬫媺 $(document).click(function(event){ event=event||window.event; $(".inputCase2 .fa").removeClass("fa-caret-up").addClass("fa-caret-down")//褰撶偣闅愯棌ul寮圭獥鏃跺€欙紝鎶婂皬鍥炬爣鎭㈠鍘熺姸 $(".selectUl2").hide();//褰撶偣鍑荤┖鐧藉锛岄殣钘弖l寮圭獥 }); var countdown = 60; //$('.revise_b_t button').on('click',function(){ // var obj = $(".revise_b_t button"); // settime(obj); //}) function settime(obj) { //鍙戦€侀獙璇佺爜鍊掕鏃 if (countdown == 0) { obj.text('鑾峰彇楠岃瘉鐮?).removeAttr('disabled'); obj.removeAttr("style"); countdown = 60; return; } else { obj.css("color", "#333333"); obj.css("cursor", "default"); obj.attr('disabled', true); obj.text("(" + countdown + "s)"); countdown--; } setTimeout(function () { settime(obj) } , 1000) } }) $(function(){ // $('.concerning_t_inner').click(function(e){ // e.stopPropagation(); // $(this).find('em').hide(); // $(this).find('.video-box').show(); // $(this).find('#vid_1').get(0).play(); // $(this).find('#vid_1').get(0).addEventListener("ended",function(){ // $(this).find('em').show(); // $(this).find('.video-box').hide(); // $(this).find('#vid_1').get(0).currentTime=0; // }) // }) // $(document).click(function(){ // $('.concerning_t_inner').find('em').show(); // $('.concerning_t_inner').find('.video-box').hide(); // }) $(".concerning_t_inner").addClass('pause'); $(".concerning_t_inner").find("video").trigger("pause"); $(document).on("click", ".concerning_t_inner", function (){ var this_v = $(this).find("video"); if ($(this).hasClass('pause')) { this_v.trigger("play"); $(this).removeClass('pause'); $(this).addClass('play'); $(this).find('em').hide(); $(this).find('.video-box').show(); } else { this_v.trigger("pause"); $(this).removeClass('play'); $(this).addClass('pause'); $(this).find('em').show(); $(this).find('.video-box').show(); } }) }) $(function(){ about_swiper(); $(window).resize(function(){ about_swiper(); }) function about_swiper(){ var about_perView=4; if($(window).width()<900){ about_perView=3; } if($(window).width()<768){ about_perView=2; } if($(window).width()<640){ about_perView=1; } var swiper = new Swiper('.recruit_b .swiper-container', { paginationClickable: true, slidesPerView: about_perView, slidesPerColumn: 1, nextButton: '.recruit_b .swiper-button-next', prevButton: '.recruit_b .swiper-button-prev', // loop : true, // autoplay:true, // speed:9000, }); } })