1 2 3window.onload = function(){ 4 if (typeof Swiper != 'undefined') { 5 if($('.indexbanner ul li').length > 1){ 6 var ibanSw = new Swiper('.indexbanner', { 7 effect: 'slide', 8 autoplay: 3000, 9 loop:true, 10 speed: 1200, 11 prevButton: '.inxban-prev', 12 nextButton: '.inxban-next', 13 paginationClickable: true, 14 preventClicks: false, 15 autoplayDisableOnInteraction: false, 16 pagination: '.indexb-dots', 17 // simulateTouch: false, 18 grabCursor: false, 19 parallax: true, 20 onTransitionEnd: function onTransitionEnd(swiper) { 21 $(".indexbanner ul li").eq(swiper.activeIndex).addClass("active").siblings().removeClass("active"); 22 }, 23 breakpoints: { 24 1023: { 25 } 26 } 27 }) 28 }; 29 $('.insdevelop-dedd-wrapper li').eq(2).show().siblings().hide(); 30 var insideDevelopYearSwiper = new Swiper('.insdevelop-year-wrapper', { 31 loop: false, 32 spaceBetween:0, 33 speed: 1200, 34 paginationClickable: true, 35 autoplayDisableOnInteraction: false, 36 direction : 'vertical', 37 prevButton: '.insdevelop-prev', 38 nextButton: '.insdevelop-next', 39 slidesPerView: 'auto', 40 observer: true, 41 centeredSlides: true, 42 roundLengths : true, 43 observeParents: true, 44 // height:1133, 45 breakpoints: { 46 1023: { 47 // spaceBetween:8, 48 // direction : 'horizontal', 49 //height:556, 50 }, 51 1679:{ 52 // height:601, 53 } 54 }, 55 // mousewheelControl : true, 56 onSlideChangeStart: function (swiper) { 57 $(".insdevelop-year-wrapper li").removeClass("cur").eq(swiper.activeIndex).addClass("cur"); 58 }, 59 onTransitionStart:function(swiper){ 60 $('.insdevelop-dedd-wrapper li').hide().eq(swiper.activeIndex).show(); 61 } 62 }); 63 if($(".insdevelop-dedd-wrapper").length){ 64 // insideDevelopDeddSwiper.slideTo(2,0); 65 insideDevelopYearSwiper.slideTo(2,0); 66 } 67 68 $('.insdevelop-year-wrapper ul li').on('click',function(){ 69 $('.insdevelop-dedd-wrapper li').hide().eq($(this).index()).show(); 70 insideDevelopYearSwiper.slideTo($(this).index(),1200); 71 }) 72 73 if($('.inside-certiwrapper ul li').length > 1){ 74 var insidecerSw = new Swiper('.inside-certiwrapper', { 75 effect: 'slide', 76 autoplay: 4000, 77 loop:true, 78 spaceBetween:35, 79 speed: 1200, 80 paginationClickable: true, 81 preventClicks: false, 82 autoplayDisableOnInteraction: false, 83 pagination: '.insidecer-dots', 84 // simulateTouch: false, 85 grabCursor: false, 86 parallax: true, 87 }) 88 }; 89 90 91 // if($('.instation-wrapper ul li').length > 1){ 92 // var insidecerSw = new Swiper('.instation-wrapper', { 93 // effect: 'slide', 94 // autoplay: false, 95 // loop:true, 96 // spaceBetween:40, 97 // speed: 1200, 98 // slidesPerView: 2, 99 // paginationClickable: true, 100 // preventClicks: false, 101 // autoplayDisableOnInteraction: false, 102 // // pagination: '.instation-dots', 103 // prevButton: '.instation-prev', 104 // nextButton: '.instation-next', 105 // // simulateTouch: false, 106 // grabCursor: false, 107 // parallax: true, 108 // noSwiping : true, 109 // observer:true, 110 // observeParents:true, 111 // breakpoints: { 112 // 1023: { 113 // spaceBetween:30, 114 // slidesPerView: 1, 115 // } 116 // } 117 // }) 118 // }; 119 // var instationSw = new Swiper('.instation-title', { 120 // effect: 'slide', 121 // autoplay: false, 122 // loop:true, 123 // spaceBetween:40, 124 // speed: 1200, 125 // slidesPerView: 1, 126 // paginationClickable: true, 127 // preventClicks: false, 128 // autoplayDisableOnInteraction: false, 129 // // pagination: '.instation-dots', 130 // prevButton: '.instation-prev', 131 // nextButton: '.instation-next', 132 // // simulateTouch: false, 133 // grabCursor: false, 134 // noSwiping : true, 135 // parallax: true, 136 // observer:true, 137 // observeParents:true, 138 // }) 139 140 141 var inxdustryswiper = new Swiper('.inxdustry-swiper', { 142 143 prevButton: '.inxdustry-prev', 144 nextButton: '.inxdustry-next', 145 slidesPerView:1.5, 146 paginationClickable: true, 147 speed: 1200, 148 spaceBetween: 70, 149 // slidesPerColumnFill : 'row', 150 pagination: '.inxdustry-pagination', 151 loop:true, 152 observer:true, 153 paginationType : 'custom', 154 observeParents:true, 155 centeredSlides:true, 156 breakpoints:{ 157 767:{ 158 slidesPerView:1, 159 spaceBetween: 10 160 } 161 }, 162 paginationCustomRender: function (swiper, current, total) { 163 return '<span class="swiper-pagination-current">'+(current < 10 ? '0'+current : current)+'</span>' + 164 ' / ' + 165 '<span class="swiper-pagination-total">'+(total < 10 ? '0'+total : total)+'</span>'; 166 }, 167 onInit:function(swiper){ 168 169 $(".inxnews-play").click(function(){ 170 171 if($blur){ 172 $blur = false;
173 $(this).addClass("cur") 174 swiper.stopAutoplay(); 175 }else{ 176 $blur = true; 177 $(this).removeClass("cur") 178 swiper.startAutoplay(); 179 } 180 181 }); 182 183 } 184 }); 185 186 var insvideoswiper = new Swiper('.insmart-video-wrapper ', { 187 // pagination: '.swiper-pagination', 188 effect: 'coverflow', 189 grabCursor: true, 190 centeredSlides: true, 191 slidesPerView: 'auto', 192 // spaceBetween: 50, 193 loop:true, 194 prevButton: '.insmart-prev', 195 nextButton: '.insmart-next', 196 coverflow: { 197 rotate: 50, 198 stretch: 0, 199 depth: 0, 200 modifier: 1.2, 201 slideShadows : true 202 } 203 }); 204 205 if($('.alink-swiper ul li').length > 1){ 206 var insidealinkSw = new Swiper('.alink-swiper', { 207 effect: 'slide', 208 autoplay: 4000, 209 loop:true, 210 spaceBetween:80, 211 slidesPerView: 'auto', 212 speed: 1200, 213 paginationClickable: true, 214 preventClicks: false, 215 autoplayDisableOnInteraction: false, 216 pagination: '.insidecer-dots', 217 // simulateTouch: false, 218 grabCursor: false, 219 parallax: true, 220 breakpoints:{ 221 1259:{ 222 spaceBetween: 20 223 } 224 }, 225 }) 226 }; 227 228 229 new Swiper('.indexProductSwiper',{ 230 pagination : '.indexProductSwiperDot', 231 observer:true, 232 }) 233 new Swiper('.index_productS',{ 234 pagination : '.index_productSbtn', 235 observer:true, 236 }) 237 238 } 239 var insidecerSw = new Swiper('.alink-swiper', { 240 effect: 'slide', 241 autoplay: 4000, 242 loop:true, 243 spaceBetween:80, 244 slidesPerView: 'auto', 245 speed: 1200, 246 paginationClickable: true, 247 preventClicks: false, 248 autoplayDisableOnInteraction: false, 249 pagination: '.insidecer-dots', 250 // simulateTouch: false, 251 grabCursor: false, 252 parallax: true, 253 breakpoints:{ 254 1259:{ 255 spaceBetween: 20 256 } 257 }, 258 }) 259 var softwareSwiper = new Swiper('.inside-software-items',{ 260 slidesPerColumn : 2, 261 slidesPerColumnFill : 'row', 262 slidesPerView: 6, 263 observer:true, 264 observeParents:true, 265 parallax: true, 266 noSwiping : true, 267 breakpoints:{ 268 440:{ 269 slidesPerView: 2, 270 autoplay: 4000 271 }, 272 1024:{ 273 slidesPerView: 4, 274 autoplay: 4000 275 } 276 }, 277 }); 278 279 280 $(".inside-software-item").each(function (i) { 281 $(this).find(".inside-software-wrapper").addClass("inside-software-wrapper" + i); 282 $(this).find(".inside-software-table").addClass("inside-software-table" + i); 283 var softwarecontent = '.inside-software-wrapper'+i; 284 var softwaretable = '.inside-software-table'+i; 285 var noswiper = false;
286 // console.log(1) 287 // if(.length < ){ 288 289 // } 290 console.log($(softwarecontent).find('.swiper-slide').length) 291 if($(softwarecontent).find('.swiper-slide').length <= 1){ 292 $(softwarecontent).find('.swiper-wrapper').addClass('swiper-no-swiping'); 293 noswiper = true; 294 } 295 console.log(noswiper) 296 var softwarecontentSwiper = new Swiper(softwarecontent, { 297 slidesPerView: 1, 298 // autoHeight:true, 299 observer:true, 300 observeParents:true, 301 parallax: true, 302 // autoHeight:true, 303 autoHeight: true, //é«åº¦éå 容åå 304 noSwiping : noswiper, 305 onSlideChangeStart: function(swiper) { 306 $(softwaretable + " ul li").eq(swiper.activeIndex).addClass("cur").siblings().removeClass("cur"); 307 308 }, 309 onTransitionEnd: function onTransitionEnd(swiper) { 310 $(softwarecontent + " .swiper-slide").eq(swiper.activeIndex).addClass("active").siblings().removeClass("active"); 311 }, 312 313 }); 314 315 316 new Swiper(softwaretable, { 317 slidesPerView: 'auto', 318 touchRatio: 0.2, 319 slideToClickedSlide: true 320 }); 321 322 $(softwaretable + " ul li:eq(0)").addClass("cur"); 323 $(document).on("click", softwaretable + " ul li", function() { 324 console.log(softwarecontentSwiper) 325 softwarecontentSwiper.slideTo($(this).index(), 800, false); 326 var index = $(this).index(); 327 $(this).addClass("cur").siblings().removeClass("cur"); 328 }); 329 330 }); 331 332 333 /* æ°åæ»å¨ */ 334 335 function numscroll(_this) { 336 var Current = _this.parents('.num-scroll').offset().top; 337 var bolExec = _this.attr("bolexec"); 338 var vnums = _this.data('nums'); 339 340 if(bolExec == 'true'){ 341 bolExec = true; 342 }else{ 343 bolExec = false; 344 } 345 //console.log(tar); 346 347 if ($(window).scrollTop() > Current - $(window).height()/2 && bolExec) { 348 349 function Animate() { 350 var counter = 0, 351 val = _this.text() - 0, 352 _time = 200, 353 vLen = (val + "").length; 354 355 var timer = setInterval(function () { 356 counter++; 357 var step = parseInt(val / _time * counter); // key 358 var text = ""; 359 for (var j = 0; j < vLen - (step + "").length; j++) { // éå¶ç´ 0 360 text += 0; 361 } 362 _this.text(text + step); // 363 if (counter >= _time) { 364 clearInterval(timer); 365 _this.html(vnums); 366 } 367 }, 10); 368 } 369 Animate(); 370 _this.attr("bolexec", "false"); 371 } 372 } 373 function setNumScroll(){ 374 $('.inxservice-num .numitem .num').each(function () { 375 numscroll($(this)); 376 }); 377 } 378 setNumScroll(); 379 $(window).scroll(setNumScroll); 380 381 !(function () { 382 383 var var_scroll = 0; 384 var isScroll = null; 385 386 $(window).scroll(function () { 387 388 var _this = $(this); 389 390 var_scroll = $(this).scrollTop(); 391 if (var_scroll >= 60) { 392 393 $('header').addClass('scroll'); 394 $('.inside-product-info').addClass('scroll productInfofixed'); 395 396 } else { 397 $('header').removeClass('scroll'); 398 $('.inside-product-info').removeClass('scroll productInfofixed'); 399 } 400 401 // if ($(window).width() >= 1024) { 402 403 404 // if (var_scroll > 100) { 405 // $('.goto').css('display', 'block'); 406 // $('.goto').on('click', function () { 407 // $('html,body').stop().animate({ 'scrollTop': 0 }, 400, function () { 408 // var_scroll = 0; 409 // }); 410 // }); 411 // } else { 412 // $('.goto').css('display', 'none'); 413 // } 414 415 // } else { 416 417 // $('.goto').on('click', function () { 418 // $('html,body').stop().animate({ 'scrollTop': 0 }, 600, function () { 419 // var_scroll = 0; 420 // }); 421 // }); 422 423 424 // } 425 426 427 }); 428 429 430 431 })(); 432 433 $(".curtitle").click(function () { 434 $(this).toggleClass("cur"); 435 $(".ins-pro-title-lv").slideToggle(200); 436 }); 437 $(".ins-prod-tab a").click(function(){ 438 $(this).addClass("cur").siblings().removeClass("cur"); 439 }) 440 function setmvPlayer(boxStr, playbtnStr, pauseStrl, ifFirst) { 441 var player; 442 var videoObject = { 443 container: boxStr, 444 variable: 'player', 445 //loaded: 'loadedHandler', 446 autoplay: false, 447 debug: true, 448 //flashplayer: true, 449 drag: 'start', 450 seek: 0, 451 playbackrate: -1, 452 mobileCkControls: false, 453 poster: $('.wposter img').attr('src') 454 }; 455 if (playbtnStr && typeof ckplayer != 'undefined') { 456 $(document).on('click', playbtnStr, function () { 457 $(".recruitmentfloat").show(); 458 videoObject.autoplay = true; 459 videoObject.video = $(this).attr('data-video'); 460 // poster 461 videoObject.poster = $(this).find('img').attr('data-post'); 462 463 // $(boxStr).prev().text($(this).find('.name').text()); 464 $(this).addClass('cur').siblings().removeClass('cur'); 465 player = new ckplayer(videoObject); 466 }); 467 if (pauseStrl) { 468 $(document).on('click', pauseStrl, function () { 469 player.videoPause(); 470 }); 471 } 472 } 473 } 474 setmvPlayer('#videobox1', '.inster-video-wrap .insvideo-el', null, 1); 475 setmvPlayer('#videobox1', '.insmart-video-wrapper ul li', null, 1); 476 $(document).on("click", ".recclosebtn", function () { 477 $(".recruitmentfloat").fadeOut(200); 478 $("#videobox1").html(""); 479 }); 480 /* æ¯å¦æäºçº§xiala */ 481 482 $('nav ul .lv1').each(function () { 483 if (!$(this).find('.lv2nav').length) { 484 $(this).find('h4 .icon').hide(); 485 } else { 486 $(this).find('h4 .icon').show(); 487 } 488 }); 489 490 $('.ftlvnav .lv1').each(function () { 491 if (!$(this).find('.ftsub').length) { 492 $(this).find('h4 .icon').hide(); 493 } else { 494 $(this).find('h4 .icon').show(); 495 } 496 }); 497 498 499 $(".inxpro-table li").eq(0).addClass("cur"); 500 $(".inpro-items").eq(0).show(); 501 $(document).on("click",".inxpro-table li",function(){ 502 var index = $(this).index(); 503 $(this).addClass("cur").siblings().removeClass("cur"); 504 $('.inpro-items').eq(index).show().siblings().hide(); 505 }) 506 507 /* å 页äºçº§ s */ 508 509 $(document).on('click', function (ev) { 510 if ($(window).width() < 1024) { 511 if (!$(ev.target).closest('.inside-subnav').length) { 512 $('.inside-subnav .subnav').stop().slideUp(); 513 $(".channel-title").removeClass("cur"); 514 } 515 } 516 517 }); 518 519 $(".channel-title").click(function () { 520 if ($(this).hasClass("cur")) { 521 $(".inside-subnav .subnav").stop().slideUp(300, function () { 522 $(this).removeAttr("style"); 523 }); 524 $(this).removeClass("cur"); 525 } 526 else { 527 $(".inside-subnav .subnav").stop().slideDown(300); 528 $(this).addClass("cur"); 529 530 } 531 }); 532 $(".insrfid-title").click(function(){ 533 if ($(this).hasClass("cur")) { 534 $(".insrfid-li").stop().slideUp(300, function () { 535 $(this).removeAttr("style"); 536 }); 537 $(this).removeClass("cur"); 538 } 539 else { 540 $(".insrfid-li").stop().slideDown(300); 541 $(this).addClass("cur"); 542 } 543 }) 544 $(".insprocat-title").click(function(){ 545 if ($(this).hasClass("cur")) { 546 $(".insprocat-li").stop().slideUp(300, function () { 547 $(this).removeAttr("style"); 548 }); 549 $(this).removeClass("cur"); 550 } 551 else { 552 $(".insprocat-li").stop().slideDown(300); 553 $(this).addClass("cur"); 554 } 555 }); 556 $(".insprocat-li ul li").click(function(){ 557 $(".insprocat-li").stop().slideUp(300,function(){ 558 $(this).removeAttr("style"); 559 }); 560 $(".insprocat-title").removeClass("cur"); 561 }) 562 if (!$('.subnav').find('li').length) { 563 $('.channel-title').addClass('none'); 564 } 565 566 $(document).on("click",".inside-retail-list ul li .content",function(){ 567 $(this).parent().addClass("zindex").find(".insretail-thumb").stop().fadeIn(); 568 }); 569 $(".thumb-bg,.thumb-close").click(function(){ 570 // $(this).stop().fadeOut(); 571 $(".insretail-thumb").stop().fadeOut(); 572 }) 573 574 function judescreen() { 575 576 $(".inside-software-table").each(function(){ 577 $(this).find("li").css("width",$(this).width()/$(this).find("li").length); 578 }) 579 //çé« 580 function Itemheight(item, li) { 581 582 var heightArr = []; 583 // default 584 $(item).find(li).css('height', 'auto'); 585 // maxheight 586 $(item).find(li).each(function () { 587 heightArr.push($(this).outerHeight()); 588 }); 589 var maxHeight = Math.max.apply(Math, heightArr); 590 $(item).find(li).css('height', maxHeight); 591 592 }; 593 var winw = $(window).width(); 594 595 596 // Itemheight(".inside-software-items","ul li"); 597 598 // $(".indexbanner ul li").each(function () { 599 // var _this = $(this); 600 601 // if ($(window).width() >= 1024) { 602 // var pcsrc = _this.find('.banner-img').data('pcsrc'); 603 // _this.find('.banner-img img').attr('src', pcsrc) 604 605 // } else { 606 607 // var mmsrc = _this.find('.banner-img').data('mmsrc'); 608 // _this.find('.banner-img img').attr('src', mmsrc); 609 610 // } 611 612 // }); 613 614 if(winw >= 767){ 615 616 // Itemheight(".indexpro-list",".ipro-listitem "); 617 } 618 619 if (winw >= 1024) { 620 $(".insprocat-title").off(); 621 $(".insprocat-li ul li").off(); 622 /* 导èªä¸æ */ 623 $('.mobnav-btn').removeClass('open'); 624 if ($('nav').attr('style') != '') { 625 $('nav').removeAttr('style') 626 } 627 628 $(".inside-software-items").addClass("swiper-no-swiping"); 629 630 /* 导èªä¸æ */ 631 /* $('nav .lvnav .lv1').off().hover(function () { 632 $("header").addClass("hover"); 633 if ($(this).find('.hsubnav').length) { 634 $(this).find('.hsubnav').stop().slideDown(300); 635 } 636 }, function () { 637 $("header").removeClass("hover"); 638 if ($(this).find('.hsubnav').length) { 639 $(this).find('.hsubnav').stop().slideUp(100); 640 } 641 });*/ 642 643 644 645 // $('.inside-subitem').off(); 646 Itemheight(".inside-contact-list","li .content"); 647 648 $(".inside-subnav .subnav").show(); 649 650 $(".inside-subnav .subnav ul").addClass("swiper-wrapper"); 651 $(".subnav ul li").addClass("swiper-slide"); 652 653 var navListwid = 0; 654 var navListLength = $(".inside-subnav .subnav ul li").length; 655 $(".inside-subnav .subnav ul li").each(function () { 656 var thisEle = $(this); 657 navListwid += thisEle.outerWidth(); 658 }); 659 660 if (navListwid > ($(".inside-subnav .subnav").width()+1)) { 661 $(".inside-subnav .sub-btn").show(); 662 $(".inside-subnav .subnav").addClass("padding"); 663 var swiper = new Swiper('.inside-subnav .subnav', { 664 pagination: '', 665 nextButton: '.sub-next', 666 prevButton: '.sub-prev', 667 paginationClickable: true, 668 roundLengths: true, 669 slidesPerView: "auto", 670 spaceBetween: 0, 671 preventLinksPropagation: false 672 }); 673 swiper.slideTo($(".inside-subnav .subnav ul li.cur").index(), 0, false); 674 } else { 675 $(".inside-subnav .subnav ul").removeClass("swiper-wrapper"); 676 $(".inside-subnav .subnav ul li").removeClass("swiper-slide"); 677 $(".inside-subnav .sub-btn").hide(); 678 } 679 ; 680 681 $('.inside-subnav .subnav ,.third-cate .cate-list').show(); 682 $(".prostrength-wrap ul li ").hover(function(){ 683 $(this).addClass("cur").siblings().removeClass("cur"); 684 }) 685 686 687 } else { 688 689 if ($('.hsubnav').attr('style') != '') { 690 $('.hsubnav').removeAttr('style') 691 } 692 $(".inside-subnav .subnav ul").removeClass("swiper-wrapper"); 693 $(".inside-subnav .subnav ul li").removeClass("swiper-slide"); 694 $(".inside-subnav .subnav").hide(); 695 696 697 698 699 /* å°¾é¨äºçº§å¯¼èªä¸æ */ 700 701 $(".footernav .ftlvnav .lv1").off('mouseleave mouseenter'); 702 $(".footernav .ftlvnav .lv1 h4").off("click").on("click", function () { 703 if ($(this).parents(".lv1").find(".ftsub").is(":hidden")) { 704 $(this).parents(".lv1").find(".ftsub").slideDown().parents("li").siblings().find(".ftsub").slideUp(); 705 $(this).parents(".lv1").addClass("cur").siblings().removeClass("cur"); 706 707 } else { 708 $(this).parents(".lv1").find(".ftsub").slideUp(); 709 $(this).parents(".lv1").removeClass("cur"); 710 } 711 }); 712 713 714 715 716 717 // $(".inside-mapoints ul").css("height",$(".inside-mapoints ul li").length * $(".inside-mapoints ul li").) 718 719 } 720 721 } 722 723 judescreen(); 724 $(window).resize(function () { 725 judescreen(); 726 }); 727 728 729}; 730 731 732 733 734 735 736 737$(function(){ 738 739 var winw = $(window).width(); 740 741 if (winw >= 1024) { 742 743 744 $('.index-search .search-icon').off().on('click',function (e) { 745 if($(this).next().is(':hidden')){ 746 $(this).addClass('closeSearch'); 747 $(this).next().fadeIn(200); 748 } else { 749 $(this).removeClass('closeSearch'); 750 $(this).next().fadeOut(200); 751 } 752 }) 753 754 $('.index-lang').hover(function (e) { 755 $(this).find('.lang-dropmenu').stop().slideDown(200); 756 }, function () { 757 $(this).find('.lang-dropmenu').stop().slideUp(50); 758 }); 759 } 760 else{ 761 762 /* 导èªä¸æ */ 763 764 $('.index-search ,.mobnav-btn,.index-lang').off('mouseleave mouseenter'); 765 766 $('.index-search .search-icon').off().on('click', function () { 767 if($(this).next().is(':hidden')){ 768 $(this).addClass('closeSearch'); 769 $(this).next().slideDown(200); 770 } else { 771 $(this).removeClass('closeSearch'); 772 $(this).next().slideUp(200); 773 } 774 775 if (!$('nav').is(':hidden')) { 776 $('nav').stop().slideUp(200); 777 } 778 if (!$('.lang-dropmenu').is(':hidden')) { 779 $('.lang-dropmenu').slideUp(200); 780 } 781 $('.mobnav-btn').removeClass('open'); 782 $('header').removeClass('open'); 783 784 }); 785 786 $('.index-lang').on('click', '.lang-icon', function () { 787 $(this).next('.lang-dropmenu').stop().slideToggle(200); 788 789 if (!$('nav').is(':hidden')) { 790 $('nav').stop().slideUp(200); 791 792 } 793 if (!$('.index-search .search-box').is(':hidden')) {
794 $('.index-search .search-box').slideUp(200); 795 } 796 797 $('.mobnav-btn').removeClass('open'); 798 $('header').removeClass('open'); 799 800 }); 801 802 $('.mobnav-btn').off('click').on('click', function () { 803 $('nav').stop().slideToggle(200); 804 $(this).toggleClass('open'); 805 $('header').toggleClass('open'); 806 807 if (!$('.index-search .search-box').is(':hidden')) { 808 $('.index-search .search-box').slideUp(200); 809 } 810 if (!$('.lang-dropmenu').is(':hidden')) { 811 $('.lang-dropmenu').slideUp(200); 812 } 813 814 }); 815 816 817 818 /* 头é¨äºçº§å¯¼èªä¸æ */ 819 $('nav .lvnav .lv1').off('mouseleave mouseenter'); 820 $("nav .lvnav .lv1 h4").off().on("click", function () { 821 if ($(this).parents(".lv1").find(".hsubnav").is(":hidden")) { 822 $(this).parents(".lv1").find(".hsubnav").slideDown().parents("li").siblings().find(".hsubnav").slideUp(); 823 824 $(this).parents(".lv1").siblings().find('.lv3nav').slideUp(); 825 $(this).parents(".lv1").addClass("cur2").siblings().removeClass("cur2"); 826 827 $(this).parents(".lv1").siblings().find(".lv2").removeClass("cur"); 828 829 } else { 830 $(this).parents(".lv1").find(".hsubnav").slideUp(); 831 $(this).parents(".lv1").find('.lv3nav').slideUp(); 832 $(this).parents(".lv1").removeClass("cur2"); 833 $(this).parents(".lv1").find(".lv2").removeClass("cur"); 834 } 835 }); 836 // three-nav 837 $(".three-btn").unbind("click").bind("click", function () { 838 if ($(this).parents(".lv2").find(".lv3nav").is(":hidden") && $(this).parents(".lv2").find(".lv3nav a").length > 0) { 839 $(this).parents(".lv2").find(".lv3nav").stop().slideDown().parents(".lv2").siblings().find(".lv3nav").stop().slideUp(); 840 $(this).parents(".lv2").addClass("cur").siblings().removeClass("cur"); 841 } 842 else { 843 $(this).parents(".lv2").find(".lv3nav").stop().slideUp(); 844 $(this).parents(".lv2").removeClass("cur"); 845 } 846 }); 847 } 848}) 849// wqfn(); 850 851 852 853 854// $(".curtitle").click(function () { 855// $(this).toggleClass("cur"); 856// $(".ins-pro-title-lv").slideToggle(200); 857// }); 858 859// function setmvPlayer(boxStr, playbtnStr, pauseStrl, ifFirst) { 860// var player; 861// var videoObject = { 862// container: boxStr, 863// variable: 'player', 864// //loaded: 'loadedHandler', //ççæ»é¸é弨é¯Ñç¤é¸æå§¾å¨´å¬å´¥æ´ã âéæ¶ç¼å¨æ¦å´éºã¦æ®¶ 865// autoplay: false, 866// debug: true, 867// //flashplayer: true, //çµî¼æ«é©æ¥æ çºã¦æflashplayer 868// drag: 'start', 869// seek: 0, 870// playbackrate: -1, 871// mobileCkControls: false, 872// poster: $('.wposter img').attr('src') 873// }; 874// if (playbtnStr && typeof ckplayer != 'undefined') { 875// $(document).on('click', playbtnStr, function () { 876// $(".recruitmentfloat").show(); 877// videoObject.autoplay = true; 878// videoObject.video = $(this).attr('data-video'); 879// // poster 880// videoObject.poster = $(this).find('img').attr('data-post'); 881 882// // $(boxStr).prev().text($(this).find('.name').text()); 883// $(this).addClass('cur').siblings().removeClass('cur'); 884// player = new ckplayer(videoObject); 885// }); 886// if (pauseStrl) { 887// $(document).on('click', pauseStrl, function () { 888// player.videoPause(); 889// }); 890// } 891// } 892// } 893// setmvPlayer('#videobox1', '.inside-videos-wrapper li .insvideo-content', null, 1); 894// $(document).on("click", ".recclosebtn", function () { 895// $(".recruitmentfloat").fadeOut(200); 896// $("#videobox1").html(""); 897// }); 898 899// $(document).on('click', '.insrecruit-list li .rectue-top', function () { 900// var _this = $(this); 901// if (_this.next().is(':hidden')) { 902// _this.parents('li').addClass('cur').siblings().removeClass("cur"); 903// _this.next().stop().slideDown(); 904// _this.parents('li').siblings().find('.rectue-min').stop().slideUp(300); 905// } else { 906// _this.parents('li').removeClass("cur"); 907// _this.next().slideUp(); 908// } 909// }); 910 911// $(document).on('click', '.ins-part-toggle li .ins-part-title', function () { 912// var _this = $(this); 913// if (_this.next().is(':hidden')) { 914// _this.parents('li').addClass('cur').siblings().removeClass("cur"); 915// _this.next().stop().slideDown(); 916// _this.parents('li').siblings().find('.ins-part-cont').stop().slideUp(300); 917// } else { 918// _this.parents('li').removeClass("cur"); 919// _this.next().slideUp(); 920// } 921// }); 922 923// if($('.inside-product-info').length){ 924// $(document).ready(function (e) { 925// t = $('.inside-product-info').offset().top - 100; 926// fh = $('.inside-product-info').height(); 927// $(window).scroll(function (e) { 928// s = $(document).scrollTop(); 929// if (s > t && $(window).width() > 1023) { 930// $('.inside-product-info').addClass("fixed").css('position', 'fixed'); 931// if (s > t) { 932// if($(window).width()>1023 && $(window).width() < 1260){ 933// $('.inside-product-info').css({'top': '80px', 'right': "0", "left"
933: "0"}); 934// }else if($(window).width() > 1259){ 935// $('.inside-product-info').css({'top': '100px', 'right': "0", "left": "0"}); 936// } 937 938// } 939// } else { 940// $('.inside-product-info').removeClass("fixed").css('position', ''); 941// } 942// }) 943// }); 944// } 945 946// $(".ins-prod-tab a").click(function () { 947// var t = $(".ins-prod-tab a").index($(this)); 948// $(".ins-prod-tab a").removeClass("cur").eq(t).addClass("cur"); 949// $("html,body").animate({scrollTop: $(".animateion").eq(t).offset().top - 180}, {duration: 500, easing: "swing"}); 950 951// }); 952// var inspepageSwiper = new Swiper('.inside-spepage-wrapper', { 953// paginationClickable: true, 954// loop:false, 955// autoplay: 4000, 956// speed: 1200, 957// simulateTouch: false, 958// prevButton: '.inspepage-prev', 959// nextButton: '.inspepage-next', 960// paginationClickable: true, 961// observer:true, 962// observeParents:true, 963// simulateTouch:false, 964// slidesPerView: 1, 965// autoplayDisableOnInteraction: false, 966// spaceBetween:20, 967// slidesPerView: 4, 968// breakpoints: { 969// 1023: { 970// spaceBetween:10, 971// slidesPerView: 2 972// } 973// } 974// }); 975// var inspicalSwiper = new Swiper('.inspro-spical-wrapper', { 976// paginationClickable: true, 977// autoplay: 2500, 978// loop:false, 979// speed: 1200, 980// simulateTouch: false, 981// prevButton: '.inspicl-prev', 982// nextButton: '.inspicl-next', 983// pagination: '.inspicl-pagination', 984// paginationClickable: true, 985// observer:true, 986// observeParents:true, 987// simulateTouch:false, 988// slidesPerView: 1, 989// autoplayDisableOnInteraction: false, 990// // onInit: function (swiper) { 991// // $(".inspicl-pagination span").eq(swiper.activeLoopIndex).addClass("cur"); 992// // } 993// paginationType: 'custom',//è¿éå页å¨ç±»åå¿ é¡»è®¾ç½®ä¸ºcustom,å³éç¨ç¨æ·èªå®ä¹é ç½® 994// //ä¸é¢æ¹æ³å¯ä»¥çææä»¬èªå®ä¹çå页å¨å°é¡µé¢ä¸ 995// paginationCustomRender: function(swiper, current, total) { 996// var customPaginationHtml = ""; 997// for(var i = 0; i < total; i++) { 998// //夿åªä¸ªå页卿¤å»åºè¯¥è¢«æ¿æ´» 999// if(i == (current - 1)) { 1000// customPaginationHtml += '<span class="swiper-pagination-customs swiper-pagination-customs-active" ><svg width="50" height="50" viewBox="0 0 60 60"><circle class="js-progress-circle" cx="-20" cy="40" r="15" fill="none" stroke-width="1.5"></circle></svg></span>'; 1001// //onmouseover="zanting('+swiper+')" 1002// } else { 1003// customPaginationHtml += '<span class="swiper-pagination-customs"></span>'; 1004// } 1005// } 1006// return customPaginationHtml; 1007// }, 1008// onTransitionStart:function(swiper){ 1009// console.log(swiper.activeIndex); 1010// $(".swiper-pagination-customs").eq(swiper.activeIndex).mouseover(function(){ 1011// $(".swiper-pagination-customs").eq(swiper.activeIndex).addClass("cur") 1012// swiper.stopAutoplay(); 1013// }); 1014// $(".swiper-pagination-customs").eq(swiper.activeIndex).mouseout(function(){ 1015// $(".swiper-pagination-customs").eq(swiper.activeIndex).removeClass("cur") 1016// swiper.startAutoplay(); 1017// }) 1018// }, 1019// // onSlideChangeStart:function(swiper){ 1020// // console.log(swiper.activeIndex); 1021// // } 1022// onInit:function(swiper){ 1023// $(".swiper-pagination-customs").eq(swiper.activeIndex).mouseover(function(){ 1024// $(".swiper-pagination-customs").eq(swiper.activeIndex).addClass("cur") 1025// swiper.stopAutoplay(); 1026// });
1027// $(".swiper-pagination-customs").eq(swiper.activeIndex).mouseout(function(){ 1028// $(".swiper-pagination-customs").eq(swiper.activeIndex).removeClass("cur") 1029// swiper.startAutoplay(); 1030// }) 1031 1032// } 1033 1034// }); 1035 1036 1037// // function zanting(swiper){ 1038// // swiper.stopAutoplay(); 1039// // } 1040 1041// var newsRelatedSwiper = new Swiper('.news-related-wrapper', { 1042// paginationClickable: true, 1043// loop:true, 1044// simulateTouch: false, 1045// prevButton: '.news-related-prev', 1046// nextButton: '.news-related-next', 1047// observer:true, 1048// observeParents:true, 1049// simulateTouch:false, 1050// slidesPerView: 1, 1051// autoplayDisableOnInteraction: false 1052// }); 1053 1054// var insideVideoSwiper = new Swiper('.inside-videos-wrapper', { 1055// loop: true, 1056// autoplay: 4000, 1057// speed: 1200, 1058// spaceBetween:20, 1059// paginationClickable: true, 1060// preventClicks: false, 1061// autoplayDisableOnInteraction: false, 1062// grabCursor: false, 1063// centeredSlides: true, 1064// parallax: true, 1065// slidesPerView: 'auto', 1066// breakpoints: { 1067// 1024: { 1068// spaceBetween:8, 1069// } 1070// } 1071 1072// }); 1073// $('.insdevelop-dedd-wrapper li').eq(3).show().siblings().hide(); 1074// var insideDevelopYearSwiper = new Swiper('.insdevelop-year-wrapper', { 1075// loop: false, 1076// spaceBetween:0, 1077// speed: 1200, 1078// paginationClickable: true, 1079// autoplayDisableOnInteraction: false, 1080// direction : 'vertical', 1081// prevButton: '.insdevelop-prev', 1082// nextButton: '.insdevelop-next', 1083// slidesPerView: 5, 1084// observer: true, 1085// centeredSlides: true, 1086// roundLengths : true, 1087// observeParents: true, 1088// // height:1133, 1089// breakpoints: { 1090// 1023: { 1091// // spaceBetween:8, 1092// // direction : 'horizontal', 1093// height:556, 1094// }, 1095// 1679:{ 1096// // height:601, 1097// } 1098// }, 1099// // mousewheelControl : true, 1100// onSlideChangeStart: function (swiper) { 1101// $(".insdevelop-year-wrapper li").eq(swiper.activeIndex).addClass("cur").siblings().removeClass("cur"); 1102// }, 1103// onTransitionStart:function(swiper){ 1104// $('.insdevelop-dedd-wrapper li').eq(swiper.activeIndex).show().siblings().hide(); 1105// } 1106// }); 1107 1108 1109// // var insideDevelopDeddSwiper = new Swiper('.insdevelop-dedd-wrapper', { 1110// // loop: false, 1111// // spaceBetween:0, 1112// // speed: 400, 1113// // paginationClickable: true, 1114// // autoplayDisableOnInteraction: false, 1115// // prevButton: '.insdevelop-prev', 1116// // nextButton: '.insdevelop-next', 1117// // direction : 'vertical', 1118// // slidesPerView: 1, 1119// // breakpoints: { 1120// // 1023: { 1121// // // spaceBetween:20, 1122// // // direction : 'horizontal' 1123// // } 1124// // }, 1125// // onSlideChangeStart: function (swiper) { 1126// // $(".insdevelop-year-wrapper li").eq(swiper.activeIndex).addClass("cur").siblings().removeClass("cur"); 1127// // } 1128 1129 1130// // }); 1131 1132// if($(".insdevelop-dedd-wrapper").length){ 1133// // insideDevelopDeddSwiper.slideTo(2,0); 1134// insideDevelopYearSwiper.slideTo(2,0); 1135// } 1136 1137 1138 1139 1140 1141// $(document).on("click", ".insdevelop-year-wrapper li", function () { 1142// insideDevelopDeddSwiper.slideTo($(this).index(), 800, false); 1143// var index = $(this).index(); 1144// $(this).addClass("cur").siblings().removeClass("cur"); 1145// }); 1146 1147 1148 1149// $('.iculture-desc').eq(0).show().siblings().hide(); 1150// $(".iculture-list li").eq(0).addClass("cur"); 1151// $(".iculture-list li").hover(function(){ 1152// var index = $(this).index(); 1153// $(this).addClass("cur").siblings().removeClass("cur"); 1154// $('.iculture-desc').eq(index).show().siblings().hide(); 1155// }) 1156 1157 1158 1159 1160// function wqfn() { 1161// if($(window).width()>=767){ 1162// }; 1163// if($(window).width()>=1023){ 1164 1165 1166// $(".channel-title").off("click"); 1167 1168// }else{ 1169 1170// } 1171// }; 1172 1173 1174// }) 1175 1176 1177 1178 1179 1180 1181// /////////////////////////////////////// 1182 1183 1184// $(function () { 1185 1186// /* é¦é¡µ e */ 1187 1188// if (typeof Swiper != 'undefined') { 1189 1190 1191 1192// if($('.indexbanner ul li').length > 1){ 1193// var mySwiper = new Swiper('.indexbanner', { 1194// effect: 'slide', 1195// loop: true, 1196// autoplay: 5000, 1197// speed: 600,
1198// pagination: '.index-pagination', 1199// prevButton: '.indexbanner .index-banner-prev', 1200// nextButton: '.indexbanner .index-banner-next', 1201// paginationClickable: true, 1202// preventClicks: false, 1203// autoplayDisableOnInteraction: true, 1204// simulateTouch: false, 1205// onTransitionEnd: function (swiper) { 1206 1207// $(".indexbanner ul li").each(function () { 1208// if ($(this).find('.bannervideo').length) { 1209// // $(this).find('.bannervideo')[0].pause(); 1210// } 1211// }); 1212// if ($(".indexbanner ul li").eq(swiper.activeIndex).find('.bannervideo').length) { 1213// // $(".indexbanner ul li").eq(swiper.activeIndex).find('.bannervideo')[0].play(); 1214// } 1215 1216// }, 1217 1218// onTransitionStart: function (swiper) { 1219 1220// if ($(".indexbanner ul li").eq(swiper.activeIndex).find('.bannervideo').length) { 1221// // $(".indexbanner ul li").eq(swiper.activeIndex).find('.bannervideo')[0].play(); 1222// } 1223// $(".indexbanner ul li").eq(swiper.activeIndex).addClass("cur").siblings().removeClass("cur"); 1224 1225// }, 1226// onInit: function () { 1227 1228// /* bannerå¸å±è®¾ç½® */ 1229// $(".indexbanner ul li").each(function () { 1230// var _this = $(this); 1231// var fontAlign = _this.find('.banner-offset').data('align') || 'left'; 1232// var fontTop = _this.find('.banner-offset').data('top') || '340'; 1233 1234// if ($(window).width() >= 1024) { 1235 1236// if(fontAlign == 'right'){ 1237// _this.find('.banner-offset').addClass('rtl'); 1238// } 1239// _this.find('.banner-offset').css({ 1240// 'text-align': fontAlign, 1241// 'top':(fontTop / 940) * 100 + '%', 1242// }); 1243// } 1244 1245 1246// if ($(window).width() >= 1024) { 1247 1248// var pcsrc = _this.find('.banner-img').data('pcsrc'); 1249// _this.find('.banner-img img').attr('src', pcsrc) 1250 1251// } else { 1252 1253// var mmsrc = _this.find('.banner-img').data('mmsrc'); 1254// _this.find('.banner-img img').attr('src', mmsrc); 1255 1256// } 1257 1258 1259 1260 1261// }); 1262 1263// } 1264 1265// }); 1266 1267 1268 1269// }else{ 1270// $('.indexbanner ul li').eq(0).addClass('cur'); 1271// $('.index-banner-prev,.index-banner-next').hide(); 1272 1273// } 1274 1275// bannervideo($('.indexbanner ul li'), true); 1276 1277 1278 1279 1280// $('.idxproduct-item').eq(0).show().siblings().hide(); 1281// $('.idxproduct-control ul li').eq(0).addClass('cur').siblings().removeClass('cur'); 1282// $('.idxproduct-control ul').on('click','li',function(){ 1283// var index = $(this).index(); 1284// $(this).addClass('cur').siblings().removeClass('cur'); 1285 1286// $('.idxproduct-item').eq(index).fadeIn(400).siblings().fadeOut(0); 1287// }); 1288 1289// var idxproductCtrSwiper = new Swiper('.idxproduct-control', { 1290// paginationClickable: true, 1291// loop:false, 1292// simulateTouch: false, 1293// spaceBetween:40, 1294// prevButton: '.proControl-swiper-prev', 1295// nextButton: '.proControl-swiper-next', 1296// // pagination: '.proControl-pagination', 1297// observer:true, 1298// observeParents:true, 1299// simulateTouch:false, 1300// slidesPerView: 2, 1301// slidesPerColumn: 2, 1302// slidesPerColumnFill:'row', 1303// autoplayDisableOnInteraction: false, 1304// breakpoints: { 1305// 1259: { 1306// spaceBetween:20, 1307// }, 1308// 1023: { 1309// slidesPerView: 3.5, 1310// slidesPerColumn: 2, 1311// spaceBetween:15, 1312// }, 1313// 768: { 1314// slidesPerView: 2.5, 1315// slidesPerColumn: 1, 1316// spaceBetween:15, 1317// }, 1318// 640: { 1319// slidesPerView: 1.2, 1320// slidesPerColumn: 1, 1321// spaceBetween:10, 1322// }, 1323// }, 1324// onInit:function(swiper){ 1325// if($(window).width() >= 1024 && swiper.slides.length > 4){ 1326// swiper.prevButton.show(); 1327// swiper.nextButton.show(); 1328// } 1329// } 1330// }); 1331 1332// $('.idxproduct-item').each(function(i,e){ 1333// var _this = $(this); 1334// var patentSwiper = new Swiper(_this.find('.idxproduct-preview'), { 1335// paginationClickable: true, 1336// loop:false, 1337// simulateTouch: false, 1338// spaceBetween:10, 1339// prevButton: _this.find('.proPreview-swiper-prev'), 1340// nextButton: _this.find('.proPreview-swiper-next'), 1341// pagination:_this.find('.proPreview-pagination'), 1342// observer:true, 1343// observeParents:true, 1344// simulateTouch:false, 1345// autoplayDisableOnInteraction: false, 1346// }); 1347 1348// }); 1349 1350 1351 1352
1353// var idxadvantSwiper = new Swiper('.idxadvant-swiper', { 1354// paginationClickable: true, 1355// loop:false, 1356// simulateTouch: false, 1357// spaceBetween:30, 1358// prevButton: '.idxadvant-swiper-prev', 1359// nextButton: '.idxadvant-swiper-next', 1360// pagination: '.idxadvant-pagination', 1361// observer:true, 1362// observeParents:true, 1363// simulateTouch:false, 1364// slidesPerView: 5, 1365// autoplayDisableOnInteraction: false, 1366// breakpoints: { 1367// 1259: { 1368// spaceBetween:10, 1369// slidesPerView: 5, 1370// }, 1371// 1023: { 1372// slidesPerView: 3.5, 1373// spaceBetween:15, 1374// }, 1375// 768: { 1376// slidesPerView: 2.5, 1377// spaceBetween:15, 1378// }, 1379// 640: { 1380// slidesPerView: 1.2, 1381// spaceBetween:10, 1382// }, 1383// }, 1384// onInit:function(swiper){ 1385// if($(window).width() >= 1024 && swiper.slides.length > 5){ 1386// swiper.prevButton.show(); 1387// swiper.nextButton.show(); 1388// } 1389// } 1390// }); 1391 1392 1393// var idxnewsSwiper = new Swiper('.idxnews-swiper', { 1394// paginationClickable: true, 1395// loop:false, 1396// simulateTouch: false, 1397// spaceBetween:40, 1398// prevButton: '.idxnews-swiper-prev', 1399// nextButton: '.idxnews-swiper-next', 1400// pagination: '.idxnews-pagination', 1401// observer:true, 1402// observeParents:true, 1403// simulateTouch:false, 1404// slidesPerView: 3, 1405// autoplayDisableOnInteraction: false, 1406// breakpoints: { 1407// 1259: { 1408// spaceBetween:25, 1409// slidesPerView: 3, 1410// }, 1411// 1023: { 1412// slidesPerView: 2.5, 1413// spaceBetween:20, 1414// }, 1415// 768: { 1416// slidesPerView: 2, 1417// spaceBetween:20, 1418// }, 1419// 640: { 1420// slidesPerView: 1.2, 1421// spaceBetween:10, 1422// }, 1423// }, 1424// onInit:function(swiper){ 1425// if($(window).width() >= 1024 && swiper.slides.length > 3){ 1426// swiper.prevButton.show(); 1427// swiper.nextButton.show(); 1428// } 1429// } 1430// }); 1431 1432 1433// $('.idxfield-item').eq(0).show().siblings().hide(); 1434// var idxfieldSwiper = new Swiper('.idxfield-swiper', { 1435// paginationClickable: true, 1436// loop:false, 1437// simulateTouch: false, 1438// spaceBetween:10, 1439// prevButton: '.idxfield-swiper-prev', 1440// nextButton: '.idxfield-swiper-next', 1441// pagination: '.idxfield-pagination', 1442// observer:true, 1443// paginationType : 'custom', 1444// observeParents:true, 1445// simulateTouch:false, 1446// autoplayDisableOnInteraction: false, 1447// paginationCustomRender: function (swiper, current, total) { 1448// return '<span class="swiper-pagination-current">'+(current < 10 ? '0'+current : current)+'</span>' + 1449// ' / ' + 1450// '<span class="swiper-pagination-total">'+(total < 10 ? '0'+total : total)+'</span>'; 1451// }, 1452// onTransitionStart:function(swiper){ 1453// $('.idxfield-item').eq(swiper.activeIndex).fadeIn(100).siblings().hide(); 1454// } 1455// }); 1456 1457// $('.idxfield-item').each(function(i,e){ 1458// var _this = $(this); 1459// var idxfieldTabSwiper = new Swiper(_this.find('.idxfield-tabswiper'), { 1460// paginationClickable: true, 1461// loop:false, 1462// simulateTouch: false, 1463// spaceBetween:5,
1464// prevButton: _this.find('.tabswiper-swiper-prev'), 1465// nextButton: _this.find('.tabswiper-swiper-next'), 1466// pagination:_this.find('.tabswiper-pagination'), 1467// observer:true, 1468// observeParents:true, 1469// simulateTouch:false, 1470// autoplayDisableOnInteraction: false, 1471// }); 1472 1473// }); 1474 1475 1476 1477 1478 1479 1480// } 1481 1482 1483// /* æ°åæ»å¨ */ 1484 1485// function numscroll(_this) { 1486// var Current = _this.parents('.num-scroll').offset().top; 1487// var bolExec = _this.attr("bolexec"); 1488// var vnums = _this.data('nums'); 1489 1490// if(bolExec == 'true'){ 1491// bolExec = true; 1492// }else{ 1493// bolExec = false; 1494// } 1495// //console.log(tar); 1496 1497// if ($(window).scrollTop() > Current - $(window).height()/2 && bolExec) { 1498 1499// function Animate() { 1500// var counter = 0, 1501// val = _this.text() - 0, 1502// _time = 200, 1503// vLen = (val + "").length; 1504 1505// var timer = setInterval(function () { 1506// counter++; 1507// var step = parseInt(val / _time * counter); // key 1508// var text = ""; 1509// for (var j = 0; j < vLen - (step + "").length; j++) { // éå¶ç´ 0 1510// text += 0; 1511// } 1512// _this.text(text + step); // 1513// if (counter >= _time) { 1514// clearInterval(timer); 1515// _this.html(vnums); 1516// } 1517// }, 10); 1518// } 1519// Animate(); 1520// _this.attr("bolexec", "false"); 1521// } 1522// } 1523 1524 1525// function setNumScroll(){ 1526// $('.idxintro-numscroll ul li .num').each(function () { 1527// numscroll($(this)); 1528// }); 1529// } 1530// setNumScroll(); 1531// $(window).scroll(setNumScroll); 1532 1533 1534 1535 1536// /* ç¸åå¼¹çª s */ 1537 1538// var thumbCopySwiper ; 1539 1540// function getSlide($origin) { 1541// var $thumb = $origin.parent().find('img'); 1542// //var $thumbtext = $origin.find('.info'); 1543// var $thumbSwiper = $(".thumb-popupss .swiper-wrapper").html(''); 1544// var slide_length = $thumb.length; 1545// for(var i = 0; i < slide_length; i++) { 1546// var $item = $('<li class="swiper-slide"><img src="' + $thumb[i].src + '"></li>'); 1547// $thumbSwiper.append($item); 1548// } 1549// } 1550 1551// function imgpopSwiperInit(i) { 1552 1553// thumbCopySwiper = new Swiper(".thumb-copy-wrapper", { 1554// initialSlide: i, 1555// loop: false, 1556// prevButton: '.swiper-left', 1557// nextButton: '.swiper-right', 1558// paginationClickable: true 1559// }) 1560 1561// } 1562 1563// $(".thumb-popupss .close").click(function() { 1564 1565// $(".thumb-popupss").fadeOut(300); 1566// thumbCopySwiper.destroy(true,true); 1567// $(".thumb-copy-wrapper .swiper-wrapper").empty(); 1568 1569// }); 1570 1571// $('.honor-list ul').on("click", "li", function() { 1572 1573// $(".thumb-popupss").fadeIn(300); 1574// getSlide($(this)); 1575// imgpopSwiperInit($(this).index()); 1576// var $height = $(window).height(); 1577// $(".thumb-popupss ul li").css("height", $height); 1578 1579// }); 1580 1581 1582 1583 1584 1585// !(function () { 1586 1587// var var_scroll = 0; 1588// var isScroll = null; 1589 1590 1591// $('.aside-module .drawer-btn').on('click',function(){ 1592// $(this).toggleClass('on'); 1593// $('.aside-module .drawer-box').slideToggle(200); 1594// }); 1595 1596// $(window).scroll(function () { 1597 1598// var _this = $(this); 1599 1600// var var_scroll = $(this).scrollTop(); 1601// if (var_scroll >= 100) { 1602 1603// if (!$('header').parents('.index-header').length) { 1604// $('header').addClass('scroll'); 1605// } 1606 1607// // if( $('header').parents('.inside-header').length){ 1608// // $('.inside-header').addClass('scroll'); 1609// // } 1610 1611// } else { 1612// if (!$('header').parents('.index-header').length) { 1613// $('header').removeClass('scroll'); 1614// } 1615// // $('.inside-header').removeClass('scroll'); 1616// } 1617 1618// if ($(window).width() >= 1024) { 1619 1620 1621// if (var_scroll > 100) { 1622// $('.goto').css('display', 'block'); 1623// $('.goto').on('click', function () { 1624// $('html,body').stop().animate({ 'scrollTop': 0 }, 400, function () { 1625// var_scroll = 0; 1626// }); 1627// }); 1628// } else { 1629// $('.goto').css('display', 'none'); 1630// } 1631 1632// } else { 1633 1634// $('.goto').on('click', function () { 1635// $('html,body').stop().animate({ 'scrollTop': 0 }, 600, function () { 1636// var_scroll = 0; 1637// }); 1638// }); 1639 1640 1641// } 1642 1643 1644// }); 1645 1646 1647 1648// })(); 1649 1650 1651 1652// /* æ¯å¦æäºçº§xiala */ 1653 1654// $('nav ul .lv1').each(function () { 1655// if (!$(this).find('.lv2nav').length) { 1656// $(this).find('h4 .icon').hide(); 1657// } else { 1658// $(this).find('h4 .icon').show(); 1659// } 1660// }); 1661 1662// $('.ftlvnav .lv1').each(function () { 1663// if (!$(this).find('.ftsub').length) { 1664// $(this).find('h4 .icon').hide(); 1665// } else { 1666// $(this).find('h4 .icon').show(); 1667// } 1668// }); 1669 1670// // $('.lv2nav .lv2').each(function () { 1671// // if (!$(this).find('.lv3nav').length) { 1672// // $(this).find('h5 .icon').hide(); 1673// // $(this).addClass('center'); 1674// // } else { 1675// // $(this).find('h5 .icon').show(); 1676// // $(this).removeClass('center'); 1677// // } 1678// // }); 1679 1680// function judescreen() { 1681 1682// var winw = $(window).width(); 1683 1684 1685 1686// $(".indexbanner ul li").each(function () { 1687// var _this = $(this); 1688 1689// if ($(window).width() >= 1024) { 1690// var pcsrc = _this.find('.banner-img').data('pcsrc'); 1691// _this.find('.banner-img img').attr('src', pcsrc) 1692 1693// } else { 1694 1695// var mmsrc = _this.find('.banner-img').data('mmsrc'); 1696// _this.find('.banner-img img').attr('src', mmsrc); 1697 1698// } 1699 1700// }); 1701 1702 1703// if (winw >= 1024) { 1704// /* 导èªä¸æ */ 1705// $('.mobnav-btn').removeClass('open'); 1706// if ($('nav').attr('style') != '') { 1707// $('nav').removeAttr('style') 1708// } 1709 1710 1711 1712// /* 导èªä¸æ */ 1713// $('nav .lvnav .lv1').off().hover(function () { 1714// if ($(this).find('.hsubnav').length) { 1715// $(this).find('.hsubnav').stop().slideDown(300); 1716// } 1717// }, function () { 1718// if ($(this).find('.hsubnav').length) { 1719// $(this).find('.hsubnav').stop().slideUp(100); 1720// } 1721// }); 1722 1723// $('.index-search').off().on('click', '.search-icon', function () { 1724// $(this).next('.search-box').stop().slideToggle(200); 1725// }); 1726 1727// // $('.index-search').hover(function (e) { 1728// // $(this).find('.search-box').stop().slideDown(200); 1729// // }, function () { 1730// // $(this).find('.search-box').stop().slideUp(50); 1731// // }); 1732 1733// // $('.index-lang').hover(function (e) { 1734// // $(this).find('.lang-dropmenu').stop().slideDown(200); 1735// // }, function () { 1736// // $(this).find('.lang-dropmenu').stop().slideUp(50); 1737// // }); 1738 1739 1740// $('.inside-subitem').off(); 1741 1742 1743 1744 1745// } else { 1746 1747 1748 1749// /* 导èªä¸æ */ 1750 1751// $('.index-search ,.mobnav-btn,.index-lang').off('mouseleave mouseenter'); 1752 1753// $('.index-search').off().on('click', '.search-icon', function () { 1754// $(this).next('.search-box').stop().slideToggle(200); 1755 1756// if (!$('nav').is(':hidden')) { 1757// $('nav').stop().slideUp(200); 1758 1759// } 1760// if (!$('.lang-dropmenu').is(':hidden')) { 1761// $('.lang-dropmenu').slideUp(200); 1762// } 1763 1764// $('.mobnav-btn').removeClass('open'); 1765// $('header').removeClass('open'); 1766 1767// }); 1768 1769// $('.index-lang').on('click', '.lang-icon', function () { 1770// $(this).next('.lang-dropmenu').stop().slideToggle(200); 1771 1772// if (!$('nav').is(':hidden')) { 1773// $('nav').stop().slideUp(200); 1774 1775// } 1776// if (!$('.index-search .search-box').is(':hidden')) {
1777// $('.index-search .search-box').slideUp(200); 1778// } 1779 1780// $('.mobnav-btn').removeClass('open'); 1781// $('header').removeClass('open'); 1782 1783// }); 1784 1785// $('.mobnav-btn').off('click').on('click', function () { 1786// $('nav').stop().slideToggle(200); 1787// $(this).toggleClass('open'); 1788// $('header').toggleClass('open'); 1789 1790// if (!$('.index-search .search-box').is(':hidden')) { 1791// $('.index-search .search-box').slideUp(200); 1792// } 1793// if (!$('.lang-dropmenu').is(':hidden')) { 1794// $('.lang-dropmenu').slideUp(200); 1795// } 1796 1797// }); 1798 1799 1800 1801// /* 头é¨äºçº§å¯¼èªä¸æ */ 1802// $("nav .lvnav .lv1 h4").off('mouseleave mouseenter'); 1803// $("nav .lvnav .lv1 h4").off("click").on("click", function () { 1804// if ($(this).parents(".lv1").find(".hsubnav").is(":hidden")) { 1805// $(this).parents(".lv1").find(".hsubnav").slideDown().parents("li").siblings().find(".hsubnav").slideUp(); 1806// $(this).parents(".lv1").addClass("cur2").siblings().removeClass("cur2"); 1807 1808// } else { 1809// $(this).parents(".lv1").find(".hsubnav").slideUp(); 1810// $(this).parents(".lv1").removeClass("cur2"); 1811// } 1812// }); 1813 1814 1815 1816// /* å°¾é¨äºçº§å¯¼èªä¸æ */ 1817 1818// $(".footernav .ftlvnav .lv1").off('mouseleave mouseenter'); 1819// $(".footernav .ftlvnav .lv1 h4").off("click").on("click", function () { 1820// if ($(this).parents(".lv1").find(".ftsub").is(":hidden")) { 1821// $(this).parents(".lv1").find(".ftsub").slideDown().parents("li").siblings().find(".ftsub").slideUp(); 1822// $(this).parents(".lv1").addClass("cur").siblings().removeClass("cur"); 1823 1824// } else { 1825// $(this).parents(".lv1").find(".ftsub").slideUp(); 1826// $(this).parents(".lv1").removeClass("cur"); 1827// } 1828// }); 1829 1830 1831 1832// /* å 页äºçº§ s */ 1833 1834// $('.inside-subitem').off().on('click', '.channel-title', function () { 1835// $(this).parent().find('.second-level').fadeToggle(0); 1836// }); 1837// if (!$('.inside-subitem').find('.second-level').length) { 1838// $('.channel-title').addClass('none'); 1839// } 1840 1841 1842// } 1843 1844// } 1845 1846// judescreen(); 1847// $(window).resize(function () { 1848// judescreen(); 1849// }); 1850 1851 1852// }); 1853 1854 1855 1856 1857// function bannervideo($wrap, isloop) { 1858 1859// var player; 1860// var autoplay = true; 1861 1862// var $videoEles = $wrap.find('.bannervideo'); 1863// // var videoClass = $videoEle.attr('class'); 1864// var videoClass = ''; 1865// var isloopClass = ''; 1866// var bandleClass = ''; 1867 1868// if ($(window).width() < 1024) { 1869// // autoplay = true; 1870// return false; 1871// } 1872// $videoEles.each(function (i, e) { 1873// var _this = $(this); 1874 1875// videoClass = _this.attr('class').split(' ')[1] ? _this.attr('class').split(' ')[1] : _this.attr('class'); 1876// // console.log(videoClass); 1877// if (!videoClass) { 1878// return false; 1879// } 1880 1881// if (isloop) { 1882 1883// if (videoClass == isloopClass) { 1884// videoClass = isloopClass + Math.floor(Math.random() * (1 - 100) + 100); 1885// _this.addClass(videoClass); 1886// } 1887 1888// isloopClass = videoClass; 1889 1890// } 1891 1892// bandleClass = '.' + videoClass; 1893// videoClass = null; 1894 1895// console.log(isloopClass); 1896 1897// var videoObject = { 1898// container: bandleClass, 1899// variable: 'player', 1900// autoplay: autoplay, 1901// debug: true, 1902// drag: 'start', 1903// seek: 0, 1904// mobileCkControls: false, 1905// playbackrate: -1, 1906// mobileCkControls: false, 1907// loop: true, 1908// volume: 0, 1909// //poster 1910// }; 1911 1912 1913 1914// var vallink; 1915 1916// vallink = _this.data('vlink'); 1917 1918// videoObject.video = vallink; 1919// // videoObject.autoplay = true; 1920// player = new ckplayer(videoObject); 1921 1922// videoObject = null; 1923 1924// }); 1925 1926// } 1927 1928 1929 1930 1931// function swiper_slides(i){ 1932// var k = null; 1933// var j = i <= 4 ? k = i : i; 1934// // console.log(i); 1935// if($(window).width() < 1024){ 1936// // console.log(j); 1937// // if(j > i){ 1938// // return false; 1939// // } 1940// return false; 1941// } 1942// var secondSwiper = new Swiper('.second-level', { 1943// loop: false, 1944// slidesPerView: i, 1945// paginationClickable: true, 1946// preventClicks: false, 1947// autoplayDisableOnInteraction: true, 1948// simulateTouch:false, 1949// nextButton: '.level-swiper-next', 1950// prevButton: '.level-swiper-prev', 1951// breakpoints: { 1952// 1259: { 1953// slidesPerView: k || 4, 1954// }, 1955// }, 1956// onInit:function(swiper){ 1957 1958// if($(window).width() >= 1024){ 1959// if(swiper.slides.length > k){ 1960// swiper.prevButton.show(); 1961// swiper.nextButton.show(); 1962// } 1963// } 1964 1965// if($(window).width() >= 1260){ 1966// if(swiper.slides.length > i){ 1967// swiper.prevButton.show(); 1968// swiper.nextButton.show(); 1969// }else{ 1970// swiper.prevButton.hide(); 1971// swiper.nextButton.hide(); 1972// } 1973// } 1974 1975// } 1976// }); 1977 1978 1979// if($('.second-level').length > 0){ 1980// secondSwiper.slideTo($('.second-level ul li.cur').index(),0,null); 1981// } 1982 1983// } 1984
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.