$(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");//点击当前的添加。actived_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();//当点击空白处,隐藏ul弹窗 }); 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, }); } })