1var clientCaseHeight=document.getElementById("clientCase").clientHeight,clientcaseExampleHeight=document.getElementsByClassName("clientcase-example")[0].clientHeight,clientCaseTop=clientCaseHeight-clientcaseExampleHeight+"px",maxCaseHeight=clientCaseHeight-260;function ClientCase(){this.init()}$(function(){new ClientCase}),ClientCase.prototype={initSwiper:function(){new Swiper(".swiper-container",{effect:"fade",loop:!0,autoplay:3e3,speed:500,pagination:".swiper-pagination",paginationClickable:!0})},initSwipercase:function(){new Swiper(".swiper-container1",{loop:!0,slidesPerView:4,spaceBetween:22,keyboardControl:!0,grabCursor:!0,autoplay:3e3,nextButton:".swiper-button-next",prevButton:".swiper-button-prev"})},lazyLoad:function(){lazyLoadInit({coverColor:"white",coverDiv:"xiaoetong",offsetBottom:0,offsetTopm:0,showTime:100})},tabChange:function(){$(".clientcase-tab-item").on("click",function(){var e=$(this).data("case_type");0==e?($(".caseItem").show(),clientCaseHeight=document.getElementById("clientCase").clientHeight,clientCaseTop=clientCaseHeight-1e3+"px",maxCaseHeight=clientCaseHeight-100,this.showMoreCase(e),$(".clientcase-tab-item").removeClass("active"),$(this).addClass("active")):"medicine"==e?window.open("/medicinePage"):($(".caseItem"+e).siblings(".caseItem").hide().siblings(".caseItem"+e).show(),clientCaseHeight=document.getElementById("clientCase").clientHeight,clientCaseTop=clientCaseHeight-1e3+"px",maxCaseHeight=clientCaseHeight-100,$(".clientcase-tab-item").removeClass("active"),$(this).addClass("active"))})},showMoreCase:function(e){$(".showMoreCase").on("click",function(e){console.log(e,"ssss");e=$(this);e.hasClass("active")?(e.children("span").text("å±å¼æ´å¤"),e.removeClass("active"),$(".clientcase-content .caseItem:gt(19)").addClass("hide")):(e.children("span").text("æ¶èµ·æ´å¤"),e.addClass("active"),$(".clientcase-content .caseItem:gt(19)").removeClass("hide"))})},openYsf:function(){var e=document.title,t=(ysf.config({success:function(){document.title=e}}),document.getElementById("qiyuEntry"));t&&t.addEventListener("click",function(){ysf.open()})},scrollCase:function(){var n=$(".clientcase-example");window.addEventListener("scroll",function(e){var t=document.documentElement.scrollTop||window.pageYOffset||document.body.scrollTop,i=0<(i=.5*((document.documentElement.clientWidth||document.body.clientWidth)-1200))?i:0;570<maxCaseHeight&&(570<t&&t<maxCaseHeight?(n.css("right",i),n.css("margin-top","40px"),n.addClass("example-fixed")):maxCaseHeight<=t?(console.log("åºé¨äº"),n.removeClass("example-fixed"),n.css("margin-top",clientCaseTop)):(n.removeClass("example-fixed"),n.css("margin-top","0")))})},handleCases:function(){$(document).ready(function(){$(".caseItem").hover(function(){$(this).find(".caseQrcode").fadeIn("fast")},function(){$(this).find(".caseQrcode").fadeOut("fast")})})},clickCase(){$(".example-item-title").each(function(){$(this)[0].addEventListener("click",e=>{$.ajax({url:"/xe.website_case.click/1.0.0",data:{id:e.currentTarget.getAttribute("data-id")},type:"post",success:function(e){console.log("å³ä¾§ç²¾éæ¡ä¾åæé¡¹æ é¢é
读æ°éå¢å ")}})})})},handleReadNum(){$(".read-num").each(function(){var e=Number($(this)[0].innerText.split("é
读")[0]);1e4<=e&&($(this)[0].innerText=(e/1e4).toFixed(0)+"w+é
读")})},initFloatQrCode:function(){$(".floating-qr-code").data("show",1)},initFloatQrCodeClose:function(){$(".floating-qr-code .close").click(function(){$(".floating-qr-code").data("show",0),$(".floating-qr-code").hide()})},initLiveCodePopup:function(){$(".advisory-btn").click(function(){$(".floating-qr-code").hide(),$(".advisory-btn .card").show()})},initLiveCodeClose:function(){$(".card .close").click(function(e){e.stopPropagation(),1===$(".floating-qr-code").data("show")&&$(".floating-qr-code").show(),$(".card").hide()})},init:function(){this.initSwiper(),this.initSwipercase(),this.lazyLoad(),this.tabChange(),this.openYsf(),this.scrollCase(),this.handleCases(),this.clickCase(),this.handleReadNum(),this.initFloatQrCode(),this.initFloatQrCodeClose(),this.initLiveCodePopup(),this.initLiveCodeClose()}};
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.