PageSourceSearch

https://www.czhuari.com/Tpl/HJZF2_Z/index_page/_mobile.js

js czhuari.com collected 2026-10-04 04:57:48 UTC 3,600 bytes, 83 lines download raw bytes

1require(['jquery', 'swiper'], function ($) {
2	/*移动端导航栏*/
3	$(".dt-mobile-menu-icon").click(function () {
4		$(".mobile-sticky-header-overlay").toggleClass("active");
5	});
6	/* 手机侧边导航层点击阻止冒泡 */
7	$("#mobile-menu-Sidebar").click(function (event) {
8		event.stopPropagation();
9	});
10	$(".mobile-menu-Sidebar-close").click(function () {
11		$(".mobile-sticky-header-overlay").toggleClass("active");
12
13	});
14	$(".next-level-button").click(function () {
15		$(this).toggleClass("active");
16		$(this).next(".hj_navbar_nav_dropdown-menu").slideToggle();
17	});
18	var noLinkNav = $(".next-level-button").siblings("div[menu_data]");
19	noLinkNav.click(function () {
20		var that = $(this).siblings(".next-level-button");
21		that.toggleClass("active");
22		that.next(".hj_navbar_nav_dropdown-menu").slideToggle();
23	});
24	/* 阴影层点击 */
25	$(".mobile-sticky-header-overlay").click(function (event) {
26		$(".mobile-sticky-header-overlay").removeClass("active");
27		event.stopPropagation();
28	});
29	/*移动端搜索框*/
30	$(".mobile_searchbutton").click(function () {
31		$(".mobile_search_content ").toggleClass("active");
32		$(".mobile-sticky-header-overlay").removeClass("active");
33	});
34	$(".mobile_search_close").click(function () {
35		$(".mobile_search_content ").toggleClass("active");
36	});
37	/*移动端语言版本切换*/
38	$(".mobile_languagebutton").click(function () {
39		$(this).toggleClass("active");
40		$(".mobile_languagelist").toggleClass("active");
41	});
42	autoHeight();
43	function autoHeight() {
44		var h = $('.HJZF2__head_temp_mobile').height();
45		$('.HJZF2__head_temp_mobile_empty').height(h);
46	}
47	$(window).resize(function () {
48		autoHeight();
49	});
50	if(typeof configMultilingual !== 'undefined'){
51		const txtLan =  configMultilingual.languageThis == 'cn' ? '语言' : 'language';
52		function getTemplateBtn ()  {
53			return `
54				<li class="components_multilingual-app" id="multilingual">
55					<button>
56						<svg width="20" height="20" viewBox="0 0 48 48" fill="none" xmlns="http://www.w3.org/2000/svg">
57							<path fill-rule="evenodd" clip-rule="evenodd" d="M24 44C35.0457 44 44 35.0457 44 24C44 12.9543 35.0457 4 24 4C12.9543 4 4 12.9543 4 24C4 35.0457 12.9543 44 24 44Z" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"/>
58							<path d="M4 24H44" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"/>
59							<path fill-rule="evenodd" clip-rule="evenodd" d="M24 44C28.4183 44 32 35.0457 32 24C32 12.9543 28.4183 4 24 4C19.5817 4 16 12.9543 16 24C16 35.0457 19.5817 44 24 44Z" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"/>
60							<path d="M9.85791 10.1421C13.4772 13.7614 18.4772 16 24 16C29.5229 16 34.5229 13.7614 38.1422 10.1421" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"/>
61							<path d="M38.1422 37.8579C34.5229 34.2386 29.5229 32 24 32C18.4772 32 13.4772 34.2386 9.85791 37.8579" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"/>
62						</svg>
63						<span>${txtLan}</span>
64					</button>
65				</li>
66			`;
67		}
68
69		if($webid == '2470' || $webid == '2540' || $webid == '2480'){
70			$(".mobile_head_content").append(getTemplateBtn());
71		}else{
72			$(".hj_navbar_nav--mobile").append(getTemplateBtn());
73		}
74		
75		var modalMultilingual = $(".components_multilingual-modal");
76		$("#multilingual > button").on("click", function(){
77			modalMultilingual.addClass("on");
78		});
79		$(".components_multilingual-modal i.components_multilingual-modal-close").on("click", function(){
80			modalMultilingual.removeClass("on");
81		});
82	}
83});

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.