PageSourceSearch

https://www.thebestlottery.com/statics/zhsite/js/common.js

js thebestlottery.com collected 2026-10-06 13:10:35 UTC 55,115 bytes, 1,680 lines download raw bytes

1(function () {
2    function initializeRootFontSize() {
3        var width = document.documentElement.clientWidth || window.innerWidth || 1920;
4        var mobile = /Android|iPhone|Symbian|Windows Phone/i.test(navigator.userAgent);
5        document.documentElement.style.fontSize = Math.ceil(width / (mobile ? 750 : 1920) * 100) + 'px';
6    }
7    initializeRootFontSize();
8    window.addEventListener('resize', initializeRootFontSize);
9})();
10
11var windowWidth,windowHeight;
12var ismobistaute = false;
13var isFirst = true; 
14
15/* (function (doc, win) {
16	var docEl = doc.documentElement,
17		resizeEvt = 'orientationchange' in window ? 'orientationchange' : 'resize',
18			recalc = function () {
19				var clientWidth = docEl.clientWidth;
20					if (!clientWidth) return;
21					if (clientWidth >= 750) {
22						docEl.style.fontSize = '100px';
23					} else {
24						docEl.style.fontSize = 100 * (clientWidth / 750) + 'px';
25					}
26			};
27	if (!doc.addEventListener) return;
28	win.addEventListener(resizeEvt, recalc, false);
29	doc.addEventListener('DOMContentLoaded', recalc, false);
30})(document, window); */
31
32
33function htmlSize() {
34	var htnl_o = document.getElementsByTagName("html")[0];
35	var fts = 100;
36	const htmlWidth = document.body && document.body.offsetWidth;
37
38	var htmlsize = 1920;
39	if (navigator.userAgent.match(/Android/i) || navigator.userAgent.match(/iPhone/i) || navigator.userAgent.match(/Symbian/i) || navigator.userAgent.match(/Windows Phone/i)) {
40		htmlsize = 750;
41	}
42
43	let fs = Math.ceil(htmlWidth ? (htmlWidth / htmlsize * fts) : fts);
44
45	htnl_o.style.fontSize = fs + "px";
46
47}
48
49$(function(){
50	
51	htmlSize();
52	window.onresize = function () {
53	  htmlSize();
54	}
55	
56	getWindowSize();
57	
58	//瑙嗛寮规
59	Videoplay();
60	
61	$(window).on('resize', function() {
62		getWindowSize();
63		
64	});
65	
66	$(".side-suspension li.consulting").click(function(){
67		if($(this).hasClass("active")){
68			$(this).removeClass("active");
69			$(this).find(".hidden-box").fadeOut(300);
70		}else{
71			$(this).addClass("active");
72			$(this).find(".hidden-box").fadeIn(300);
73		}
74	})
75	
76	if($(".banner-label .timer").length > 0){
77		//console.log(1)
78		if(isFirst){
79			$('.banner-label .timer').each(count);
80			isFirst = false;
81		}
82	}
83	
84	$(".js-m").bind("inview", function (event, visible, topOrBottomOrBoth) {
85		if (visible == true) { // 鍏冪礌鍦ㄧ獥鍙d腑鍙
86			$(this).addClass("animate");
87			if($(this).find(".timer").length > 0){
88				//console.log(1)
89				//if(isFirst){
90					$('.timer').each(count);
91					//isFirst = false;
92				//}
93			}
94		}else{
95			//$(this).removeClass("animate");
96		}
97		
98	});
99	
100	var _headerHeight = $(".header-main").height();
101	if ($(window).scrollTop() > _headerHeight) {
102		$(".header-main").addClass('header-main-active');
103	} else {
104		$(".header-main").removeClass('header-main-active');
105	}
106	$(window).bind('scroll', function () {
107		var _headerHeight = $(".header-main").height();
108		if ($(window).scrollTop() > _headerHeight) {
109			$(".header-main").addClass('header-main-active');
110		} else {
111			$(".header-main").removeClass('header-main-active');
112		}
113	})
114	
115	$(".header-main .icon-menu").click(function(){
116		if($(this).hasClass("active")){
117			$(this).removeClass("active");
118			$("body").removeClass("body-hidden");
119			$(".header-main").removeClass("active");
120			$(".menu-layer").fadeOut(300);
121		}else{
122			$(this).addClass("active");
123			$("body").addClass("body-hidden");
124			$(".header-main").addClass("active");
125			$(".menu-layer").fadeIn(300);
126		}
127	})
128	
129	$(".menu-layer .menu-nav li.hover").click(function(){
130		$(this).siblings("li").removeClass("active");
131		$(this).addClass("active");
132		var _hoverMenu = $(this).attr("data-menu");
133		//console.log(_hoverMenu)
134		$(".menu-nav-side").each(function(){
135			var _this = $(this);
136			console.log(_hoverMenu)
137			if(_this.attr("data-menu") == _hoverMenu){
138				_this.siblings(".menu-nav-side").hide();
139				_this.show();
140				_this.siblings(".menu-nav-side").find(".side-item .side-title.title-hover").removeClass("active");
141				_this.siblings(".menu-nav-side").find(".side-item .side-cont").hide();
142			}
143		})
144	})
145	
146	$(".menu-nav-side .side-item .side-title.title-hover").click(function(){
147		if($(this).hasClass("active")){
148			$(this).removeClass("active");
149			$(this).parents(".side-item").find(".side-cont").hide();
150		}else{
151			$(this).parents(".side-item").siblings().find(".title-hover").removeClass("active");
152			$(this).addClass("active");
153			$(this).parents(".side-item").siblings().find(".side-cont").hide();
154			$(this).parents(".side-item").find(".side-cont").show();
155		}
156		$(".menu-layer .menu-subnav-right").animate({scrollTop:0},100);
157	})
158	
159	var _currentPageMenu = $(".menu-layer .menu-nav li.hover.active").attr("data-menu");
160	$(".menu-nav-side").each(function(){
161		var _this = $(this);
162		//console.log(_currentPageMenu)
163		if(_this.attr("data-menu") == _currentPageMenu){
164			_this.siblings(".menu-nav-side").hide();
165			_this.show();
166		}
167	})
168	
169	
170	
171	$(".header-main .nav li.hover").mouseenter(function(){
172		var _hoverMenu = $(this).attr("data-menu");
173		$(".header-nav-hidden-box").show();
174		
175		$(".one-nav-side").each(function(){
176			var _this = $(this);
177			//console.log(_hoverMenu)
178			if(_this.attr("data-menu") == _hoverMenu){
179				_this.siblings(".one-nav-side").hide();
180				_this.show();
181				_this.find(".subnav-left-box li").removeClass("active");
182				_this.find(".subnav-right-box .two-nav-side-box").hide();
183				_this.find(".subnav-left-box li").eq(0).addClass("active");
184				_this.find(".subnav-right-box .two-nav-side-box").eq(0).show();
185			}
186		})
187	})
188	
189	$(".header-nav-hidden-box").hover(function(){
190		$(this).show();
191	},function(){
192		$(this).hide();
193	})
194	$(".header-main .nav li.hover").mouseleave(function(){
195		$(".header-nav-hidden-box").hide();
196	})
197	
198	$(".header-nav-hidden-box .subnav-left-box li").mouseenter(function(){
199		var _index = $(this).index();
200		$(this).addClass("active").siblings().removeClass("active");
201		$(this).parents(".one-nav-side").find(".subnav-right-box .two-nav-side-box").eq(_index).show().siblings().hide();
202	})
203	
204	$(".header-nav-hidden-box .one-nav-side").mouseenter(function(){
205		var _hoverMenu = $(this).attr("data-menu");
206		$(".header-main .nav li").each(function(){
207			var _this = $(this);
208			//console.log(_hoverMenu)
209			if(_this.attr("data-menu") == _hoverMenu){
210				_this.addClass("temporary-active")
211			}
212		})
213	})
214	$(".header-nav-hidden-box .one-nav-side").mouseleave(function(){
215		var _hoverMenu = $(this).attr("data-menu");
216		$(".header-main .nav li").each(function(){
217			var _this = $(this);
218			//console.log(_hoverMenu)
219			if(_this.attr("data-menu") == _hoverMenu){
220				_this.removeClass("temporary-active")
221			}
222		})
223	})
224	
225	$(".header-nav-hidden-box .one-nav-side .subnav-right-box .two-nav-side li .three-nav-side-ul .ul-title span").click(function(){
226		if($(this).hasClass("active")){
227			$(this).removeClass("active");
228			$(this).parents(".three-nav-side-ul").find("dl").hide();
229		}else{
230			$(this).addClass("active");
231			$(this).parents(".three-nav-side-ul").find("dl").show();
232		}
233	})
234	
235	
236	var _homeBannerTotal = $(".home-banner .swiper-slide").length;
237	if(_homeBannerTotal > 1){
238		var homeBannerSwiper = new Swiper(".home-banner .swiper-container", {
239			autoplay: {
240				delay: 5000,  
241				disableOnInteraction: false,
242			},
243			loop: true,
244			pagination: {
245				el: ".home-banner .swiper-pagination",
246				clickable: true,
247			},
248			on:{
249				init: function(){
250					swiperAnimateCache(this); //闅愯棌鍔ㄧ敾鍏冪礌 
251					swiperAnimate(this); //鍒濆鍖栧畬鎴愬紑濮嬪姩鐢?
252					}, 
253				slideChangeTransitionEnd: function(){ 
254					swiperAnimate(this); //姣忎釜slide鍒囨崲缁撴潫鏃朵篃杩愯褰撳墠slide鍔ㄧ敾
255					//this.slides.eq(this.activeIndex).find('.ani').removeClass('ani'); 鍔ㄧ敾鍙睍鐜颁竴娆★紝鍘婚櫎ani绫诲悕
256				} 
257			}
258		});
259		
260		homeBannerSwiper.el.onmouseover = function(){
261		  homeBannerSwiper.autoplay.stop();
262		}
263		homeBannerSwiper.el.onmouseout = function(){
264		  homeBannerSwiper.autoplay.start();
265		}
266	}
267	
268	
269	
270	
271	
272	
273	
274	var kuntaiSwiper = new Swiper('.kuntai-swiper .swiper-container', {
275		autoplay: {
276			delay: 2000,  
277			disableOnInteraction: false,
278		},
279		loop: true,
280		/* loopedSlides: 8,
281		loopAdditionalSlides: 3, */
282		//direction: 'rtl', // 璁剧疆涓轰粠鍙冲悜宸?		//initialSlide: 3,
283		slidesPerView: "auto",
284		//speed:1000,
285		centeredSlides: true,
286		roundLengths : true,
287		updateOnWindowResize: true,
288		//noSwiping: true,
289		navigation: {
290			nextEl: ".kuntai-swiper-container .swiper-arrow-next",
291			prevEl: ".kuntai-swiper-container .swiper-arrow-prev",
292		},
293		pagination: {
294			el: ".kuntai-swiper-container .swiper-pagination",
295			type: 'fraction',
296		},
297		on:{
298			init: function(swiper){
299				$(".kuntai-swiper-cont .box").hide();
300				$(".kuntai-swiper-cont .box").eq(0).show();
301			},
302			slideChange: function(){
303				$(".kuntai-swiper-cont .box").hide();
304				$(".kuntai-swiper-cont .box").eq(this.realIndex).show();
305			},
306		},
307	})
308	
309	$(".kuntai-swiper-container").hover(function(){
310		kuntaiSwiper.autoplay.stop();
311	},function(){
312		kuntaiSwiper.autoplay.start();
313	})
314	
315	
316	if($(".sub-tabs-container-kuntai").length > 0){
317	    var _subTabsContainerTop = $(".sub-tabs-container-kuntai").offset().top - $(".sub-tabs-container-kuntai").height() / 3;
318	    var _subTabsContainerHeight = $(".sub-tabs-container-kuntai").height();
319	    $(window).scroll(function() {
320	        var windowScrollTop = $(window).scrollTop();  
321	        var headerHeight = $(".header-main").height();
322	        if(windowScrollTop >= _subTabsContainerTop - headerHeight){
323	            //console.log(0)
324	            $(".sub-tabs-container-kuntai").addClass("fixed");
325	            $(".sub-tabs-container-height").show();
326	        }else{
327	            //console.log(1)
328	            $(".sub-tabs-container-kuntai").removeClass("fixed");
329	            $(".sub-tabs-container-height").hide();
330	        }
331	        
332	        // 鑾峰彇鎵€鏈夌殑click-scroll鍏冪礌锛屽苟鎸夌収tabli鍚庨潰鐨勬暟瀛楁帓搴?
333	        var scrollElements = $(".click-scroll").filter(function() {
334	            var dataScroll = $(this).attr("data-scroll");
335	            return dataScroll && dataScroll.match(/^tabli\d+$/);
336	        }).sort(function(a, b) {
337	            var numA = parseInt($(a).attr("data-scroll").replace("tabli", ""));
338	            var numB = parseInt($(b).attr("data-scroll").replace("tabli", ""));
339	            return numA - numB;
340	        });
341	        
342	        // 濡傛灉鏈塻croll鍏冪礌锛屽鐞嗘粴鍔ㄩ€昏緫
343	        if (scrollElements.length > 0) {
344	            // 娓呴櫎鎵€鏈塧ctive鐘舵€?
345	            $(".sub-tabs-container-kuntai li .block-box").removeClass("active");
346	            
347	            // 鎵惧埌褰撳墠搴旇婵€娲荤殑tab
348	            var activeIndex = -1;
349	            var lastPosition = -Infinity;
350	            
351	            scrollElements.each(function(index) {
352	                var element = $(this);
353	                var position = element.offset().top - _subTabsContainerHeight - 10;
354	                
355	                if (windowScrollTop >= position && position > lastPosition) {
356	                    activeIndex = index;
357	                    lastPosition = position;
358	                }
359	            });
360	            
361	            // 濡傛灉鎵惧埌浜嗗搴旂殑鍏冪礌锛岃缃產ctive鐘舵€?
362	            if (activeIndex !== -1) {
363	                $(".sub-tabs-container-kuntai li").eq(activeIndex).find(".block-box").addClass("active");
364	            }
365	        }
366	        
367	    })
368	    
369	    $(".sub-tabs-container-kuntai li .block-box").click(function(){
370	        var _click = $(this).attr("data-click");
371	        $(".click-scroll").each(function(){
372	            var _this = $(this);
373	            if(_this.attr("data-scroll") == _click){
374	                var _clickScrollTop = _this.offset().top;
375	                $('body,html').animate({scrollTop:_clickScrollTop - _subTabsContainerHeight},100);
376	            }
377	        })
378	    })
379	}
380	
381	if($(".sub-tabs-container-ai").length > 0){
382	    var _subTabsContainerTop = $(".sub-tabs-container-ai").offset().top - $(".sub-tabs-container-ai").height() / 3;
383	    var _subTabsContainerHeight = $(".sub-tabs-container-ai").height();
384	    $(window).scroll(function() {
385	        var windowScrollTop = $(window).scrollTop();  
386	        var headerHeight = $(".header-main").height();
387	        if(windowScrollTop >= _subTabsContainerTop - headerHeight){
388	            //console.log(0)
389	            $(".sub-tabs-container-ai").addClass("fixed");
390	            $(".sub-tabs-container-height").show();
391	        }else{
392	            //console.log(1)
393	            $(".sub-tabs-container-ai").removeClass("fixed");
394	            $(".sub-tabs-container-height").hide();
395	        }
396	        
397	        // 鑾峰彇鎵€鏈夌殑click-scroll鍏冪礌锛屽苟鎸夌収tabli鍚庨潰鐨勬暟瀛楁帓搴?
398	        var scrollElements = $(".click-scroll").filter(function() {
399	            var dataScroll = $(this).attr("data-scroll");
400	            return dataScroll && dataScroll.match(/^tabli\d+$/);
401	        }).sort(function(a, b) {
402	            var numA = parseInt($(a).attr("data-scroll").replace("tabli", ""));
403	            var numB = parseInt($(b).attr("data-scroll").replace("tabli", ""));
404	            return numA - numB;
405	        });
406	        
407	        // 濡傛灉鏈塻croll鍏冪礌锛屽鐞嗘粴鍔ㄩ€昏緫
408	        if (scrollElements.length > 0) {
409	            // 娓呴櫎鎵€鏈塧ctive鐘舵€?
410	            $(".sub-tabs-container-ai li .block-box").removeClass("active");
411	            
412	            // 鎵惧埌褰撳墠搴旇婵€娲荤殑tab
413	            var activeIndex = -1;
414	            var lastPosition = -Infinity;
415	            
416	            scrollElements.each(function(index) {
417	                var element = $(this);
418	                var position = element.offset().top - _subTabsContainerHeight - 10;
419	                
420	                if (windowScrollTop >= position && position > lastPosition) {
421	                    activeIndex = index;
422	                    lastPosition = position;
423	                }
424	            });
425	            
426	            // 濡傛灉鎵惧埌浜嗗搴旂殑鍏冪礌锛岃缃產ctive鐘舵€?
427	            if (activeIndex !== -1) {
428	                $(".sub-tabs-container-ai li").eq(activeIndex).find(".block-box").addClass("active");
429	            }
430	        }
431	        
432	    })
433	    
434	    $(".sub-tabs-container-ai li .block-box").click(function(){
435	        var _click = $(this).attr("data-click");
436	        $(".click-scroll").each(function(){
437	            var _this = $(this);
438	            if(_this.attr("data-scroll") == _click){
439	                var _clickScrollTop = _this.offset().top;
440	                $('body,html').animate({scrollTop:_clickScrollTop - _subTabsContainerHeight},100);
441	            }
442	        })
443	    })
444	}
445	
446	/* if($(".kuntai-product-mainimg-container").length > 0){
447		var _kuntaiProductMainimgTop = $(".kuntai-product-mainimg-container").offset().top;
448		var _kuntaiProductMainimgHeight = $(".kuntai-product-mainimg-container").height();
449		$(window).scroll(function() {
450		    _kuntaiProductMainimgTop = $(".kuntai-product-mainimg-container").offset().top;
451			_kuntaiProductMainimgHeight = $(".kuntai-product-mainimg-container").height();
452		    var windowScrollTop = $(window).scrollTop();  
453		    var scaleValue;  
454		  
455		    // 璁$畻ys1鐨剆cale鍊? 
456		    // 鍋囪鎴戜滑甯屾湜鍦ㄦ粴鍔ㄦ潯鍒拌揪div1椤堕儴鍓?00px鍒癲iv1搴曢儴鍚?00
456px鐨勮寖鍥村唴璋冩暣scale  
457		    if (windowScrollTop > _kuntaiProductMainimgTop - _kuntaiProductMainimgHeight - windowHeight && windowScrollTop < _kuntaiProductMainimgTop + _kuntaiProductMainimgHeight + windowHeight) {  
458		        // 璁$畻scale鍊间粠1鍒?.4鐨勬笎鍙? 
459		        var progress = (windowScrollTop - (_kuntaiProductMainimgTop - windowHeight)) / (_kuntaiProductMainimgHeight); // 400鏄窛绂昏寖鍥达紙200px涓?+ 200px涓嬶級  
460		        scaleValue = 1 - progress * 0.5; // 浠?閫掑噺鍒?.4  
461		        scaleValue = Math.max(scaleValue, 0.5); // 纭繚scale鍊间笉浼氬皬浜?.4  
462		    } else {  
463		        //scaleValue = 1; // 濡傛灉涓嶅湪鎸囧畾鑼冨洿鍐咃紝鍒檚cale鍊间负1  
464		    }  
465		  
466		    $('.kuntai-product-mainimg-container .title').css('transform', 'scale(' + scaleValue + ')');  
467		});
468	}
469	
470	if($(".ai-product-mainimg-container1").length > 0){
471		var _aiProductMainimgTop1 = $(".ai-product-mainimg-container1").offset().top;
472		var _aiProductMainimgHeight1 = $(".ai-product-mainimg-container1").height();
473		$(window).scroll(function() {
474		    _aiProductMainimgTop1 = $(".ai-product-mainimg-container1").offset().top;
475			_aiProductMainimgHeight1 = $(".ai-product-mainimg-container1").height();
476		    var windowScrollTop = $(window).scrollTop();  
477		    var scaleValue;  
478		  
479		    // 璁$畻ys1鐨剆cale鍊? 
480		    // 鍋囪鎴戜滑甯屾湜鍦ㄦ粴鍔ㄦ潯鍒拌揪div1椤堕儴鍓?00px鍒癲iv1搴曢儴鍚?00px鐨勮寖鍥村唴璋冩暣scale  
481		    if (windowScrollTop > _aiProductMainimgTop1 - _aiProductMainimgHeight1 - windowHeight && windowScrollTop < _aiProductMainimgTop1 + _aiProductMainimgHeight1 + windowHeight) {  
482		        // 璁$畻scale鍊间粠1鍒?.4鐨勬笎鍙? 
483		        var progress = (windowScrollTop - (_aiProductMainimgTop1 - windowHeight)) / (_aiProductMainimgHeight1); // 400鏄窛绂昏寖鍥达紙200px涓?+ 200px涓嬶級  
484		        scaleValue = 1 - progress * 0.5; // 浠?閫掑噺鍒?.4  
485		        scaleValue = Math.max(scaleValue, 0.5); // 纭繚scale鍊间笉浼氬皬浜?.4  
486		    } else {  
487		        //scaleValue = 1; // 濡傛灉涓嶅湪鎸囧畾鑼冨洿鍐咃紝鍒檚cale鍊间负1  
488		    }  
489		  
490		    $('.ai-product-mainimg-container1 .title').css('transform', 'scale(' + scaleValue + ')');  
491		});
492	}
493	
494	if($(".ai-product-mainimg-container2").length > 0){
495		var _aiProductMainimgTop2 = $(".ai-product-mainimg-container2").offset().top;
496		var _aiProductMainimgHeight2 = $(".ai-product-mainimg-container2").height();
497		$(window).scroll(function() {
498		    _aiProductMainimgTop2 = $(".ai-product-mainimg-container2").offset().top;
499			_aiProductMainimgHeight2 = $(".ai-product-mainimg-container2").height();
500		    var windowScrollTop = $(window).scrollTop();  
501		    var scaleValue;  
502		  
503		    // 璁$畻ys1鐨剆cale鍊? 
504		    // 鍋囪鎴戜滑甯屾湜鍦ㄦ粴鍔ㄦ潯鍒拌揪div1椤堕儴鍓?00px鍒癲iv1搴曢儴鍚?00px鐨勮寖鍥村唴璋冩暣scale  
505		    if (windowScrollTop > _aiProductMainimgTop2 - _aiProductMainimgHeight2 - windowHeight && windowScrollTop < _aiProductMainimgTop2 + _aiProductMainimgHeight2 + windowHeight) {  
506		        // 璁$畻scale鍊间粠1鍒?.4鐨勬笎鍙? 
507		        var progress = (windowScrollTop - (_aiProductMainimgTop2 - windowHeight)) / (_aiProductMainimgHeight2); // 400鏄窛绂昏寖鍥达紙200px涓?+ 200px涓嬶級  
508		        scaleValue = 1 - progress * 0.5; // 浠?閫掑噺鍒?.4  
509		        scaleValue = Math.max(scaleValue, 0.5); // 纭繚scale鍊间笉浼氬皬浜?.4  
510		    } else {  
511		        //scaleValue = 1; // 濡傛灉涓嶅湪鎸囧畾鑼冨洿鍐咃紝鍒檚cale鍊间负1  
512		    }  
513		  
514		    $('.ai-product-mainimg-container2 .title').css('transform', 'scale(' + scaleValue + ')');  
515		});
516	}
517	
518	if($(".ai-product-mainimg-container3").length > 0){
519		var _aiProductMainimgTop3 = $(".ai-product-mainimg-container3").offset().top;
520		var _aiProductMainimgHeight3 = $(".ai-product-mainimg-container3").height();
521		$(window).scroll(function() {
522		    _aiProductMainimgTop3 = $(".ai-product-mainimg-container3").offset().top;
523			_aiProductMainimgHeight3 = $(".ai-product-mainimg-container3").height();
524		    var windowScrollTop = $(window).scrollTop();  
525		    var scaleValue;  
526		  
527		    // 璁$畻ys1鐨剆cale鍊? 
528		    // 鍋囪鎴戜滑甯屾湜鍦ㄦ粴鍔ㄦ潯鍒拌揪div1椤堕儴鍓?00px鍒癲iv1搴曢儴鍚?00
528px鐨勮寖鍥村唴璋冩暣scale  
529		    if (windowScrollTop > _aiProductMainimgTop3 - _aiProductMainimgHeight3 - windowHeight && windowScrollTop < _aiProductMainimgTop3 + _aiProductMainimgHeight3 + windowHeight) {  
530		        // 璁$畻scale鍊间粠1鍒?.4鐨勬笎鍙? 
531		        var progress = (windowScrollTop - (_aiProductMainimgTop3 - windowHeight)) / (_aiProductMainimgHeight3); // 400鏄窛绂昏寖鍥达紙200px涓?+ 200px涓嬶級  
532		        scaleValue = 1 - progress * 0.5; // 浠?閫掑噺鍒?.4  
533		        scaleValue = Math.max(scaleValue, 0.5); // 纭繚scale鍊间笉浼氬皬浜?.4  
534		    } else {  
535		        //scaleValue = 1; // 濡傛灉涓嶅湪鎸囧畾鑼冨洿鍐咃紝鍒檚cale鍊间负1  
536		    }  
537		  
538		    $('.ai-product-mainimg-container3 .title').css('transform', 'scale(' + scaleValue + ')');  
539		});
540	} */
541	
542	if($(".product-advantages-section").length > 0){
543		var _productAdvantagesSectionTop = $(".product-advantages-section").offset().top;
544		var _productAdvantagesSectionHeight = $(".product-advantages-section").height() / 5;
545		var _pageTotal = $(".product-advantages-sticky .cont-inner .box").length;
546		//console.log(_pageTotal)
547		$(".product-advantages-page .total").text(_pageTotal);
548		
549		productAdvantages();
550		
551		$(window).scroll(function() {
552		     productAdvantages();
553		});
554		
555	}
556	
557	if($(".applicable-scenarios-section1 .applicable-scenarios-tabs").length > 0){
558		var applicableScenariosTabsSwiper1 = new Swiper(".applicable-scenarios-section1 .applicable-scenarios-tabs .swiper-container", {
559			//loop: true,
560			//spaceBetween: 10,
561			slidesPerView: 4,
562			freeMode: true,
563			watchSlidesProgress: true,
564			navigation: {
565				nextEl: ".applicable-scenarios-section1 .applicable-scenarios-tabs .swiper-arrow-next",
566				prevEl: ".applicable-scenarios-section1 .applicable-scenarios-tabs .swiper-arrow-prev",
567			},
568		});
569		
570		var applicableScenariosSwiper1 = new Swiper('.applicable-scenarios-section1 .applicable-scenarios-swiper .swiper-container', {
571			autoplay: {
572				delay: 2000,  
573				disableOnInteraction: false,
574			},
575			loop: true,
576			slidesPerView: "auto",
577			//speed:1000,
578			centeredSlides: true,
579			speed: 600,
580			//roundLengths : true,
581			//updateOnWindowResize: true,
582			navigation: {
583				nextEl: ".applicable-scenarios-section1 .applicable-scenarios-swiper-container .swiper-arrow-next",
584				prevEl: ".applicable-scenarios-section1 .applicable-scenarios-swiper-container .swiper-arrow-prev",
585			},
586			pagination: {
587				el: ".applicable-scenarios-section1 .applicable-scenarios-swiper-container .swiper-pagination",
588				type: 'fraction',
589			},
590			on:{
591				init: function(swiper){
592					$(".applicable-scenarios-section1 .applicable-scenarios-swiper-cont .box").hide();
593					$(".applicable-scenarios-section1 .applicable-scenarios-swiper-cont .box").eq(0).show();
594					$(".applicable-scenarios-section1 .applicable-scenarios-tabs li").removeClass("active");
595					$(".applicable-scenarios-section1 .applicable-scenarios-tabs li").eq(0).addClass("active");
596					
597				},
598				slideChange: function(){
599					$(".applicable-scenarios-section1 .applicable-scenarios-swiper-cont .box").hide();
600					$(".applicable-scenarios-section1 .applicable-scenarios-swiper-cont .box").eq(this.realIndex).show();
601					$(".applicable-scenarios-section1 .applicable-scenarios-tabs li").removeClass("active");
602					$(".applicable-scenarios-section1 .applicable-scenarios-tabs li").eq(this.realIndex).addClass("active");
603					
604				},
605			},
606			thumbs: {
607				swiper: applicableScenariosTabsSwiper1,
608			},
609		})
610	}else{
611		var applicableScenariosSwiper1 = new Swiper('.applicable-scenarios-section1 .applicable-scenarios-swiper .swiper-container', {
612			autoplay: {
613				delay: 2000,  
614				disableOnInteraction: false,
615			},
616			loop: true,
617			slidesPerView: "auto",
618			//speed:1000,
619			centeredSlides: true,
620			speed: 600,
621			//roundLengths : true,
622			//updateOnWindowResize: true,
623			navigation: {
624				nextEl: ".applicable-scenarios-section1 .applicable-scenarios-swiper-container .swiper-arrow-next",
625				prevEl: ".applicable-scenarios-section1 .applicable-scenarios-swiper-container .swiper-arrow-prev",
626			},
627			pagination: {
628				el: ".applicable-scenarios-section1 .applicable-scenarios-swiper-container .swiper-pagination",
629				type: 'fraction',
630			},
631			on:{
632				init: function(swiper){
633					$(".applicable-scenarios-section1 .applicable-scenarios-swiper-cont .box").hide();
634					$(".applicable-scenarios-section1 .applicable-scenarios-swiper-cont .box").eq(0).show();
635					$(".applicable-scenarios-section1 .applicable-scenarios-tabs li").removeClass("active");
636					$(".applicable-scenarios-section1 .applicable-scenarios-tabs li").eq(0).addClass("active");
637					
638				},
639				slideChange: function(){
640					$(".applicable-scenarios-section1 .applicable-scenarios-swiper-cont .box").hide();
641					$(".applicable-scenarios-section1 .applicable-scenarios-swiper-cont .box").eq(this.realIndex).show();
642					$(".applicable-scenarios-section1 .applicable-scenarios-tabs li").removeClass("active");
643					$(".applicable-scenarios-section1 .applicable-scenarios-tabs li").eq(this.realIndex).addClass("active");
644					
645				},
646			},
647		})
648	}
649	
650	
651	
652	if($(".applicable-scenarios-section1 .applicable-scenarios-swiper").length > 0){
653		$(".applicable-scenarios-section1 .applicable-scenarios-inner").hover(function(){
654			applicableScenariosSwiper1.autoplay.stop();
655		},function(){
656			applicableScenariosSwiper1.autoplay.start();
657		})
658	}
659	
660	
661	var applicableScenariosSwiper2 = new Swiper('.applicable-scenarios-section2 .applicable-scenarios-swiper .swiper-container', {
662		autoplay: {
663			delay: 2000,  
664			disableOnInteraction: false,
665		},
666		loop: true,
667		slidesPerView: "auto",
668		//speed:1000,
669		centeredSlides: true,
670		speed: 600,
671		//roundLengths : true,
672		//updateOnWindowResize: true,
673		navigation: {
674			nextEl: ".applicable-scenarios-section2 .applicable-scenarios-swiper-container .swiper-arrow-next",
675			prevEl: ".applicable-scenarios-section2 .applicable-scenarios-swiper-container .swiper-arrow-prev",
676		},
677		pagination: {
678			el: ".applicable-scenarios-section2 .applicable-scenarios-swiper-container .swiper-pagination",
679			type: 'fraction',
680		},
681		on:{
682			init: function(swiper){
683				$(".applicable-scenarios-section2 .applicable-scenarios-swiper-cont .box").hide();
684				$(".applicable-scenarios-section2 .applicable-scenarios-swiper-cont .box").eq(0).show();
685				$(".applicable-scenarios-section2 .applicable-scenarios-tabs li").removeClass("active");
686				$(".applicable-scenarios-section2 .applicable-scenarios-tabs li").eq(0).addClass("active");
687			},
688			slideChange: function(){
689				$(".applicable-scenarios-section2 .applicable-scenarios-swiper-cont .box").hide();
690				$(".applicable-scenarios-section2 .applicable-scenarios-swiper-cont .box").eq(this.realIndex).show();
691				$(".applicable-scenarios-section2 .applicable-scenarios-tabs li").removeClass("active");
692				$(".applicable-scenarios-section2 .applicable-scenarios-tabs li").eq(this.realIndex).addClass("active");
693			},
694		},
695	})
696	
697	$(".applicable-scenarios-section2 .applicable-scenarios-tabs li .title").click(function(){
698		var _index = $(this).parents("li").index();
699		applicableScenariosSwiper2.slideToLoop(_index, 1000, false);
700	})
701	
702	$(".applicable-scenarios-section2 .applicable-scenarios-inner").hover(function(){
703		applicableScenariosSwiper2.autoplay.stop();
704	},function(){
705		applicableScenariosSwiper2.autoplay.start();
706	})
707	
708	var activitySwiper = new Swiper(".activity-swiper .swiper-container", {
709		loop: true,
710		pagination: {
711			el: ".activity-swiper .swiper-pagination",
712			type: "fraction",
713		},
714		navigation: {
715			nextEl: ".activity-swiper .swiper-arrow-next",
716			prevEl: ".activity-swiper .swiper-arrow-prev",
717		},
718		on:{
719			init: function(swiper){
720				$(".activity-title-box li").removeClass("active");
721				$(".activity-title-box li").eq(0).addClass("active");
722			},
723			slideChange: function(){
724				$(".activity-title-box li").removeClass("active");
725				$(".activity-title-box li").eq(this.realIndex).addClass("active");
726			},
727		},
728	});
729	
730	$(".activity-title-box li .block-box").click(function(){
731		var _index = $(this).parents("li").index();
732		activitySwiper.slideToLoop(_index, 300, false);
733	})
734	
735	$(".year-switch .title").click(function(){
736		if($(this).parents(".year-switch").hasClass("active")){
737			$(this).parents(".year-switch").removeClass("active");
738		}else{
739			$(this).parents(".year-switch").addClass("active");
740		}
741	})
742	$(".year-switch .hidden-box li").click(function(){
743		var _text = $(this).text();
744		$(this).parents(".year-switch").removeClass("active");
745		$(this).parents(".year-switch").find(".title a").text(_text);
746	})
747	
748	$(document).bind("click",function(e){
749		var target = $(e.target);
750		if(target.closest(".year-switch").length == 0){
751			$(".year-switch").removeClass("active");
752		}
753	})
754	
755	var jjfaSwiper = new Swiper(".jjfa-swiper .swiper-container", {
756		pagination: {
757			el: ".jjfa-swiper .swiper-pagination",
758		},
759	});
760	
761	var applicableScenariosSwiperHorizontal = new Swiper('.applicable-scenarios-section-horizontal .applicable-scenarios-swiper-horizontal .swiper-container', {
762		autoplay: {
763			delay: 2000,  
764			disableOnInteraction: false,
765		},
766		loop: true,
767		spaceBetween: 30,
768		navigation: {
769			nextEl: ".applicable-scenarios-section-horizontal .applicable-scenarios-swiper-container .swiper-arrow-next",
770			prevEl: ".applicable-scenarios-section-horizontal .applicable-scenarios-swiper-container .swiper-arrow-prev",
771		},
772		pagination: {
773			el: ".applicable-scenarios-section-horizontal .applicable-scenarios-swiper-container .swiper-pagination",
774			type: 'fraction',
775		},
776		on:{
777			init: function(swiper){
778				$(".applicable-scenarios-section-horizontal .applicable-scenarios-swiper-cont-horizontal .box").hide();
779				$(".applicable-scenarios-section-horizontal .applicable-scenarios-swiper-cont-horizontal .box").eq(0).show();
780				$(".applicable-scenarios-section-horizontal .applicable-scenarios-tabs li").removeClass("active");
781				$(".applicable-scenarios-section-horizontal .applicable-scenarios-tabs li").eq(0).addClass("active");
782			},
783			slideChange: function(){
784				$(".applicable-scenarios-section-horizontal .applicable-scenarios-swiper-cont-horizontal .box").hide();
785				$(".applicable-scenarios-section-horizontal .applicable-scenarios-swiper-cont-horizontal .box").eq(this.realIndex).show();
786				$(".applicable-scenarios-section-horizontal .applicable-scenarios-tabs li").removeClass("active");
787				$(".applicable-scenarios-section-horizontal .applicable-scenarios-tabs li").eq(this.realIndex).addClass("active");
788				
789			},
790		},
791	})
792	
793	if($(".applicable-scenarios-section-horizontal .applicable-scenarios-swiper-horizontal").length > 0){
794		$(".applicable-scenarios-section-horizontal .applicable-scenarios-inner").hover(function(){
795			applicableScenariosSwiperHorizontal.autoplay.stop();
796		},function(){
797			applicableScenariosSwiperHorizontal.autoplay.start();
798		})
799	}
800	
801	
802	/* 棰勭害涓撳鍜ㄨ */
803	$(".expert-counselling-trigger").click(function(){
804		$(".expert-counselling-layer").fadeIn(300);
805		$("body").addClass("body-hidden");
806		window.myCollect.$eventClick({
807			click_name: '棰勭害涓撳鍜ㄨ',
808			click_alias: '棰勭害涓撳鍜ㄨ',
809		})
810	})
811	$(".expert-counselling-layer .layer-close").click(function(){
812		$(".expert-counselling-layer").fadeOut(300);
813		$("body").removeClass("body-hidden");
814	})
815	
816	$(".expert-counselling-layer .layer-container .layer-inner .form-inner .form-block .input-box .input-text").focus(function() {
817		$(this).parents(".form-block").siblings().removeClass("focus");
818		$(this).parents(".form-block").addClass("focus");
819	});
820	
821	$(".expert-counselling-layer .layer-container .layer-inner .form-inner .form-block .input-box .input-text").blur(function() {
822		$(this).parents(".form-block").removeClass("focus");
823	});
824	
825	$("body").on("click",".tips-layer .layer-close",function(){
826		$(".tips-layer").fadeOut(300);
827	})
828	
829	$(".consultation-trigger").click(function(){
830		$(".consultation-layer").fadeIn(300);
831		$("body").addClass("body-hidden");
832	})
833	$(".consultation-layer .layer-close").click(function(){
834		$(".consultation-layer").fadeOut(300);
835		$("body").removeClass("body-hidden");
836	})
837	
838	//杩斿洖椤堕儴
839	var _windowHeight=$(window).height()/2;
840	//console.log($(window).height())
841	$(window).scroll(function(){
842		//console.log($(window).scrollTop())
843		if ($(window).scrollTop()>_windowHeight){
844			$(".return-top").fadeIn(500);
845		}else{
846			$(".return-top").fadeOut(500);
847		}
848	});
849	
850	$(".return-top").click(function(){
851		$('body,html').animate({scrollTop:0},100);
852		return false;
853	});
854	
855	var contactusFocusBigSwiper = new Swiper(".contactus-focus .big-swiper .swiper-container", {
856		autoplay: {
857			delay: 5000,  
858			disableOnInteraction: false,
859		},
860		loop: true,
861		pagination: {
862			el: ".contactus-focus .big-swiper .swiper-pagination",
863			clickable: true,
864		},
865	});
866	
867	document.querySelectorAll('.ai-platform-app-section').forEach(function(section) {
868    // 鍦ㄥ綋鍓峴ection鍐呮煡鎵惧厓绱?
869    var swiperContainer = section.querySelector('.cont-inner-swiper .swiper-container');
870    var nextBtn = section.querySelector('.swiper-arrow-next');
871    var prevBtn = section.querySelector('.swiper-arrow-prev');
872    var pagination = section.querySelector('.swiper-pagination');
873
874    // 涓烘瘡涓猻ection鍗曠嫭鍒濆鍖朣wiper
875    if (swiperContainer) {
876        new Swiper(swiperContainer, {
877            autoplay: {
878                delay: 5000,
879                disableOnInteraction: false,
880            },
881            loop: true,
882            navigation: {
883                nextEl: nextBtn,
884                prevEl: prevBtn,
885            },
886            pagination: {
887                el: pagination,
888                type: 'fraction',
889            },
890        });
891    }
892});
893	
894	
895	////
896	/* var productTechnologyPartnerSwiper = new Swiper('.product-technology-partner-swiper .swiper-container', {
897		loop: true,
898		speed: 600,
899	}) */
900	
901	
902	var yjsjkystSwiper = new Swiper(".yjsjkyst-swiper .swiper-container", {
903		/* autoplay: {
904			delay: 5000,  
905			disableOnInteraction: false,
906		}, */
907		loop: true,
908		spaceBetween: 30,
909		navigation: {
910			nextEl: ".yjsjkyst-swiper .swiper-arrow-next",
911			prevEl: ".yjsjkyst-swiper .swiper-arrow-prev",
912		},
913		pagination: {
914			el: ".yjsjkyst-swiper .swiper-pagination",
915			type: 'fraction',
916		},
917	});
918	
919	
920	const $lpsLayer = $('.lps-layer');
921	const $closeBtn = $('.lps-layer .layer-close');
922	
923	// 妫€鏌ユ槸鍚﹀瓨鍦?cookies
924	const hasCookie = getCookieY('lpsLayerClosed');
925	
926	if (!hasCookie) {
927		$lpsLayer.show();
928	} else {
929		$lpsLayer.hide();
930	}
931
932	// 鐐瑰嚮鍏抽棴鎸夐挳浜嬩欢
933	$closeBtn.on('click', function() {
934		$lpsLayer.hide();
935		setTimeCookieY('lpsLayerClosed', 'true');
936	});
937	
938	
939	$(".click-joinus").click(function(){
940		$(".joinus-layer").fadeIn(300);
941		
942		var countdown = 5;
943		var interval = setInterval(function() {
944			if (countdown > 0) {
945				//console.log(countdown + '绉掑悗璺宠浆'); // 鍙互鍦ㄦ帶鍒跺彴鐪嬪埌鍊掕鏃朵俊鎭?
946				$(".joinus-layer .countdown-cont span").text(countdown);
947				countdown--;
948			} else {
949				clearInterval(interval); // 鍋滄璁℃椂鍣?
950				window.location.href = 'https://digitalchina.zhiye.com/'; // 璺宠浆鐨刄RL鍦板潃
951			}
952		}, 1000);
953		
954	})
955	
956	$(".joinus-layer .layer-close").click(function(){
957		$(".joinus-layer").fadeOut(300);
958		window.location.href = 'https://digitalchina.zhiye.com/'; // 璺宠浆鐨刄RL鍦板潃
959	})
960	
961	$('.cb-checkbox input').change(function () {
962		if ($(this).prop('checked')) {
963			$(this).closest('li').addClass('selected')
964		} else {
965			$(this).closest('li').removeClass('selected')
966		}
967	})
968	
969	
970	
971	//鍒ゆ柇鎵嬫満銆乸c鎵ц
972	if(ismobistaute){
973		//鎵嬫満
974		
975		var homeProductsServicesSwiper = new Swiper('.home-products-services-swiper .swiper-container',{
976			// autoplay: {
977			// 	delay: 2000,  
978			// 	disableOnInteraction: false,
979			// },
980			speed: 1000,
981			loop: true,
982			slidesPerView: 2,
983			centeredSlides: true,
984			pagination: {
985				el: ".home-products-services-swiper .swiper-pagination",
986				clickable: true,
987				//type: 'fraction',
988			},
989		});
990		
991		var enterpriseLogoTopSwiper = new Swiper(".enterprise-logo-top", {
992			autoplay: {
993				delay: 0,
994				disableOnInteraction: false,
995			},
996			speed: 3000,
997			watchSlidesProgress: true,
998			loop: true,
999			slidesPerView: 3,
1000			freeMode: true,
1001			//centeredSlides: true,
1002		});
1003		
1004		var enterpriseLogoBottomSwiper = new Swiper(".enterprise-logo-bottom", {
1005			autoplay: {
1006				delay: 0,
1007				disableOnInteraction: false,
1008				reverseDirection: true,
1009			},
1010			speed: 3000,
1011			watchSlidesProgress: true,
1012			loop: true,
1013			slidesPerView: 3,
1014			freeMode: true,
1015			//centeredSlides: true,
1016		});
1017		
1018		var homeNewsSwiper = new Swiper(".home-news-swiper .swiper-container", {
1019			// autoplay: {
1020			// 	delay: 2000,  
1021			// 	disableOnInteraction: false,
1022			// },
1023			loop: true,
1024			slidesPerView: 2,
1025			centeredSlides: true,
1026			pagination: {
1027				el: ".home-news-swiper .swiper-pagination",
1028				clickable: true,
1029			},
1030		});
1031		
1032		var _bestPracticesTotal = $(".best-practices-swiper .swiper-slide").length;
1033		if(_bestPracticesTotal > 1){
1034			$(".best-practices-swiper").addClass("flex");
1035			var bestPracticesSwiper = new Swiper(".best-practices-swiper .swiper-container", {
1036				// autoplay: {
1037				// 	delay: 2000,  
1038				// 	disableOnInteraction: false,
1039				// },
1040				loop: true,
1041				slidesPerView: 2,
1042				centeredSlides: true,
1043				pagination: {
1044					el: ".best-practices-swiper .swiper-pagination",
1045					clickable: true,
1046				},
1047			});
1048		}
1049		
1050		var companyProfileSwiper = new Swiper('.company-profile-swiper .swiper-container',{
1051			// autoplay: {
1052			// 	delay: 5000,  
1053			// 	//disableOnInteraction: true,
1054			// },
1055			loop: true,
1056			slidesPerView: 2,
1057			centeredSlides: true,
1058			navigation: {
1059				nextEl: ".company-profile-swiper .swiper-arrow-next",
1060				prevEl: ".company-profile-swiper .swiper-arrow-prev",
1061			},
1062			pagination: {
1063				el: ".company-profile-swiper .swiper-pagination",
1064				clickable: true,
1065				dynamicBullets: true,
1066			},
1067		});
1068		
1069		
1070		
1071		if($(".cooperative-partner-swiper .swiper-slide").length > 12){
1072			$(".cooperative-partner-swiper").addClass("foucs-animate");
1073			var cooperativepartnerSwiper = new Swiper(".cooperative-partner-swiper .swiper-container", {
1074				//loop: true,
1075				autoplay: {
1076					delay: 5000,  
1077					//disableOnInteraction: true,
1078				},
1079				speed: 1000,
1080				slidesPerView: 3,
1081				slidesPerGroup: 3,
1082				slidesPerColumn : 4,
1083				slidesPerColumnFill : 'row',
1084				pagination: {
1085					el: ".cooperative-partner-swiper .swiper-pagination",
1086					clickable: true,
1087					dynamicBullets: true,
1088				},
1089			});
1090		}
1091		
1092		// 浜岀骇瀵艰埅 褰撳墠鐘舵€佹粴鍔ㄥ畾浣?
1093		if($(".sub-nav-container").length>0){
1094			var _subNavIndex = $('.sub-nav-container li.active').index();
1095			console.log(_subNavIndex)
1096			if(_subNavIndex != 0){
1097				var _positionLeft = $('.sub-nav-container li').eq(_subNavIndex).position().left;
1098				$(".sub-nav-container ul").animate({ scrollLeft: parseInt(_positionLeft)}, 500);
1099				//console.log(parseInt(_positionLeft))
1100			}
1101		}
1102		
1103		var aiServeListSwiper = new Swiper(".ai-serve-list-swiper .swiper-container", {
1104			// autoplay: {
1105			// 	delay: 2000,  
1106			// 	disableOnInteraction: false,
1107			// },
1108			loop: true,
1109			slidesPerView: 2,
1110			centeredSlides: true,
1111			pagination: {
1112				el: ".ai-serve-list-swiper .swiper-pagination",
1113				clickable: true,
1114			},
1115		});
1116		
1117		var productTechnologyPartnerTabsSwiper = new Swiper(".product-technology-partner-tabs .swiper-container", {
1118			//loop: true,
1119			//spaceBetween: 10,
1120			slidesPerView: 3,
1121			slidesPerGroup: 3,
1122			freeMode: true,
1123			watchSlidesProgress: true,
1124			navigation: {
1125				nextEl: ".product-technology-partner-tabs .swiper-arrow-next",
1126				prevEl: ".product-technology-partner-tabs .swiper-arrow-prev",
1127			},
1128			on:{
1129				init: function(swiper){
1130					$(".product-technology-partner-tabs .swiper-slide").eq(0).addClass("active").siblings().removeClass("active");
1131					$(".product-technology-partner-swiper .swiper-slide").eq(0).show().siblings().hide();
1132				}, 
1133				click:function(){
1134					$(".product-technology-partner-tabs .swiper-slide").eq(this.clickedIndex).addClass("active").siblings().removeClass("active");
1135					$(".product-technology-partner-swiper .swiper-slide").eq(this.clickedIndex).show().siblings().hide();
1136				}
1137			}
1138		});
1139		
1140		$('.case-item h3').click(function () {
1141			if ($(this).parents('.case-item').hasClass('expand')) {
1142				$(this).parents('.case-item').removeClass('expand')
1143			} else {
1144				$('.case-item').removeClass('expand')
1145				$(this).parents('.case-item').addClass('expand')
1146			}
1147		})
1148		
1149		
1150	}else{
1151		//PC
1152		
1153		var _homeProductsServicesSwiperTotal = $(".home-products-services-swiper").length;
1154		if(_homeProductsServicesSwiperTotal > 0){
1155			var _stretch,_depth;
1156			if(windowWidth < 992){
1157				
1158			}else if(windowWidth < 1300){
1159				_stretch = "-40.9%";
1160				_depth = "800";
1161			}else if(windowWidth < 1400){
1162				_stretch = "-40.5%";
1163				_depth = "800";
1164			}else if(windowWidth < 1680){
1165				_stretch = "-38.3%";
1166				_depth = "800";
1167			}else if(windowWidth < 1920){
1168				_stretch = "-41.7%";
1169				_depth = "850";
1170			}else{
1171				_stretch = "-48.3%";
1172				_depth = "950";
1173			}
1174			
1175			var homeProductsServicesSwiper = new Swiper('.home-products-services-swiper .swiper-container', {
1176				autoplay: {
1177					delay: 2000,  
1178					disableOnInteraction: false,
1179				},
1180				loop: true,
1181				effect: "coverflow",
1182				grabCursor: true,
1183				centeredSlides: true,
1184				slidesPerView: 2.8,
1185				coverflowEffect: {
1186					rotate: 30,
1187					stretch: _stretch,
1188					depth: _depth,
1189					modifier: 1,
1190					slideShadows: false,
1191				},
1192				pagination: {
1193					el: ".home-products-services-swiper .swiper-pagination",
1194					clickable: true,
1195					//type: 'fraction',
1196				},
1197				navigation: {
1198					nextEl: ".home-products-services-swiper .swiper-arrow-next",
1199					prevEl: ".home-products-services-swiper .swiper-arrow-prev",
1200				},
1201			})
1202			
1203			homeProductsServicesSwiper.el.onmouseover = function(){
1204			  homeProductsServicesSwiper.autoplay.stop();
1205			}
1206			homeProductsServicesSwiper.el.onmouseout = function(){
1207			  homeProductsServicesSwiper.autoplay.start();
1208			}
1209		}
1210		
1211		var enterpriseLogoTopSwiper = new Swiper(".enterprise-logo-top", {
1212			autoplay: {
1213				delay: 0,
1214				disableOnInteraction: false,
1215			},
1216			speed: 3000,
1217			watchSlidesProgress: true,
1218			loop: true,
1219			slidesPerView: 8,
1220			freeMode: true,
1221			//centeredSlides: true,
1222		});
1223		
1224		var enterpriseLogoBottomSwiper = new Swiper(".enterprise-logo-bottom", {
1225			autoplay: {
1226				delay: 0,
1227				disableOnInteraction: false,
1228				reverseDirection: true,
1229			},
1230			speed: 3000,
1231			watchSlidesProgress: true,
1232			loop: true,
1233			slidesPerView: 8,
1234			freeMode: true,
1235			//centeredSlides: true,
1236		});
1237		
1238		$(".home-news-swiper").each(function() {
1239			var $this = $(this);
1240			var swiperSlides = $this.find(".swiper-slide");
1241			if (swiperSlides.length > 3) {
1242				var homeNewsSwiper = new Swiper($this.find(".swiper-container")[0], {
1243					autoplay: {
1244						delay: 2000,
1245						disableOnInteraction: false,
1246					},
1247					loop: true,
1248					slidesPerView: 3,
1249					slidesPerGroup: 3,
1250					navigation: {
1251						nextEl: $this.find(".swiper-arrow-next")[0],
1252						prevEl: $this.find(".swiper-arrow-prev")[0],
1253					},
1254				});
1255	 
1256				// 纭繚瀵艰埅绠ご瀛樺湪涓旀樉绀?				$this.find(".swiper-arrow").show();
1257	 
1258				// 璁剧疆榧犳爣鎮仠浜嬩欢
1259				$this.find(".swiper-container").on("mouseover", function() {
1260					homeNewsSwiper.autoplay.stop();
1261				}).on("mouseout", function() {
1262					homeNewsSwiper.autoplay.start();
1263				});
1264			}
1265		});
1266		
1267		var _bestPracticesTotal = $(".best-practices-swiper .swiper-slide").length;
1268		if(_bestPracticesTotal > 3){
1269			$(".best-practices-swiper").addClass("flex");
1270			var bestPracticesSwiper = new Swiper(".best-practices-swiper .swiper-container", {
1271				autoplay: {
1272					delay: 2000,  
1273					disableOnInteraction: false,
1274				},
1275				loop: true,
1276				slidesPerView: 3,
1277				slidesPerGroup: 3,
1278				pagination: {
1279					el: ".best-practices-swiper .swiper-pagination",
1280					clickable: true,
1281				},
1282				navigation: {
1283					nextEl: ".best-practices-swiper .swiper-arrow-next",
1284					prevEl: ".best-practices-swiper .swiper-arrow-prev",
1285				},
1286			});
1287			$(".best-practices-swiper .swiper-arrow").show();
1288			
1289			bestPracticesSwiper.el.onmouseover = function(){
1290			  bestPracticesSwiper.autoplay.stop();
1291			}
1292			bestPracticesSwiper.el.onmouseout = function(){
1293			  bestPracticesSwiper.autoplay.start();
1294			}
1295		}
1296		
1297		var companyProfileSwiper = new Swiper(".company-profile-swiper .swiper-container", {
1298			//loop: true,
1299			// autoplay: {
1300			// 	delay: 5000,  
1301			// 	//disableOnInteraction: true,
1302			// },
1303			speed: 1000,
1304			slidesPerView: 6,
1305			slidesPerGroup: 6,
1306			slidesPerColumn : 2,
1307			slidesPerColumnFill : 'row',
1308			pagination: {
1309				el: ".company-profile-swiper .swiper-pagination",
1310				clickable: true,
1311			},
1312		});
1313		
1314		
1315		if($(".cooperative-partner-swiper .swiper-slide").length > 24){
1316			$(".cooperative-partner-swiper").addClass("foucs-animate");
1317			var cooperativepartnerSwiper = new Swiper(".cooperative-partner-swiper .swiper-container", {
1318				//loop: true,
1319				autoplay: {
1320					delay: 5000,  
1321					//disableOnInteraction: true,
1322				},
1323				speed: 1000,
1324				slidesPerView: 8,
1325				slidesPerGroup: 8,
1326				slidesPerColumn : 3,
1327				slidesPerColumnFill : 'row',
1328				pagination: {
1329					el: ".cooperative-partner-swiper .swiper-pagination",
1330					clickable: true,
1331				},
1332			});
1333		}
1334		
1335		var _aiServeListTotal = $(".ai-serve-list-swiper .swiper-slide").length;
1336		if(_aiServeListTotal > 4){
1337			$(".ai-serve-list-swiper").addClass("flex");
1338			var aiServeListSwiper = new Swiper(".ai-serve-list-swiper .swiper-container", {
1339				autoplay: {
1340					delay: 2000,  
1341					disableOnInteraction: false,
1342				},
1343				loop: true,
1344				slidesPerView: 4,
1345				slidesPerGroup: 4,
1346				pagination: {
1347					el: ".ai-serve-list-swiper .swiper-pagination",
1348					clickable: true,
1349				},
1350				navigation: {
1351					nextEl: ".ai-serve-list-swiper .swiper-arrow-next",
1352					prevEl: ".ai-serve-list-swiper .swiper-arrow-prev",
1353				},
1354			});
1355			$(".ai-serve-list-swiper .swiper-arrow").show();
1356			
1357			aiServeListSwiper.el.onmouseover = function(){
1358			  aiServeListSwiper.autoplay.stop();
1359			}
1360			aiServeListSwiper.el.onmouseout = function(){
1361			  aiServeListSwiper.autoplay.start();
1362			}
1363		}
1364		
1365		var productTechnologyPartnerTabsSwiper = new Swiper(".product-technology-partner-tabs .swiper-container", {
1366			//loop: true,
1367			//spaceBetween: 10,
1368			slidesPerView: 6,
1369			slidesPerGroup: 6,
1370			freeMode: true,
1371			watchSlidesProgress: true,
1372			navigation: {
1373				nextEl: ".product-technology-partner-tabs .swiper-arrow-next",
1374				prevEl: ".product-technology-partner-tabs .swiper-arrow-prev",
1375			},
1376			on:{
1377				init: function(swiper){
1378					$(".product-technology-partner-tabs .swiper-slide").eq(0).addClass("active").siblings().removeClass("active");
1379					$(".product-technology-partner-swiper .swiper-slide").eq(0).show().siblings().hide();
1380				}, 
1381				click:function(){
1382					$(".product-technology-partner-tabs .swiper-slide").eq(this.clickedIndex).addClass("active").siblings().removeClass("active");
1383					$(".product-technology-partner-swiper .swiper-slide").eq(this.clickedIndex).show().siblings().hide();
1384				}
1385			}
1386		});
1387		
1388		
1389		
1390	}
1391	
1392	
1393	
1394
1395	
1396})
1397
1398function getWindowSize(){
1399	windowWidth = $(window).width();
1400	windowHeight = $(window).height();
1401	
1402	
1403	if(windowWidth < 991){
1404		ismobistaute = true;
1405	}
1406	
1407	if( !('placeholder' in document.createElement('input')) ){
1408		      // 鍖归厤 闄ype=password浠ュ鎵€鏈塱nput銆乼extarea
1409		    $('input[placeholder][type!=password],textarea[placeholder]').each(function(){   
1410		            var self = $(this),   
1411		            text= self.attr('placeholder');
1412		            // 濡傛灉鍐呭涓虹┖锛屽垯鍐欏叆
1413		            if(self.val()===""){ 
1414		                self.val(text).addClass('placeholder');
1415		            }
1416		            // 鎺т欢婵€娲伙紝娓呯┖placeholder
1417		            self.focus(function(){
1418		            	self.val("");
1419		                if(self.val()===text){
1420		                    self.val("").removeClass('placeholder');
1421		                }
1422		            // 鎺т欢澶卞幓鐒︾偣锛屾竻绌簆laceholder
1423		            }).blur(function(){
1424		                if(self.val()===""){
1425		                    self.val(text).addClass('placeholder');
1426		         }
1427		    });            
1428		});   
1429	}
1430	
1431	var _headerHeight = $(".header").height();
1432	$(".height100").css({"height":windowHeight});
1433	
1434	$(".section-404").height(windowHeight);
1435	
1436	if(windowWidth > 991){
1437		//$(".about-banner").css({"height":windowHeight});
1438	}
1439	
1440	
1441	if($("#particles-js").length > 0){
1442		setTimeout(function(){
1443			
1444			particlesJS('particles-js',
1445			  
1446			  {
1447				"particles": {
1448				  "number": {
1449					"value": 80,
1450					"density": {
1451					  "enable": true,
1452					  "value_area": 800
1453					}
1454				  },
1455				  "color": {
1456					"value": "#ffffff"
1457				  },
1458				  "shape": {
1459					"type": "circle",
1460					"stroke": {
1461					  "width": 0,
1462					  "color": "#000000"
1463					},
1464					"polygon": {
1465					  "nb_sides": 5
1466					},
1467					"image": {
1468					  "src": "img/github.svg",
1469					  "width": 100,
1470					  "height": 100
1471					}
1472				  },
1473				  "opacity": {
1474					"value": 0.5,
1475					"random": false,
1476					"anim": {
1477					  "enable": false,
1478					  "speed": 1,
1479					  "opacity_min": 0.1,
1480					  "sync": false
1481					}
1482				  },
1483				  "size": {
1484					"value": 5,
1485					"random": true,
1486					"anim": {
1487					  "enable": false,
1488					  "speed": 40,
1489					  "size_min": 0.1,
1490					  "sync": false
1491					}
1492				  },
1493				  "line_linked": {
1494					"enable": true,
1495					"distance": 150,
1496					"color": "#ffffff",
1497					"opacity": 0.4,
1498					"width": 1
1499				  },
1500				  "move": {
1501					"enable": true,
1502					"speed": 6,
1503					"direction": "none",
1504					"random": false,
1505					"straight": false,
1506					"out_mode": "out",
1507					"attract": {
1508					  "enable": false,
1509					  "rotateX": 600,
1510					  "rotateY": 1200
1511					}
1512				  }
1513				},
1514				"interactivity": {
1515				  "detect_on": "canvas",
1516				  "events": {
1517					"onhover": {
1518					  "enable": true,
1519					  "mode": "repulse"
1520					},
1521					"onclick": {
1522					  "enable": true,
1523					  "mode": "push"
1524					},
1525					"resize": true
1526				  },
1527				  "modes": {
1528					"grab": {
1529					  "distance": 400,
1530					  "line_linked": {
1531						"opacity": 1
1532					  }
1533					},
1534					"bubble": {
1535					  "distance": 400,
1536					  "size": 40,
1537					  "duration": 2,
1538					  "opacity": 8,
1539					  "speed": 3
1540					},
1541					"repulse": {
1542					  "distance": 200
1543					},
1544					"push": {
1545					  "particles_nb": 4
1546					},
1547					"remove": {
1548					  "particles_nb": 2
1549					}
1550				  }
1551				},
1552				"retina_detect": true,
1553				"config_demo": {
1554				  "hide_card": false,
1555				  "background_color": "#b61924",
1556				  "background_image": "",
1557				  "background_position": "50% 50%",
1558				  "background_repeat": "no-repeat",
1559				  "background_size": "cover"
1560				}
1561			  }
1562			
1563			);
1564		},500)
1565		
1566		
1567	}
1568	
1569}
1570
1571/*瑙嗛鎾斁*/
1572function Videoplay(){
1573    //瑙嗛寮规
1574    $("body").on("click",".video-play",function(){
1575    	var _mp4 = $(this).attr("data-mp4");
1576    	$("body").append('<div class="video-layer">'+
1577    		'<div class="opacity"></div>'+
1578    		'<div class="layer-inner">'+
1579    			'<div class="layer-close"></div>'+
1580    			'<div class="layer-container">'+
1581    				'<div class="video-box"><video controls="controls" autoplay="autoplay" poster="" webkit-playsinline="" playsinline="" x-webkit-airplay="true" airplay="allow"><source src="'+_mp4+'" type="video/mp4">鎮ㄧ殑娴忚鍣ㄤ笉鏀寔 video 鏍囩銆?/video></div>'+
1582    			'</div>'+
1583    		'</div>'+
1584    	'</div>');
1585    	$(".video-layer").fadeIn(300);
1586    })
1587    
1588    $("body").on("click",".video-layer .layer-close",function(){
1589    	$(".video-layer").fadeOut(300,function(){
1590    		$(".video-layer").remove();
1591    	});
1592    })
1593	
1594}
1595
1596function productAdvantages(){
1597	_productAdvantagesSectionTop = $(".product-advantages-section").offset().top;
1598	_productAdvantagesSectionHeight = $(".product-advantages-section").height() / 5;
1599	 
1600	var windowScrollTop = $(window).scrollTop();
1601	var referenceHeight = windowHeight * 1.1;
1602	
1603	if(windowScrollTop >= _productAdvantagesSectionTop - referenceHeight + _productAdvantagesSectionHeight && windowScrollTop < _productAdvantagesSectionTop - referenceHeight + _productAdvantagesSectionHeight * 2){
1604		//console.log(1)
1605		$(".product-advantages-sticky .cont-inner .box").hide();
1606		$(".product-advantages-sticky .cont-inner .box").eq(0).show();
1607		$(".product-advantages-page .current").text("1");
1608	}else if(windowScrollTop >= _productAdvantagesSectionTop -referenceHeight + _productAdvantagesSectionHeight * 2 && windowScrollTop < _productAdvantagesSectionTop - referenceHeight + _productAdvantagesSectionHeight * 3){
1609		//console.log(2)
1610		$(".product-advantages-sticky .cont-inner .box").hide();
1611		$(".product-advantages-sticky .cont-inner .box").eq(1).show();
1612		$(".product-advantages-page .current").text("2");
1613	}else if(windowScrollTop >= _productAdvantagesSectionTop - referenceHeight + _productAdvantagesSectionHeight * 3){
1614		//console.log(3)
1615		$(".product-advantages-sticky .cont-inner .box").hide();
1616		$(".product-advantages-sticky .cont-inner .box").eq(2).show();
1617		$(".product-advantages-page .current").text("3");
1618	}
1619}
1620
1621function tipsLayer(txt){
1622	$("body").append('<div class="tips-layer">'+
1623		'<div class="opacity"></div>'+
1624		'<div class="layer-container">'+
1625			'<div class="layer-close"></div>'+
1626			'<div class="layer-inner">'+
1627				'<div class="icon"><img src="/statics/zhsite/images/icon/icon-tips-success.png" alt="" /></div>'+
1628				'<div class="cont">'+ txt +'</div>'+
1629			'</div>'+
1630		'</div>'+
1631	'</div>');
1632	$(".tips-layer").fadeIn(300);
1633}
1634
1635//鍐檆ookies锛屾案涔呮湁鏁?
1636function setCookieY(_cookie, _cookieValue) { 
1637    document.cookie = _cookie + "=" + escape(_cookieValue) + ";path=/";
1638}
1639
1640//鍐檆ookies锛屾湁鏁堟湡7澶?
1641function setTimeCookieY(_cookie, _cookieValue) {
1642	var days = 7;
1643	var date = new Date();
1644	date.setTime(date.getTime() + (days*24*60*60*1000));
1645	var expires = "; expires=" + date.toUTCString();
1646	document.cookie = _cookie + "=" + escape(_cookieValue) + expires + ";path=/";
1647}
1648
1649//璇诲彇cookies 
1650function getCookieY(_cookie) { 
1651	var arr, reg = new RegExp("(^| )" + _cookie + "=([^;]*)(;|$)"); 
1652	if (arr = document.cookie.match(reg)){
1653		return unescape(arr[2]);
1654	}else{
1655		return null;
1656	}
1657}
1658
1659//璁剧疆cookie鍑芥暟
1660function setbrowserCookie(name, value, days) {
1661    var expires = "";
1662    if (days) {
1663        var date = new Date();
1664        date.setTime(date.getTime() + (days*24*60*60*1000));
1665        expires = "; expires=" + date.toUTCString();
1666    }
1667    document.cookie = name + "=" + (value || "")  + expires + "; path=/;domain=.digitalchina.com";
1668}
1669 
1670// 璇诲彇cookie鍑芥暟
1671function getbrowserCookie(name) {
1672    var nameEQ = name + "=";
1673    var ca = document.cookie.split(';');
1674    for(var i=0;i < ca.length;i++) {
1675        var c = ca[i];
1676        while (c.charAt(0)==' ') c = c.substring(1,c.length);
1677        if (c.indexOf(nameEQ) == 0) return c.substring(nameEQ.length,c.length);
1678    }
1679    return null;
1680}

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.