1$(function () { 2 indexTab(); 3 wowInt(); 4 findTel(); 5 phoneTargetSelf(); 6 search(); 7 8 nav(); 9 share(); 10 tem_tac(); 11 faq(); 12 diagn_slider(); 13 selectbox02(); 14 $(document).on("click",".xz_tabbox a",function(){ 15 $(this).addClass("on").siblings().removeClass("on"); 16 $(".notice_list_iteam").eq($(this).index()).show().siblings().hide(); 17 }) 18 19 $(".vaccine_article li a[href='']").parents("li").addClass("nocur"); 20 $(".vaccine_article li a[href='']").attr("href","javascript:void(0);") 21 $(".vaccine_article li a[href='']").removeAttr("target") 22 23 $(document).on("click",".pbtn_tc",function(){ 24 $(".business_bg,.business_tcbox").show(); 25 var hh=$(this).attr("data-href"); 26 console.log(hh); 27 $(".pbtn_qd").attr("href",hh); 28 }) 29 $(document).on("click",".pbtn_qx",function(){ 30 $(".business_bg,.business_tcbox").hide(); 31 }) 32 $(document).on("click",".pbtn_qd",function(){ 33 $(".business_bg,.business_tcbox").hide(); 34 }) 35 36 37 38 if($(".data_re .swiper-container").length>0){ 39 var data_re_Swiper = new Swiper('.data_re .swiper-container',{ 40 slidesPerView : 4, 41 slidesPerGroup: 1, 42 spaceBetween: 0, 43 prevButton:'.data_re .swiper-button-prev', 44 nextButton:'.data_re .swiper-button-next', 45 breakpoints:{ 46 1024: { 47 slidesPerView: 3, 48 }, 49 768: { 50 slidesPerView: 2, 51 }, 52 767: { 53 slidesPerView: 1, 54 } 55 } 56 }) 57 } 58 59 60 61 if($(window).width()>1024){ 62 strategy_animate(); 63 diagn_animate(); 64 select(); 65 ScollText(".about_edit"); 66 ScollText(".growth_edit"); 67 ScollText(".growth_04 dd p"); 68 ScollText(".welfare_scoll"); 69 ScollText(".strategy_box p"); 70 71 72 73 } 74 if($(window).width()>767){ 75 ScollText(".investor_02 .right li .in_pscoll"); 76 ScollText(".edit_profile"); 77 ScollText(".talent_02 dd p"); 78 ScollText(".career_intr dd p"); 79 ScollText(".growth_staff dd"); 80 ScollText(".scoll_p"); 81 ScollText(".strategy_b p"); 82 ScollText(".canhold_scoll"); 83 ScollText(".our_scoll"); 84 ScollText(".pharma_p"); 85 ScollText(".vaccine_04 .our_title p"); 86 ScollText(".mran_list h3"); 87 ScollText(".vaccine_product p"); 88 ScollText(".vaccine_scoll"); 89 ScollText(".contact_02 dd"); 90 ScollText(".research_01 dd"); 91 ScollText(".bussiness_pro p"); 92 93 94 } 95 ScollText(".team_intr .team_edit"); 96 ScollText(".growth_train_box p"); 97 98 $(document).on("click",".investor_03 .news_pub_tab li",function(){ 99 $(this).addClass("on").siblings().removeClass("on"); 100 $(".investor_notice .notice_list").eq($(this).index()).show().siblings().hide(); 101 }) 102 $(window).resize(); 103 104 //pub_tabæ¬æµ® 105 if($(".growth_fixd").length>0){ 106 var $anchorTop=$('.growth_fixd').offset().top; 107 //console.log($anchorTop); 108 109 $(window).scroll(function(){ 110 var wint=$(window).scrollTop(); 111 var $anchor=$(wint); 112 113 if (wint>$anchorTop) { 114 $('body').addClass('growth_fixd_fixed'); 115 } 116 else{ 117 $('body').removeClass('growth_fixd_fixed'); 118 } 119 }) 120 } 121 //éç¹ 122 $(document).on("click", ".growth_fixd li[link]", function() { 123 $(".growth_fixd").find('li').removeClass('on'); 124 $(this).addClass('on'); 125 126 var id = $(this).attr("link") 127 var topH = 80; 128 var headH = 100; 129 var divH = $("#" + id).offset().top - topH - headH; 130 if($(window).width()>1024){ 131 var divH = $("#" + id).offset().top - 180; 132 }else{ 133 var divH = $("#" + id).offset().top - 120; 134 } 135 136 $('html,body').animate({ 137 scrollTop : divH 138 }, 500); 139 }) 140 141}) 142 143 144 145function faq(){ 146 $(".faq_list li").eq(0).addClass("on"); 147 $(".faq_list li").eq(0).find("dd").slideDown(); 148 149 $(document).on("click",".faq_list dt em",function(){ 150 $(this).parents("li").toggleClass("on").siblings().removeClass("on"); 151 $(this).parent("dt").siblings("dd").slideToggle();
152 $(this).parents("li").siblings("li").find("dd").slideUp(); 153 }) 154} 155function nav(){ 156 $(".menu_button").click(function(){ 157 $(this).toggleClass("visible_nav"); 158 $("body").toggleClass("navbody"); 159 $(".header_top ul li,.nav li").removeClass("cur"); 160 }) 161 $(window).scroll(function () { 162 if ($(this).scrollTop() > 0) { 163 $('body').addClass('scrollHeader'); 164 165 } else { 166 $('body').removeClass('scrollHeader'); 167 } 168 }); 169 170 if($(window).width()>1024){ 171 $(".nav").hover(function(){ 172 $("body").addClass("navbg"); 173 },function(){ 174 $("body").removeClass("navbg"); 175 }) 176 //$(".nav li").hover(function(){ 177 //$(this).find(".nav_list").stop().fadeIn(); 178 //},function(){ 179 // $(".nav_list").stop().fadeOut(); 180 //}) 181 182 $(".header_top ul li").hover(function(){ 183 $(this).find(".nav_list").stop().slideDown(); 184 },function(){ 185 $(".nav_list").stop().slideUp(); 186 }) 187 188 //01 189 $(".nav li").hover(function(){ 190 $(".header").addClass("hov"); 191 $(this).find(".nav_list").stop().slideDown(); 192 $(this).siblings().find(".nav_list").stop().slideUp() 193 },function(){ 194 $(this).find(".nav_list").stop().slideUp() 195 $(".header").removeClass("hov"); 196 }) 197 $(document).on("click",".nav_list p",function(e){ 198 $(".nav_list").hide(); 199 }) 200 201 $(".nav>ul").hover(function(){ 202 $(".header").addClass("submenu_show"); 203 },function(){ 204 $(".header").removeClass("submenu_show"); 205 }); 206 //01 207 208 }else{ 209 $(".nav .nav_list .nav_p p").click(function(){ 210 211 $("body").removeClass("navbody"); 212 }) 213 214 $(document).on("click",".nav_arrow",function(){ 215 $(this).parent("li").toggleClass("cur"); 216 $(this).parent("li").siblings().removeClass("cur"); 217 218 }) 219 $(document).on("click",".nav_return",function(){ 220 $(this).parents("li").removeClass("cur"); 221 }) 222 } 223} 224 225function search(){ 226 $(".search span").click(function(e){ 227 e.preventDefault(); 228 e.stopPropagation(); 229 $(".search").toggleClass("cur"); 230 $("body").removeClass("navbody"); 231 }) 232 $(".search_box").click(function(e){ 233 e.preventDefault(); 234 e.stopPropagation(); 235 }) 236 $(document).click(function(){ 237 $(".search").removeClass("cur"); 238 }) 239} 240 241function select(){ 242 $(document).on("click",".language dt",function(e){ 243 e.preventDefault(); 244 e.stopPropagation(); 245 246 247 $(this).siblings("dd").slideToggle(); 248 $(this).parents(".language").toggleClass("curr"); 249 250 }) 251 $(document).click(function(){ 252 $(".language dd").slideUp(); 253 $(".language").removeClass("curr"); 254 }) 255 256} 257 258function ScollText(obj){ 259 if($(obj).length>0){ 260 $(obj).mCustomScrollbar({ 261 mouseWheelPixels:500, 262 autoDraggerLength:false, 263 advanced: { 264 autoScrollOnFocus: "" 265 } 266 }); 267 } 268 269} 270 271function wowInt(){ 272 if (!(/msie [6|7|8|9]/i.test(navigator.userAgent))){ 273 var wow = new WOW({ 274 boxClass: 'wow', 275 animateClass: 'animated', 276 offset: 100, 277 mobile: false, 278 live: true 279 }); 280 wow.init(); 281 }; 282} 283 284function wowDelay(box,row,delayTime){ 285 $(box).children().each(function(index){ 286 for(var i = 0;i<row;i++){ 287 if(index%row==i){ 288 $(this).attr("data-wow-delay",i*delayTime+'s'); 289 }; 290 }; 291 }); 292}; 293 294/*ææºç«¯é¾æ¥æ¹ä¸ºæ¬çªå£æå¼*/ 295function phoneTargetSelf(context){ 296 if ($(window).width()<1024) { 297 if(context==undefined){ 298 context=$(document); 299 } 300 $('a',context).each(function(){ 301 var target=$(this); 302 var link=target.attr('target'); 303 target.attr('target','_self'); 304 }) 305 } 306} 307 308 309/*çµè¯é¾æ¥åæ¶é»è®¤äºä»¶å¹¶æ·»å æ ·å¼*/ 310function findTel(context){ 311 if ($(window).width()>1024) { 312 var condition = /^tel\:([0-9\-]+)|tel\:\+([0-9\-]+)$/; 313 if(context==undefined){ 314 context=$(document); 315 } 316 $('a',context).each(function(index, el) { 317 var target=$(this); 318 var href=target.attr('href'); 319 if (condition.test(href)) { 320 target.addClass('tel_link'); 321 target.on('click',function(event){ 322 event.preventDefault(); 323 }) 324 } 325 });
326 } 327} 328 329 330/*ie9çplaceholderå å«å¯ç æ¡çå ¼å®¹*/ 331$(function() { 332 // 妿䏿¯æplaceholderï¼ç¨jQueryæ¥å®æ 333 if(!isSupportPlaceholder()) { 334 // éåææinput对象, é¤äºå¯ç æ¡ 335 $('input').not("input[type='password']").each( 336 function() { 337 var self = $(this); 338 var val = self.attr("placeholder"); 339 input(self, val); 340 } 341 ); 342 343 /**//* 对passwordæ¡çç¹æ®å¤ç 344 * 1.å建ä¸ä¸ªtextæ¡ 345 * 2.è·åç¦ç¹å失å»ç¦ç¹çæ¶å忢 346 */ 347 $('input[type="password"]').each( 348 function(i) { 349 var pwdField = $(this); 350 var pwdVal = pwdField.attr('placeholder'); 351 var pwdId = pwdField.attr('id'); 352 // éå½å该inputçid为åidåè·1 353 pwdField.after('<input id="' + pwdId +''+i+'" type="text" value='+pwdVal+' autocomplete="off" />'); 354 var pwdPlaceholder = $('#' + pwdId + ''+i+''); 355 pwdPlaceholder.show(); 356 pwdField.hide(); 357 358 pwdPlaceholder.focus(function(){ 359 pwdPlaceholder.hide(); 360 pwdField.show(); 361 pwdField.focus(); 362 }); 363 364 pwdField.blur(function(){ 365 if(pwdField.val() == '') { 366 pwdPlaceholder.show(); 367 pwdField.hide(); 368 } 369 }); 370 } 371 ); 372 } 373}); 374 375// 夿æµè§å¨æ¯å¦æ¯æplaceholder屿§ 376function isSupportPlaceholder() { 377 var input = document.createElement('input'); 378 return 'placeholder' in input; 379} 380 381// jQueryæ¿æ¢placeholderçå¤ç 382function input(obj, val) { 383 var $input = obj; 384 var val = val; 385 $input.attr({value:val}); 386 $input.focus(function() { 387 if ($input.val() == val) { 388 $(this).attr({value:""}); 389 } 390 }).blur(function() { 391 if ($input.val() == "") { 392 $(this).attr({value:val}); 393 } 394 }); 395} 396//end 397 398 399 400 401//--------------ç¹å»å享 402function share(){ 403 $(".share_facebook").click(function () {//Facebook 404 var url = $(this).data("txt"); 405 var url = window.location.href; 406 var title = document.title; 407 var op = "https://www.facebook.com/sharer.php?s=100&p[title]=" + title + "&p[summary]=!&p[url]=" + encodeURIComponent(url) + "" 408 window.open(op) 409 }) 410 411 412 $(".share_twitter").click(function () {//Twitter 413 var url = $(this).data("txt"); 414 var url = window.location.href; 415 var title = document.title; 416 var op = "https://www.tumblr.com/login?redirect_to=https://www.tumblr.com/widgets/share/tool?shareSource=legacy&canonicalUrl=&url=" + encodeURIComponent(url) + "&title=" + title + ""; 417 window.open(op) 418 }) 419 420 $(".share_wb").click(function () {//å¾®å 421 var url = $(this).data("txt"); 422 var url = window.location.href; 423 // var title = document.title; 424 var title = $(".d_title h1").text(); 425 var op = "https://service.weibo.com/share/share.php?title=" + title + "&url=" + encodeURIComponent(url) + ""; 426 window.open(op) 427 }) 428 $(".share_qqkj").click(function () {//è ¾è®¯å¾®å 429 var url = $(this).data("txt"); 430 var url = window.location.href; 431 var title = document.title; 432 var op = "https://sns.qzone.qq.com/cgi-bin/qzshare/cgi_qzshare_onekey?title=" + title + "&url=" + encodeURIComponent(url) + ""; 433 window.open(op) 434 }) 435 436 $(".share_qq").click(function () {//QQ 437 var url = $(this).data("txt"); 438 var url = window.location.href; 439 var title = document.title; 440 var op = "https://connect.qq.com/widget/shareqq/index.html?url=" + encodeURIComponent(url) + ""; 441 window.open(op); 442 }) 443 444 $(".share_douban").click(function () {//è±ç£ 445 var url = $(this).data("txt"); 446 var url = window.location.href; 447 var title = document.title; 448 var op = "https://www.douban.com/share/service?title=" + title + "&url=" + encodeURIComponent(url) + ""; 449 window.open(op); 450 }) 451 452 $(".share_bd").click(function () {//ç¾åº¦è´´å§ 453 var url = $(this).data("txt"); 454 var url = window.location.href; 455 var title = document.title; 456 var op = "https://s.share.baidu.com/mshare?url=" + title + "&url=" + encodeURIComponent(url) + ""; 457 window.open(op); 458 }) 459 460 //微信 461 $(".share_wx").attr("data-qrcode","https://www.xinhongru.com/qrcode/qrcode.php?content="+window.location.href); 462 463 $(".share_wx").click(function () {//微信 464 //var url = "/qrCode/Index.aspx?url=" + window.location.href; 465 var url = $(this).attr("data-qrcode") 466 console.log(url) 467 var title = "" 468 title += "<div class='weixin'>" 469 title += "<i class='c'>x</i>" 470 title += "<h2>äºç»´ç </h2>" 471 title += "<div class='img'><img src='" + url + "' width='100px;' height='100px;'></div>" 472 title += "<p>æ«ä¸æ«</p>" 473 title += "</div>" 474 $("body").remove(".weixin"); 475 $("body").append(title) 476 }) 477 $(document).on("click", ".weixin .c", function () { 478 $(".weixin").remove(); 479 }) 480} 481 482 483 484function indexTab(){ 485 setTimeout(function () { 486 $(".index_loadbox li").eq(0).click(); 487 }, 200); 488 if($(window).width()>767){ 489 if($(".index_loadbox li").length>6){ 490 $(".index_loadbox .but_pub").show() 491 } 492 }else{ 493 if($(".index_loadbox li").length>3){ 494 $(".index_loadbox .but_pub").show() 495 } 496 } 497 498 if($(".index_loadbox li").length>1){ 499 var pro3 = new Swiper('.index_loadbox .swiper-container', { 500 nextButton: '.index_loadbox .swiper-button-next', 501 prevButton: '.index_loadbox .swiper-button-prev', 502 slidesPerView: 6, 503 slidesPerGroup: 1, 504 paginationClickable: true, 505 spaceBetween: 0, 506 noSwiping : true, 507 onInit: function(swiper){ 508 var i = $('.index_loadbox .swiper-slide.on').index(); 509 swiper.slideTo(i-1); 510 }, 511 512 breakpoints: { 513 514 767: { 515 slidesPerView: 3, 516 517 } 518 } 519 }); 520 } 521 522 var _ind = 0; 523 var _len = $(".index_loadbox .swiper-slide").length; 524 var url = $(".index_loadbox .swiper-slide").eq(0).data("src"); 525 btnJudge(); 526 527 528 $(".index_loadbox .swiper-slide").click(function(){ 529 var url = $(this).data("src"); 530 if(url == ""){ 531 return false; 532 }else{ 533 indexAjax(".index_ajax",url) 534 } 535 536 _ind = $(this).index(); 537 538 $(this).addClass("on").siblings().removeClass("on"); 539 540 btnJudge(); 541 542 imgratio(); 543 imgratio2(); 544 545 546 }) 547 548 549 $(".index_loadbox .swiper-button-prev").click(function() { 550 _ind--; 551 btnJudge() 552 $(".index_loadbox .swiper-slide").eq(_ind).addClass("on").siblings().removeClass("on"); 553 $(".index_loadbox .swiper-slide.on").click(); 554 555 // var srcurl=$(".index_loadbox .swiper-slide").eq(_ind).find("img").attr("src"); 556 // console.log(srcurl) 557 // $(".pro_bigimg img").attr("src",srcurl) 558 559 imgratio(); 560 imgratio2(); 561 562 563 564 565 }) 566 //ç¹å»åæé®ï¼å®ç°_indèªå 1 567 $('.index_loadbox .swiper-button-next').click(function() { 568 _ind++; 569 btnJudge() 570 $(".index_loadbox .swiper-slide").eq(_ind).addClass("on").siblings().removeClass("on"); 571 $(".index_loadbox .swiper-slide.on").click(); 572 573 // var srcurl=$(".index_loadbox .swiper-slide").eq(_ind).find("img").attr("src"); 574 // console.log(srcurl) 575 // $(".pro_bigimg img").attr("src",srcurl); 576 577 imgratio(); 578 imgratio2(); 579 580 }) 581 582 function btnJudge() { 583 if(_ind >= _len - 1) { 584 $('.index_loadbox .swiper-button-next').addClass("disabled") 585 _ind = _len - 1; 586 } else { 587 $('.index_loadbox .swiper-button-next').removeClass("disabled") 588 } 589 if(_ind <= 0) { 590 $(".index_loadbox .swiper-button-prev").addClass("disabled") 591 _ind = 0; 592 } else { 593 $(".index_loadbox .swiper-button-prev").removeClass("disabled") 594 } 595 } 596} 597 598 599function tem_tac(){ 600 $(".team_list dd h3, .team_list dt,.team_list dd h3,.team_list dd .pubjia").click(function(){ 601 602 $(".blank_30,.team_tac").stop().fadeIn(); 603 var url = $(this).data("src"); 604 if(url == ""){ 605 return false; 606 }else{ 607 indexAjax(".team_ajax",url) 608 } 609 }) 610 611 $(document).on("click",".team_close",function(){ 612 $(".blank_30,.team_tac").stop().fadeOut(); 613 }) 614 615} 616 617function indexAjax(str,url){ 618 if (url.indexOf('?') == -1) { 619 url += '?tm=' + Math.random(); 620 } else { 621 url += '&tm=' + Math.random(); 622 } 623 624 $.ajax({
625 url:url, 626 success:function(msg){ 627 $(str).html(""); 628 $(str).append(msg); 629 imgratio(); 630 imgratio2(); 631 $(".index_text").slideDown(); 632 ScollText(".team_intr .team_edit"); 633 634 } 635 }); 636} 637 638 639function mapInt(mapTitle,mapAdress,mapx,mapy){ 640 var num = 0.001; 641 var map = new BMap.Map("map"); 642 var point = new BMap.Point(mapx,mapy); 643 var point2 = new BMap.Point(mapx,mapy); 644 645 var myIcon = new BMap.Icon("../images/mapaddress.png", new BMap.Size(31,40)); 646 var marker2 = new BMap.Marker(point2,{icon:myIcon}); 647 map.addOverlay(marker2); 648 map.centerAndZoom(point, 19); 649 if($(window).width()<1024){ 650 num = 0; 651 map.centerAndZoom(point2, 19); 652 } 653 654 map.enableScrollWheelZoom(); 655 map.enableContinuousZoom(); 656} 657 658 659$(function(){ 660 lifeSlider(); 661 growthStaff(); 662 lifeActive(); 663}) 664 665 666function lifeSlider(){ 667 if($(window).width()>1024){ 668 if($(".life_slider li").length>1){ 669 $(".life_slider .honor_but").show(); 670 if($("html").hasClass("ie9")){ 671 console.log(1) 672 673 var mySwiper = new Swiper('.life_slider .swiper-container',{ 674 loop: true, 675 // autoplay:5000, 676 slidesPerView: 1, 677 678 nextButton: '.life_slider .swiper-button-next', 679 prevButton: '.life_slider .swiper-button-prev', 680 pagination : '.life_slider .swiper-pagination', 681 paginationType: 'fraction', 682 paginationClickable :true, 683 autoplayDisableOnInteraction : false, 684 685 }) 686 }else{ 687 var mySwiper = new Swiper('.life_slider .swiper-container',{ 688 loop: true, 689 // autoplay:5000, 690 slidesPerView: "auto", 691 centeredSlides:true, 692 loopAdditionalSlides:100, 693 spaceBetween: "5.2%", 694 nextButton: '.life_slider .swiper-button-next', 695 prevButton: '.life_slider .swiper-button-prev', 696 pagination : '.life_slider .swiper-pagination', 697 paginationType: 'fraction', 698 paginationClickable :true, 699 autoplayDisableOnInteraction : false, 700 701 }) 702 } 703 }else{ 704 $(".life_01").addClass("nocur") 705 } 706 }else{ 707 if($(".life_slider li").length>1){ 708 $(".life_slider .honor_but").show(); 709 var mySwiper = new Swiper('.life_slider .swiper-container',{ 710 loop: true, 711 // autoplay:5000, 712 slidesPerView: 1, 713 714 nextButton: '.life_slider .swiper-button-next', 715 prevButton: '.life_slider .swiper-button-prev', 716 pagination : '.life_slider .swiper-pagination', 717 paginationType: 'fraction', 718 paginationClickable :true, 719 autoplayDisableOnInteraction : false, 720 721 }) 722 }else{ 723 $(".life_01").addClass("nocur") 724 } 725 } 726} 727 728function growthStaff(){ 729 if($(".growth_type li").length>1){ 730 var brand3Swiper = new Swiper('.growth_type .swiper-container', { 731 slidesPerView: 3, 732 slidesPerGroup: 1, 733 spaceBetween: 20, 734 prevButton:'.growth_type .swiper-button-prev', 735 nextButton:'.growth_type .swiper-button-next', 736 pagination : '.growth_type .swiper-pagination', 737 paginationClickable :true, 738 autoplayDisableOnInteraction : false, 739 breakpoints:{ 740 741 767: { 742 slidesPerView: 1, 743 slidesPerGroup: 1 744 }, 745 } 746 }) 747 } 748 if($(window).width()>1024){
749 if($(".growth_type li").length>3){ 750 $(".growth_type .swiper_page02").show(); 751 } 752 }else{ 753 if($(".growth_type li").length>1){ 754 $(".growth_type .honor_but").show(); 755 } 756 } 757} 758 759function lifeActive(){ 760 if($(".life_active .swiper-slide").length>1){ 761 var brand3Swiper = new Swiper('.life_active .swiper-container', { 762 slidesPerView: 1, 763 slidesPerGroup: 1, 764 spaceBetween: 0, 765 prevButton:'.life_active .swiper-button-prev', 766 nextButton:'.life_active .swiper-button-next', 767 paginationClickable :true, 768 autoplayDisableOnInteraction : false, 769 770 }) 771 } 772 if($(".life_active .swiper-slide").length>1){ 773 $(".life_active .honor_but").show(); 774 } 775} 776 777 778 779function strategy_animate(){ 780 $(".strategy_b").each(function(){ 781 $(this).find("li").eq(0).addClass("cur"); 782 }) 783 if ($('.strategy_b').length>0) { 784 $(".strategy_b li").hover(function(){ 785 $(".strategy_t li").eq($(this).index()).show().siblings().hide(); 786 $(this).addClass("cur").siblings().removeClass("cur"); 787 $(this).parents(".strategy_b").attr('class','strategy_b strastate_'+($(this).index()+1)); 788 }) 789 790 } 791 792} 793 794 795function diagn_animate(){ 796 $(".diagn_aini").each(function(){ 797 $(this).find("li").eq(0).addClass("on"); 798 }) 799 if ($('.diagn_aini').length>0) { 800 $(".diagn_aini li").hover(function(){ 801 802 $(this).addClass("on").siblings().removeClass("on"); 803 $(this).parents(".diagn_aini").attr('class','diagn_aini diagnstate_'+($(this).index()+1)); 804 }) 805 806 } 807 808 809 810} 811 812function diagn_slider(){ 813 if($(window).width()<1024){ 814 if($(".diagn_slider li").length>1){ 815 var brand3Swiper = new Swiper('.diagn_slider .swiper-container', { 816 slidesPerView: 3, 817 slidesPerGroup: 1, 818 spaceBetween: 10, 819 prevButton:'.diagn_slider .swiper-button-prev', 820 nextButton:'.diagn_slider .swiper-button-next', 821 breakpoints:{ 822 //å½å®½åº¦å°äºçäº1024 823 767: { 824 slidesPerView: 2, 825 spaceBetween: 5 826 }, 827 } 828 }) 829 } 830 831 if($(window).width()<1024){ 832 if($(".diagn_slider li").length>3){ 833 $(".diagn_slider .honor_but").show(); 834 } 835 } 836 if($(window).width()<767){ 837 if($(".diagn_slider li").length>2){ 838 $(".diagn_slider .honor_but").show(); 839 } 840 } 841 842 843 844 } 845} 846 847 848 849 850 851function selectbox02(){ 852 $(".pub_sex").each(function (i) { 853 854 $(document).on("click",".pub_sex dt",function(e){ 855 e.preventDefault(); 856 e.stopPropagation(); 857 var el = $(this).parent(".pub_sex"); 858 if(el.hasClass('open')){ 859 el.removeClass('open'); 860 el.find("dd").stop().slideUp(); 861 }else{ 862 el.addClass('open'); 863 el.find("dd").stop().slideDown(); 864 } 865 }) 866 867 $(document).on("click",".pub_sex dd p",function(){ 868 var inde = $(this).index(); 869 $(this).addClass("active").siblings().removeClass("active"); 870 var el = $(".pub_sex.open"); 871 872 el.find("dt p").html($(this).html()); 873 el.find("dd p").eq(inde).addClass("active").siblings().removeClass("active"); 874 875 }) 876 877 }) 878 879 $(document).click(function () { 880 $(".pub_sex.open").removeClass("open"); 881 $(".pub_sex").find("dd").stop().slideUp(); 882 }) 883} 884 885 886 887
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.