PageSourceSearch

https://www.zhoukou.gov.cn/static/js/normalprotalNew.js

js zhoukou.gov.cn collected 2026-09-25 02:58:54 UTC 77,037 bytes, 1,847 lines download raw bytes

1	
2/* JQueryString v1.6.1
3   By James Campbell 
4   Many thanks to Mike Willis for his suggestions and additions to this jQuery plugin.
5*/
6(function($) {
7$.getAllQueryStrings = function(options){
8	defaults = {DefaultValue:"undefined", URL:window.location.href} ;
9	options = $.extend(defaults , options);
10	var qs;
11	var args = new Array();
12	if(typeof(options.URL.split( "?" )[1]) != "undefined"){
13		qs = options.URL.split( "?" )[1].replace(/\+/g, ' ').split('&');
14		$.each(qs, function(i){
15			var currentArg = this.split('=');
16			if(currentArg.length == 2){		
17				args[i] = {name:currentArg[0], value:currentArg[1]};
18				args[currentArg[0]] = {name:currentArg[0], value:currentArg[1]};
19			}else{
20				args[i] = {name:currentArg[0], value:currentArg[1]};
21				args[currentArg[0]] = {name:currentArg[0], value:currentArg[0]};
22			}
23		});
24	}
25	if (args.length <= 0) {};
26	return args;
27}
28$.getQueryString = function(options){
29	defaults = {DefaultValue:"undefined", URL:window.location.href} ;
30	options = $.extend(defaults , options);
31	if(typeof($.getAllQueryStrings({URL:options.URL})[options.ID]) == "undefined"){
32		return options.DefaultValue;
33	}else{
34		return $.getAllQueryStrings({DefaultValue:options.DefaultValue, URL:options.URL})[options.ID].value;
35	}
36};
37})(jQuery);
38//针对jquery1.9以后 jquery事件和属性已经去除的插件支持 来自 jQuery Migrate - v1.2.1
39(function( jQuery, window, undefined ) {
40	var  browser;
41	jQuery.uaMatch = function( ua ) {
42		ua = ua.toLowerCase();
43
44		var match = /(chrome)[ \/]([\w.]+)/.exec( ua ) ||
45			/(webkit)[ \/]([\w.]+)/.exec( ua ) ||
46			/(opera)(?:.*version|)[ \/]([\w.]+)/.exec( ua ) ||
47			/(msie) ([\w.]+)/.exec( ua ) ||
48			ua.indexOf("compatible") < 0 && /(mozilla)(?:.*? rv:([\w.]+)|)/.exec( ua ) ||
49			[];
50
51		return {
52			browser: match[ 1 ] || "",
53			version: match[ 2 ] || "0"
54		};
55	};
56	
57	if ( !jQuery.browser ) {
58		matched = jQuery.uaMatch( navigator.userAgent );
59		browser = {};
60
61		if ( matched.browser ) {
62			browser[ matched.browser ] = true;
63			browser.version = matched.version;
64		}
65
66		// Chrome is Webkit, but Webkit is also Safari.
67		if ( browser.chrome ) {
68			browser.webkit = true;
69		} else if ( browser.webkit ) {
70			browser.safari = true;
71		}
72
73		jQuery.browser = browser;
74	}
75	
76	jQuery.fn.toggle = function( fn, fn2 ) {
77
78		// Don't mess with animation or css toggles
79		if ( !jQuery.isFunction( fn ) || !jQuery.isFunction( fn2 ) ) {
80			return oldToggle.apply( this, arguments );
81		}
82		//migrateWarn("jQuery.fn.toggle(handler, handler...) is deprecated");
83
84		// Save reference to arguments for access in closure
85		var args = arguments,
86			guid = fn.guid || jQuery.guid++,
87			i = 0,
88			toggler = function( event ) {
89				// Figure out which function to execute
90				var lastToggle = ( jQuery._data( this, "lastToggle" + fn.guid ) || 0 ) % i;
91				jQuery._data( this, "lastToggle" + fn.guid, lastToggle + 1 );
92
93				// Make sure that clicks stop
94				event.preventDefault();
95
96				// and execute the function
97				return args[ lastToggle ].apply( this, arguments ) || false;
98			};
99
100		// link all the functions, so any of them can unbind this click handler
101		toggler.guid = guid;
102		while ( i < args.length ) {
103			args[ i++ ].guid = guid;
104		}
105
106		return this.click( toggler );
107	};	
108	
109})(jQuery, window);
110
111function getCookieValue(sname){
112	var svalue = "";
113	var sname = sname + "=";
114	if (document.cookie.length > 0) {
115		offset = document.cookie.indexOf(sname);
116		if (offset != -1) {
117			offset += sname.length;
118			end = document.cookie.indexOf(";", offset);
119			if (end == -1) 
120				end = document.cookie.length;
121			svalue = unescape(document.cookie.substring(offset, end))
122		}
123	}
124	return svalue;
125}
126            
127function setCookieValue(sname, svalue){
128	var expire = "";
129	expire = new Date((new Date()).getTime() + 31536000);
130	expire = "; expires=" + expire.toGMTString() + "; path=/";
131	document.cookie = sname + "=" + escape(svalue) + expire;
132}
133
134function lineFunction(){		
135	var lineDiv = document.getElementById("lineDiv");
136	if(!lineDiv){
137		lineDiv = document.createElement("div");
138		lineDiv.setAttribute("id", "lineDiv");
139		lineDiv.setAttribute("style", "width:100%;height:0px;line-height:0px;font-size:0px;top:0px;left:0px;");
140		lineDiv.innerHTML = lineDivHTML;
141		document.body.insertBefore(lineDiv,document.body.firstChild);
142	}
143	document.getElementById('lineX').style.display = 'block';
144	document.getElementById('lineY').style.display = 'block';
145	document.onmousemove = mouseLineMove;
146}
147//当前鼠标位置判断
148function mouseLineMove(e) {
149	e = e || event || window.event;
150	var lineValueX = e.pageX;
151	var lineValueY = e.pageY;	
152	if(!lineValueX && !lineValueY){ 
153		lineValueX = e.clientX;
154		lineValueY = e.clientY + (document.documentElement.scrollTop||document.body.scrollTop);
155	}	
156	document.getElementById('lineX').style.top = lineValueY +5+ "px";
157	document.getElementById('lineY').style.height = document.documentElement.scrollHeight + "px";
158	document.getElementById('lineX').style.width = document.documentElement.scrollWidth + "px" ;
159	document.getElementById('lineY').style.left = lineValueX +5+ "px";
160}
161function initwza(){
162	var wcagnav = $.cookie('wcagnav');
163	var wzawid = $.cookie('wzawid');
164	var wzaymdx = $.cookie('wzaymdx');
165	var wzacolor = $.cookie('wzacolor');
166	var wzamouse = $.cookie('wzamouse');
167	var wzaline = $.cookie('wzaline');
168	var wzaview = $.cookie('wzaview');
169	var wzaread = $.cookie('wzaread');
170	var wzasound = $.cookie('wzasound');
171	var h5read = $.cookie('html5read');
172
173	if("1"==wcagnav){
174		$('#swzakg').trigger("click");
175	}
176	if("1"==wzawid){
177		$('#cwbtd').attr("title", "当前模式为文本模式").trigger("click");
178	}
179	$("body").css("zoom", wzaymdx?Number(wzaymdx):1);
180	if(wzaymdx){
181		if(Number(wzaymdx) == 1){
182			$('#ymfd, #ymsx').removeClass("active");
183		}else{
184			if(Number(wzaymdx) > 1){
185				$('#ymfd').addClass("active");
186			}else{
187				$('#ymsx').addClass("active");
188			}
189		}
190	}
191
192	if(wzacolor){
193		switch (wzacolor) {
194			case "1": $('.colors_list li').eq(0).trigger("click"); break;
195			case "2": $('.colors_list li').eq(1).trigger("click"); break;
196			case "3": $('.colors_list li').eq(2).trigger("click"); break;
197			case "4": $('.colors_list li').eq(3).trigger("click"); break;
198			default: '';
199		}
200	}
201	if("1"==wzamouse){
202		$('#bigmouse').attr("title", "当前大鼠标已开启").trigger("click");
203	}
204	if("1"==wzaline){
205		$('#wzaline').attr("title", "当前辅助线已开启").trigger("click");
206		lineFunction();
207	}
208	if("1"==wzaview){
209		$('#viewing').attr("title", "当前显示屏已开启").trigger("click");
210	}
211	$('#soundswitch').attr('title', (wzasound && '0'==wzasound?'当前声音已关闭':'当前声音已开启') + 'Shift+2').find('i').attr('class',wzasound && '0'==wzasound?'glyphicon glyphicon-volume-off':'glyphicon glyphicon-volume-up');
212	if(wzaread){
213		$(".voicereadtype").eq("1"==wzaread?1:0).addClass("active");
214	}
215
216	if(isHtml5Voice){
217		// $(".voicereadtype").removeClass("active");   //因H5语音首次需点击触发  这里做刷新后移除默认选中读取方式处理  来强制用户做点击操作
218		// $.cookie('html5read', null,{ expires: 7, path: '/'});
219		// $.cookie('wzaread', null,{ expires: 7, path: '/'});
220		$(".voicereadtype").eq("1"==h5read?1:0).addClass("active");
221		html5_batchVal = ("1"==h5read)?1:0;
222		html5_isPlayNext = Number(h5read)?true:false;
223	}
224}
225
226var zoomValue = $.cookie('wzaymdx')?Number($.cookie('wzaymdx')):1;
227var lineDivHTML="<div id=\"lineX\" style=\"border-top:5px red solid;position:absolute;width:100%;height:4px;left:0px;top:0px;font-size:0px;line-height:0px;z-index:999;\"></div>";
228lineDivHTML = lineDivHTML + "<div id=\"lineY\" style=\"border-left:5px red solid;position:absolute;width:4px;height:100%;top:0px;font-size:0px;line-height:0px;z-index:998;\"></div>";
229
230function checkUsePc(){
231	var userAgentInfo = navigator.userAgent.toLowerCase();
232	var agents = new Array("android", "iphone", "symbianOS", "windows phone", "ipad", "ipod");
233	var flag = true;
234	for (var i = 0; i < agents.length; i++) {
235		if (userAgentInfo.indexOf(agents[i]) > 0) {
236			flag = false;
237			break;
238		}
239	}
240	return flag;
241}
242function cancelVoicePlay(){
243	if(isHtml5Voice){
244		html5_isPlayNext = false;
245		html5_speechItems.cancel();
246	}else{
247		if(audio != null){
248			audio.pause();
249		}
250	}
251}
252function initMobileToolbar() {
253	var wzaMobileToolbar = '<style>*,a:focus{outline: none}.mobile_focus{text-decoration: underline;}.wza_mobile{position: fixed;left: 0;right: 0;bottom: 0;display: flex;justify-content: space-between;width: 100%;height: 85px;box-shadow: 0 -5px 14px 0 rgba(0, 18, 36, .6);background-color: #ddd;z-index: 10;}.mobile_handle_item{width: 25%;text-align: center;}.mobile_handle_ico{display: flex;justify-content: center;align-items: center;height: 50px;color: #015293;font-size: 30px;}.mobile_handle_text{width: 100%;color: #000;font-size: 20px;}.mobile_handle_item_active{background-color: #fff;}.mobile_handle_item_active .mobile_handle_ico, .mobile_handle_item_active .mobile_handle_text{color: #000;}.mobile_setting{position: fixed;bottom: 75px;left: 0;right: 0;width: 100%;height: 400px;background-color: rgba(255,255,255,.9);z-index: 9;transition: bottom .2s;}.moblle_setting_close{ bottom: -400px; }.mobile_set_head{display: flex;align-items: center;width: 100%;height: 50px;padding: 0 10px;color: #015293;font-size: 21px;line-height: 50px;}.mobile_set_head::before{content: \'\';float: left;width: 6px;height: 20px;margin-right: 5px;border-radius: 3px;background-color: #015293;}.mobile_set_close{position: absolute;top: 10px;right: 10px;color: #015293;font-size: 30px;}.mobile_set_tab_tit{display: flex;width: 100%;height: 48px;padding: 0 10px;}.mobile_set_tab_tit span{width: 25%;height: 100%;color: #323232;font-size: 22px;line-height: 48px;text-align: center;border-radius: 0px;}.mobile_set_tab_tit span.active{color: #015293;font-weight: 700;border-bottom: 1px solid #015293;}.mobile_set_tab_content{padding: 10px;}.mobile_set_tab_content>div{display: none;}.mobile_set_tab_content>div.active{display: block;}.mobile_common_style>div{position: relative;width: 100%;height: 50px;margin-bottom: 5px;border-radius: 10px;border: 1px solid #fff;color: #000;font-size: 24px;line-height: 50px;text-align: center;}.mobile_color1{color: #fff !important;background-color: #00335c !important;}.mobile_color2{color: #fff !important;background-color: #622b2b !important;}.mobile_color3{color: #fff !important;background-color: #000 !important;}.mobile_color4{color: #fff !important;background-color: #228b22 !important;}.mobile_common_style>div.active::after{content: \'\\e067\';position: absolute;top: 8px;right: 5px;font-family: \'Glyphicons Halflings\';color: #015293;font-style: normal;font-weight: 400;line-height: 1;font-size: 30px;}.mobile_set_font>div{position:relative;display: flex;justify-content: space-between;
253height: 52px;margin-bottom: 10px;color: #000;font-weight: 600;line-height: 52px;border-radius: 10px;}.mobile_set_font>div>div{width: 182px;height: 100%;border-color: #015293;}.mobile_set_font>div>div.active, .mobile_set_speed>div.active, .mobile_set_mode>div.active{color: #fff;background-color: #015293;}.mobile_set_font>div>div.active::after, .mobile_set_speed>div.active::after, .mobile_set_mode>div.active::after{ color: #fff;}.mobile_set_speed>div, .mobile_set_mode>div{font-size: 20px;border-color: #015293;}.mobile_font24{ font-size: 24px !important;}.mobile_font21{ font-size: 21px !important;}.mobile_font18{ font-size: 18px !important;}</style>' +
254		'<div style="display: none" class="view-inner-l"></div>' +
255		'<div id="wzaMobile">' +
256		'<div class="wza_mobile" style="display: none;">' +
257		'<div class="mobile_handle_item">' +
258		'<div class="mobile_handle_ico"><i class="glyphicon glyphicon-tint"></i></div>' +
259		'<div class="mobile_handle_text">配色</div>' +
260		'</div>' +
261		'<div class="mobile_handle_item">' +
262		'<div class="mobile_handle_ico"><i class="glyphicon glyphicon-play"></i></div>' +
263		'<div class="mobile_handle_text">阅读</div>' +
264		'</div>' +
265		'<div class="mobile_handle_item">' +
266		'<div class="mobile_handle_ico"><i class="glyphicon glyphicon-cog"></i></div>' +
267		'<div class="mobile_handle_text">设置</div>' +
268		'</div>' +
269		'<div class="mobile_handle_item">' +
270		'<div class="mobile_handle_ico"><i class="glyphicon glyphicon-off"></i></div>' +
271		'<div class="mobile_handle_text">退出</div>' +
272		'</div>' +
273		'</div>' +
274		'<div id="wzaMobileSetting" class="mobile_setting moblle_setting_close">' +
275		'<div class="mobile_set_head">设置<span class="glyphicon glyphicon-remove-circle mobile_set_close" onclick="$(\'#wzaMobileSetting\').addClass(\'moblle_setting_close\')"></span></div>' +
276		'<div class="mobile_set_tab_tit">' +
277		'<span class="active">配色</span><span>字体</span><span>语速</span><span>模式</span>' +
278		'</div>' +
279		'<div class="mobile_set_tab_content">' +
280		'<div class="active mobile_common_style mobile_set_colors">' +
281		'<div class="active" style="border-color: #0075ff;">默认</div>' +
282		'<div class="mobile_color1">深蓝</div><div class="mobile_color2">巧克力</div><div class="mobile_color3">黑色</div><div class="mobile_color4">森林绿</div>' +
283		'</div>' +
284		'<div class="mobile_set_font">' +
285		'<div class="mobile_common_style" style="font-size: 24px">字体预览<div style="font-size: 24px">特大</div></div>' +
286		'<div class="mobile_common_style" style="font-size: 21px">字体预览<div style="font-size: 21px">较大</div></div>' +
287		'<div class="mobile_common_style" style="font-size: 18px">字体预览<div style="font-size: 18px">适中</div></div>' +
288		'<div class="mobile_common_style active" style="font-size: 16px">字体预览<div style="font-size: 16px">原始字体</div></div>' +
289		'</div>' +
290		'<div class="mobile_common_style mobile_set_speed">' +
291		'<div>缓慢</div><div class="active">适度</div><div>快速</div>' +
292		'</div>' +
293		'<div class="mobile_common_style mobile_set_mode">' +
294		'<div>指读模式</div><div class="active">连读模式</div>' +
295		'</div>' +
296		'</div>' +
297		'</div>' +
298		'</div>';
299	$(wzaMobileToolbar).appendTo("body");
300	var allElements = $("body *:not(#wzaMobile *)");
301	$("#wzaMobile .mobile_handle_item").click(function(){
302		$(this).addClass("mobile_handle_item_active").siblings(".mobile_handle_item").removeClass("mobile_handle_item_active");
303		var selItem = $(this).text().trim();
304		if(selItem == '配色'){
305			$("#wzaMobileSetting").addClass("moblle_setting_close");
306			if($(".mobile_set_colors>.active").next().length){
307				$(".mobile_set_colors>.active").removeClass("active").next().addClass("active");
308			}else{
309				$("#toolbarOldman img").attr("src","/static/wza/images/zzb02.png");
310				$(".mobile_set_colors>div").removeClass("active").eq(0).addClass("active");
311			}
312			$(".mobile_set_colors>.active").trigger("click");
313		}
314		if(selItem == '阅读'){
315			$("#wzaMobileSetting").addClass("moblle_setting_close");
316			$(this).find("i").toggleClass("glyphicon-pause");
317			var vocieVal = $(this).find("i").attr("class").indexOf("glyphicon-pause") == -1?'0':'1';
318			$.cookie('m_voice', vocieVal, { expires: 7, path: '/'});
319			if(vocieVal == '1'){
320				if($.cookie('m_mode') != '0'){
321					html5_isPlayNext = true;
322					readAllVoice(voiceObjs[0]);
323				}
324			}else{
325				cancelVoicePlay();
326				$(".mobile_focus").removeClass("mobile_focus");
327				window.parent.$(".view-inner-l").text("");
328			}
329		}
330		if(selItem == '设置'){
331			$("#wzaMobileSetting").toggleClass("moblle_setting_close");
332		}
333		if(selItem == '退出'){
334                  $("#swzakg").removeClass('active');
335	            $("#swzakg img").attr("src","/static/wza/images/wza01.png");
336			$("#wzaMobileSetting").addClass("moblle_setting_close");
337			$("#wzaMobile>.wza_mobile").hide();
338			$(".mobile_handle_item").removeClass("mobile_handle_item_active");
339			// 重置选项
340			$(".mobile_set_tab_tit>span").removeClass("active").eq(0).addClass("active");
341			$(".mobile_set_tab_content>div").removeClass("active").eq(0).addClass("active");
342			$(".mobile_set_colors>div").removeClass("active").eq(0).addClass("active");
343			$(".mobile_set_font>div>div").removeClass("active");
344			$(".mobile_set_font>div").eq(3).find("div").addClass("active");
345			$(".mobile_set_speed>div").removeClass("active").eq(1).addClass("active");
346			$(".mobile_set_mode>div").removeClass("active").eq(1).addClass("active");
347			allElements.removeClass("mobile_color1 mobile_color2 mobile_color3 mobile_color4");
348			allElements.removeClass("mobile_font24 mobile_font21 mobile_font18");
349			// 重置cookie
350			$.cookie('m_switch','0',{ expires: 7, path: '/'});
351			$.cookie('m_color','0',{ expires: 7, path: '/'});
352			$.cookie('m_voice','0',{ expires: 7, path: '/'});
353			$.cookie('m_font','3',{ expires: 7, path: '/'});
354			$.cookie('m_speed','1',{ expires: 7, path: '/'});
355			$.cookie('m_mode','1',{ expires: 7, path: '/'});
356			// 重置其他
357			cancelVoicePlay();
358			$(".mobile_focus").removeClass("mobile_focus");
359			window.parent.$(".view-inner-l").text("");
360		}
361	})
362
363	// 设置项选择
364	$(".mobile_set_tab_tit>span").click(function(){
365		$(this).addClass("active").siblings("span").removeClass("active");
366		$(".mobile_set_tab_content>div").removeClass("active").eq($(this).index()).addClass("active");
367	})
368
369	// 颜色选择
370	$(".mobile_set_colors>div").click(function(){
371		allElements.removeClass("mobile_color1 mobile_color2 mobile_color3 mobile_color4");
372		var colorClass = $(this).attr("class");
373		$(this).addClass("active").siblings("div").removeClass("active");
374		if(colorClass){
375			allElements.addClass(colorClass);
376			$("#toolbarOldman img").attr("src","/static/wza/images/zzb02-1.png");
377		}else{
378			$("#toolbarOldman img").attr("src","/static/wza/images/zzb02.png");
379		}
380		$.cookie('m_color', $(this).index(), { expires: 7, path: '/'});
381	})
382
383	// 字体选择
384	$(".mobile_set_font>div").click(function(){
385		allElements.removeClass("mobile_font24 mobile_font21 mobile_font18");
386		$(".mobile_set_font>div").removeClass("active");
387		$(this).addClass("active");
388		switch($(this).index()){
389			case 0: allElements.addClass("mobile_font24"); $.cookie('m_font', '0', { expires: 7, path: '/'}); break;
390			case 1: allElements.addClass("mobile_font21"); $.cookie('m_font', '1', { expires: 7, path: '/'}); break;
391			case 2: allElements.addClass("mobile_font18"); $.cookie('m_font', '2', { expires: 7, path: '/'}); break;
392			case 3: $.cookie('m_font','3',{ expires: 7, path: '/'}); break;
393		}
394	})
395
396	// 语速选择
397	$(".mobile_set_speed>div").click(function(){
398		$(this).addClass("active").siblings("div").removeClass("active");
399		$.cookie('m_speed', $(this).index(), { expires: 7, path: '/'});
400		if(isHtml5Voice){
401			html5_rateVal = $(this).index()?($(this).index() == 2?1.5:1):(0.5);
402		}else{
403			if(audio){
404				audio.playbackRate = $(this).index()?($(this).index() == 2?1.5:1):(0.5);
405			}
406		}
407	})
408
409	// 模式选择
410	$(".mobile_set_mode>div").click(function(){
411		$(this).addClass("active").siblings("div").removeClass("active");
412		$.cookie('m_mode', $(this).index(), { expires: 7, path: '/'});
413		html5_batchVal = $(this).index();
414		if($(this).index()){
415			html5_isPlayNext = true;
416			readAllVoice($(".mobile_focus")[0]);
417		}
418	})
419
420	// 无障碍开关
421	$("#swzakg").click(function () {
422		if($.cookie('m_switch') == '0'){
423                  if($("#swzakg img").length){
424                     $("#swzakg").addClass('active');
425                     $("#swzakg img").attr("src","/static/wza/images/wza02.png");
426                 }
427			html5_batchVal = 1;
428			$("body").find("#wzaMobile>.wza_mobile").show();
429			$.cookie('m_switch','1',{ expires: 7, path: '/'});
430		}else{
431                  if($("#swzakg img").length){
432               	   $("#swzakg").removeClass('active');
433                     $("#swzakg img").attr("src","/static/wza/images/wza01.png");
434                  }
435			html5_batchVal = 0;
436			$("body").find(".mobile_handle_item").eq(3).trigger("click");
437			$.cookie('m_switch','0',{ expires: 7, path: '/'});
438		}
439	})
440
441	// 回显设置状态
442	if($.cookie('m_switch') == '1'){
443		html5_batchVal = 1;
444		$("body").find("#wzaMobile>.wza_mobile").show();
445	}
446	if($.cookie('m_color') != '0'){
447		$(".mobile_set_colors>div").eq(Number($.cookie('m_color'))).trigger("click");
448	}
449	if($.cookie('m_font') != '3'){
450		$(".mobile_set_font>div").eq(Number($.cookie('m_font'))).find("div").trigger("click");
451	}
452	if($.cookie('m_speed') != '1'){
453		$(".mobile_set_speed>div").eq(Number($.cookie('m_speed'))).trigger("click");
454	}
455	if($.cookie('m_mode') != '1'){
456		$(".mobile_set_mode>div").eq(0).trigger("click");
457	}
458	// if($.cookie('m_voice') != '0'){
459	// 	$("#wzaMobile .mobile_handle_item").eq(1).trigger("click");
460	// }
461}
462
463function initToolbar(){
464	var tempdiv='<div class="wza" id="wcagnav" style="top: 0px;text-align:center; display: none;">'+
465		'<div class="wza-input-area">'+
466		'<div id="readScreenWids" style="display: none">' +
467		'<div class="toolbarTexts" style="opacity: 1;" onclick="getAreaElement(\'nav\')">\n' +
468		'<span class="textSpan">\n' +
469		'<p class="textShow">\n' +
470		'<span class="textStr">导航区</span>\n' +
471		'<span class="textNum">(<span id="navNum" class="textNum"></span>)</span>\n' +
472		'</p>\n' +
473		'<p class="textKey">ALT+1</p>\n' +
474		'</span>\n' +
475		'</div>\n' +
476		'<div class="toolbarTexts" style="opacity: 1;" onclick="getAreaElement(\'info\')">\n' +
477		'<span class="textSpan">\n' +
478		'<p class="textShow">\n' +
479		'<span class="textStr">视窗区</span>\n' +
480		'<span class="textNum">(<span id="infoNum" class="textNum"></span>)</span>\n' +
481		'</p>\n' +
482		'<p class="textKey">ALT+2</p>\n' +
483		'</span>\n' +
484		'</div>\n' +
485		'<div class="toolbarTexts" style="opacity: 1;" onclick="getAreaElement(\'interaction\')">\n' +
486		'<span class="textSpan">\n' +
487		'<p class="textShow">\n' +
488		'<span class="textStr">交互区</span>\n' +
489		'<span class="textNum">(<span id="interactionNum" class="textNum"></span>)</span>\n' +
490		'</p>\n' +
491		'<p class="textKey">ALT+3</p>\n' +
492		'</span>\n' +
493		'</div>\n' +
494		'<div class="toolbarTexts" style="opacity: 1;" onclick="getAreaElement(\'service\')">\n' +
495		'<span class="textSpan">\n' +
496		'<p class="textShow">\n' +
497		'<span class="textStr">服务区</span>\n' +
498		'<span class="textNum">(<span id="serviceNum" class="textNum"></span>)</span>\n' +
499		'</p>\n' +
500		'<p class="textKey">ALT+4</p>\n' +
501		'</span>\n' +
502		'</div>\n' +
503		'<div class="toolbarTexts" style="opacity: 1;" onclick="getAreaElement(\'list\')">\n' +
504		'<span class="textSpan">\n' +
505		'<p class="textShow">\n' +
506		'<span class="textStr">列表区</span>\n' +
507		'<span class="textNum">(<span id="listNum" class="textNum"></span>)</span>\n' +
508		'</p>\n' +
509		'<p class="textKey">ALT+5</p>\n' +
510		'</span>\n' +
511		'</div>\n' +
512		'<div class="toolbarTexts" style="opacity: 1;" onclick="getAreaElement(\'article\')">\n' +
513		'<span class="textSpan">\n' +
514		'<p class="textShow">\n' +
515		'<span class="textStr">正文区</span>\n' +
516		'<span class="textNum">(<span id="articleNum" class="textNum"></span>)</span>\n' +
517		'</p>\n' +
518		'<p class="textKey">ALT+6</p>\n' +
519		'</span>\n' +
520		'</div>' +
521		'</div>'+
522		'<div id="cwbtd" title="当前模式为视图模式,快捷键Shift+V"><span>视图</span><div><i class="glyphicon glyphicon-list"></i></div></div>'+
523		'<div id="wzareset" title="当前页面已刷新,快捷键Shift+1"><span>刷新</span><div><i class="glyphicon glyphicon-refresh"></i></div></div>'+
524		'<div id="soundswitch" title="当前声音已开启,快捷键Shift+2"><span>声音</span><div><i class="glyphicon glyphicon-volume-up"></i></div></div>'+
525			'<div class="voicereadtype" onclick="readVoiceType(0)" title="当前为指读模式,快捷键Shift+4"><span>指读</span><div><i class="custom_platform platform-touch"></i></div></div>'+
526			'<div class="voicereadtype" onclick="readVoiceType(1)" title="当前为连读模式,快捷键Shift+4"><span>连读</span><div><i class="glyphicon glyphicon-expand"></i></div></div>'+
527			'<div id="wzacolor" title="配色开关Shift+5" style="position: relative"><span>配色</span><div><i class="glyphicon glyphicon-tint"></i></div>' +
528			'<ul class="colors_list">' +
529			'<span></span>' +
530			'<li class="wbbColor" colors="white, black, blue">白底黑字蓝链接</li>' +
531			'<li class="blueywColor" colors="blue, yellow, white">蓝底黄字白链接</li>' +
532			'<li class="ybbColor" colors="yellow, black, blue">黄底黑字蓝链接</li>' +
533			'<li class="bywColor" colors="black, yellow, white">黑底黄字白链接</li>' +
534			'<li class="active">页面原始配色</li>' +
535			'</ul>' +
536			'</div>'+
537			'<div id="ymfd" title="当前页面已放大,快捷键Shift+6"><span>放大</span><div><i class="glyphicon glyphicon-zoom-in"></i></div></div>'+
538			'<div id="ymsx" title="当前页面已缩小,快捷键Shift+7"><span>缩小</span><div><i class="glyphicon glyphicon-zoom-out"></i></div></div>'+
539			'<div id="bigmouse" title="当前大鼠标已关闭,快捷键Shift+8"><span>大鼠标</span><div><i class="glyphicon glyphicon-send"></i></div></div>'+
540			'<div id="wzaline" title="当前辅助线已关闭,快捷键Shift+9"><span>辅助线</span><div><i class="glyphicon glyphicon-screenshot"></i></div></div>'+
541			'<div id="viewing" title="当前显示屏已关闭,快捷键Shift+0"><span>显示屏</span><div><i class="custom_platform platform-diann117"></i></div></div>'+
542			'<div onclick="setPlaySpeed(0)" title="当前语速已减缓"><span>减速</span><div><i class="glyphicon glyphicon-fast-backward"></i></div></div>'+
543			'<div onclick="setPlaySpeed(1)" title="当前语速已加快"><span>加速</span><div><i class="glyphicon glyphicon-fast-forward"></i></div></div>'+
544			'<div onclick="window.history.go(-1)" title="页面后退,快捷键Shift+P"><span>后退</span><div><i class="glyphicon glyphicon-arrow-left"></i></div></div>'+
545			'<div onclick="window.history.go(1)" title="页面前进,快捷键Shift+N"><span>前进</span><div><i class="glyphicon glyphicon-arrow-right"></i></div></div>'+
546			'<div id="fullscreen" title="网页全屏Shift+F"><span>全屏</span><div><i class="glyphicon glyphicon-fullscreen"></i></div></div>'+
547			'<div id="wzaHelp" onclick="window.open(\'/static/wza/wzaHelp.html\')" title="跳转帮助页面,快捷键Shift+问号键"><span>帮助</span><div><i class="glyphicon glyphicon-question-sign"></i></div></div>'+
548			'<div id="readScreen" onclick="toNav(0)" title="读屏已开启,快捷键Shift+R"><span>读屏</span><div><i class="custom_platform platform-work"></i></div></div>'+
549			'<div id="oldManService" onclick="toNav(1)" style="display: none" title="老人服务已开启,快捷键Shift+R"><span>老人服务</span><div><i class="custom_platform platform-Survey"></i></div></div>'+
550			'<div id="wzakg" title="退出无障碍,快捷键Shift+Q"><span>退出</span><div><i class="glyphicon glyphicon-off"></i></div></div>'+
551		'</div>'+
552	'</div>';
553
554	var viewHtml = '<div class="wza-view" id="viewBox" tabindex="-1">' +
555		'<div class="wza-view-inner" tabindex="-1">' +
556		'<div class="view-inner-l" tabindex="-1"></div>' +
557		'<div class="view-inner-r" tabindex="-1">' +
558		'<i class="platform platform-close294 closeView" tabindex="-1"></i>' +
559		'<span onclick="setFontType(0)">简</span>' +
560		'<span onclick="setFontType(1)">繁</span>' +
561		'<span onclick="setFontType(2)">拼音</span>' +
562		'</div>' +
563		'</div>' +
564			'</div>' +
565		'<div class="viewHeight" tabindex="-1"></div>';
566
567	var outLinkTipHtml = '<div id="outNetLinkTip" class="wza-tip-pop" style="display: none;">' +
568		'<br>' +
569		'<span class="onlyUseToVoice">提示:该链接属站外链接,将无法使用辅助浏览工具!</span>' +
570		'<br>' +
571		'<span class="onlyUseToVoice">是否继续访问?</span>' +
572		'<br>' +
573		'<div style="margin-top:15px">' +
574		'<input class="onlyUseToVoice" type="button" value="是" onclick="toOutNetLink(true)">' +
575		'<input class="onlyUseToVoice" type="button" value="否" onclick="toOutNetLink(false)">' +
576		'</div>' +
577		'</div>';
578
579	var voiceTipHtml = '<div id="voicePlayTip" class="wza-tip-pop" style="display: none;">' +
580		'<br><br>' +
581		'<span class="onlyUseToVoice">提示:' + (isSupportHtml5Voice?'请点击指读或连读播放语音!':'当前浏览器暂不支持HTML5语音功能<br>请尝试使用其它浏览器!') + '</span>' +
582		'<br>' +
583		'<div style="margin-top:15px">' +
584		'<input class="onlyUseToVoice" type="button" value="确定" onclick="closeVoiceTip()">' +
585		'</div>' +
586		'</div>';
587
588	$(tempdiv).prependTo('body');
589	$(viewHtml).appendTo('body');
590	$(outLinkTipHtml).appendTo('body');
591	$(voiceTipHtml).appendTo('body');
592
593	$('#cwbtd').toggle(function() {
594		$(this).addClass("active").attr("title", "当前模式为文本模式,
594快捷键Shift+V");
595		var allEle = $("#wcagnav").siblings(":not(#lineDiv, #viewBox)").find("*");
596		allEle.attr("class","").css({"text-align":"left", "background-image":"none"});
597		if($('#bigmouse').attr("class") && $('#bigmouse').hasClass("active")){
598			allEle.addClass("custom_mouse");
599		}
600		$("img").remove();
601		$.cookie('wzawid', '1',{ expires: 7, path: '/'});
602		playHandleVoice('#cwbtd');
603	}, function() {
604		$.cookie('wzawid', '0',{ expires: 7, path: '/'});
605		window.location.reload();
606		playHandleVoice('#cwbtd');
607	});
608
609	$('#ymfd').click(function() {
610		zoomValue = zoomValue + 0.1;
611		if(zoomValue > 1){
612			//基于1200的内容宽度处理
613			if(window.innerWidth >= 1200 + 1200*(zoomValue - parseInt(zoomValue))){
614				$("body").css("transform", "scale("+ zoomValue +")");
615				playHandleVoice("#ymfd");
616			}else{
617				zoomValue = zoomValue - 0.1;
618				alert("页面已经最大!");
619				if("1" == $.cookie('wzasound')){
620					play("页面已经最大!");
621				}
622			}
623		}else{
624			$("body").css("transform", "scale("+ zoomValue +")");
625		}
626		if(zoomValue == 1){
627			$('#ymfd, #ymsx').removeClass("active");
628			$("body").css("transform", "");
629		}else{
630			if(zoomValue > 1){
631				$(this).addClass("active");
632			}else{
633				$('#ymsx').addClass("active");
634			}
635		}
636		if(zoomValue != 1){
637			$(window).scrollLeft((document.body.offsetWidth*zoomValue - document.body.offsetWidth)/2);
638		}
639		$.cookie('wzaymdx', zoomValue+"",{ expires: 7, path: '/'});
640	});
641
642	$('#ymsx').click(function() {
643		zoomValue = zoomValue - 0.1;
644		if( 0.8 <= zoomValue){
645			$("body").css("transform", "scale("+ zoomValue +")");
646			playHandleVoice("#ymsx");
647		}else{
648			zoomValue = 0.8;
649			alert("页面已经最小!");
650			if("1" == $.cookie('wzasound')){
651				play("页面已经最小!");
652			}
653		}
654		if(zoomValue == 1){
655			$('#ymfd, #ymsx').removeClass("active");
656			$("body").css("transform", "");
657		}else{
658			if(zoomValue > 1){
659				$('#ymfd').addClass("active");
660			}else{
661				$(this).addClass("active");
662			}
663		}
664		if(zoomValue != 1){
665			$(window).scrollLeft((document.body.offsetWidth*zoomValue - document.body.offsetWidth)/2);
666		}
667		$.cookie('wzaymdx', zoomValue+"",{ expires: 7, path: '/'});
668	});
669
670	$('#wzacolor').mouseenter(function () {
671		$(".colors_list").show();
672	}).mouseleave(function () {
673		$(".colors_list").hide();
674	})
675	$('.colors_list li').click(function () {
676		var colorVal = $(this).attr('colors')?$(this).attr('colors').split(','):[];
677		$(this).addClass('active').siblings().removeClass('active');
678		if(colorVal.length){
679			$("body").css({"backgroundColor": colorVal[0], "transition": "background-color 0.5s"});
680			$("#wcagnav").siblings(":not(#lineDiv, #viewBox)").find("*").css({"backgroundColor": colorVal[0], "color": colorVal[1]});
681			$("#wcagnav").siblings(":not(#lineDiv, #viewBox)").find("a").css("color", colorVal[2]);
682			$('#wzacolor').addClass("active");
683			$.cookie('wzacolor', $(".colors_list .active").index()+"",{ expires: 7, path: '/'});
684		}else{
685			$("body").css({"backgroundColor": "", "transition": ""});
686			$("#wcagnav").siblings(":not(#lineDiv, #viewBox)").find("*").css({"backgroundColor": "", "color": ""});
687			$("#wcagnav").siblings(":not(#lineDiv, #viewBox)").find("a").css("color", "");
688			$('#wzacolor').removeClass("active");
689			$.cookie('wzacolor', "5",{ expires: 7, path: '/'});
690		}
691		if("1" == $.cookie('wzasound')){
692			play("调整为" + $(".colors_list .active").text() + ",快捷键Shift加5");
693		}
694	})
695
696	$('#bigmouse').click(function () {
697		$("*").toggleClass("custom_mouse");
698		$(this).toggleClass("active");
699		$(this).attr("title", (($(this).attr("class") && $(this).hasClass("active"))?"当前大鼠标已开启":"当前大鼠标已关闭") + ",快捷键Shift+8");
700		var cookVal = ($(this).attr("class") && $(this).hasClass("active"))?"1":"0";
701		$.cookie('wzamouse', cookVal,{ expires: 7, path: '/'});		
702		playHandleVoice("#bigmouse");
703	})
704
705	$('#wzaline').toggle(function() {
706		lineFunction();
707		$.cookie('wzaline', "1",{ expires: 7, path: '/'});
708		$(this).addClass("active").attr("title", "当前辅助线已开启,快捷键Shift+9");	
709		playHandleVoice("#wzaline");
710	}, function() {
711		if(document.getElementById('lineX')!=undefined){
712			document.getElementById('lineX').style.display = 'none';
713			document.getElementById('lineY').style.display = 'none';
714		}
715		document.onmousemove = "";
716		$.cookie('wzaline', "0",{ expires: 7, path: '/'});
717		$(this).removeClass("active").attr("title", "当前辅助线已关闭,快捷键Shift+9");	
718		playHandleVoice("#wzaline");
719	});
720
721	$('#viewing').click(function () {
722		$(".viewHeight, #viewBox").slideToggle();
723		$(this).toggleClass("active");
724		$(this).attr("title", (($(this).attr("class") && $(this).hasClass("active"))?"当前显示屏已开启":"当前显示屏已关闭") + ",快捷键Shift+0");
725		var cookVal = ($(this).attr("class") && $(this).hasClass("active"))?"1":"0";
726		$.cookie('wzaview', cookVal,{ expires: 7, path: '/'});
727		playHandleVoice("#viewing");
728	})
729	$('.closeView').click(function () {
730		$(".viewHeight, #viewBox").slideUp();
731		$('#viewing').removeClass("active").attr("title", "当前显示屏已关闭,快捷键Shift+0");
732		$.cookie('wzaview', "0",{ expires: 7, path: '/'});
733		playHandleVoice("#viewing");
734	})
735	$('body').find('.onlyUseToVoice').mouseenter(function () {
736		getElementText(this);
737		setFontType(window.parent.globalFontType);
738	})
739	if($('body').find('iframe').length){
740		for(var i=0; i<$('body').find('iframe').length; i++){
741			let ifrObj = $('body').find('iframe').eq(i);
742			ifrObj.load(function () {
743				ifrObj.contents().find("head").append('<link rel="stylesheet" href="' + netLocationOrigin + '/static/wza/css/wza-style.css">');
744				ifrObj.contents().find('body .onlyUseToVoice').mouseenter(function () {
745					getElementText(this);
746					setFontType(window.parent.globalFontType);
747				}).keyup(function () {
748					focusElement(this);
749				})
750			})
751		}
752	}
753
754	$("#soundswitch").click(function () {
755		if(!(toVoiceWarnTip())){
756			$("#voicePlayTip").show();
757			return false
758		}
759		// 1为开启  0为关闭
760		if('1' == $.cookie('wzasound')){
761			if($.cookie('wzaread')){
762				if(audio){
763					audio.pause();
764				}
765				$(this).attr("title", "当前声音已关闭,快捷键Shift+2").find("i").removeClass("glyphicon-volume-up").addClass("glyphicon-volume-off");
766				$.cookie('wzasound','0',{ expires: 7, path: '/'});
767			}
768			if(isHtml5Voice){
769				html5_isPlayNext = false;
770				html5_speechItems.cancel();
771			}
772		}else{
773			$(this).attr("title", "当前声音已开启,快捷键Shift+2").find("i").removeClass("glyphicon-volume-off").addClass("glyphicon-volume-up");
774			$.cookie('wzasound','1',{ expires: 7, path: '/'});
775		}
776		playHandleVoice("#soundswitch");
777	})
778
779	$('#fullscreen').click(function () {
780		if("0" == $.cookie('wzafullscreen')){
781			$(this).attr("title", "当前全屏已开启").find('span').text('退出全屏');
782			$(this).find('i').removeClass('glyphicon-fullscreen').addClass('glyphicon-resize-small');
783			toFullScreen();
784			$.cookie('wzafullscreen', "1",{ expires: 7, path: '/'});
785		}else{
786			$(this).attr("title", "当前全屏已关闭").find('span').text('全屏');
787			$(this).find('i').removeClass('glyphicon-resize-small').addClass('glyphicon-fullscreen');
788			exitFullScreen();
789			$.cookie('wzafullscreen', "0",{ expires: 7, path: '/'});
790		}
791		$(this).toggleClass("active");
792		playHandleVoice("#fullscreen");
793	})
794
795	$('#wzareset').click(function() {
796		if(isSupportHtml5Voice){
797			html5_speechItems.cancel();
798		}
799		$.cookie('wzawid',null,{ expires: 7, path: '/'});
800		$.cookie('wzaymdx',null,{ expires: 7, path: '/'});
801		$.cookie('wzacolor',null,{ expires: 7, path: '/'});
802		$.cookie('wzamouse',null,{ expires: 7, path: '/'});
803		$.cookie('wzaline',null,{ expires: 7, path: '/'});
804		$.cookie('wzaview',null,{ expires: 7, path: '/'});
805		$.cookie('wzaspeedval',null,{ expires: 7, path: '/'});
806		$.cookie('html5speedval',null,{ expires: 7, path: '/'});   //html5语音速度
807		$.cookie('html5read','0',{ expires: 7, path: '/'});   //html5语音读取方式
808		$.cookie('wzaread','0',{ expires: 7, path: '/'});
809		$.cookie('wzasound','1',{ expires: 7, path: '/'});
810		$.cookie('wzafullscreen','0',{ expires: 7, path: '/'});
811		window.location.reload();
812	});
813
814	$('#wzakg').click(function() {
815		$('#wcagnav').hide();
816		$('#wzareset').trigger("click");
817		$.cookie('wcagnav', "0",{ expires: 7, path: '/'});
818		$('body').css('transformOrigin', '');
819	});
820
821	$('#swzakg').click(function() {
822		$('#wcagnav').slideDown(function () {
823			$('body').css('transformOrigin', '0 0 0');
824			if(!$('#wcagnav').prev().length){
825				$('#wcagnav').before("<div style='height: 100px'></div>");
826			}
827			// 202509start
828			if($("div.index-content").length>0){
829		        $("div.index-content").attr("id","wzasgMainContent");
830		    }else if($("div.zwdt-index-content").length>0){
831		    	$("div.zwdt-index-content").attr("id","wzasgMainContent");
832		    }else if($("div.zwgk-index-content").length>0){
833		    	$("div.zwgk-index-content").attr("id","wzasgMainContent");
834		    }else if($("div.zmhd-index-content").length>0){
835		    	$("div.zmhd-index-content").attr("id","wzasgMainContent");
836		    }else if($("div.index-ldzc-content").length>0){
837		    	$("div.index-ldzc-content").attr("id","wzasgMainContent");
838		    }else if($("div.zdlygkmain").length>0){
839		    	$("div.zdlygkmain").attr("id","wzasgMainContent");
840		    }else if($("div.zfgb-index-content").length>0){
841		    	$("div.zfgb-index-content").attr("id","wzasgMainContent");
842		    }
843		    else {
844		        $("div.zknavcon").parent('.view2').parent().parent(".view").next().find(".list-crumb").attr("id","wzasgMainContent");
845		    }
846		
847			// 202509end
848			setTabindexVal(-9);
849			// 当h5语音初次进入无效时可放开注释
850			// if(isHtml5Voice){
851			// 	$("#voicePlayTip").show();
852			// }
853		});
854		$('body').find('.onlyUseToVoice').hover(
855			function(){
856				playVoice(this);
857			},
858			function(){
859				// stopRead(); //语音
860			}
861		);
862		$.cookie('wcagnav', "1",{ expires: 7, path: '/'});
863		var isOpenSound = $.cookie('wzasound')?$.cookie('wzasound'):'1';
864		$.cookie('wzasound',isOpenSound,{ expires: 7, path: '/'});
865		var isRead = $.cookie('wzaread')?$.cookie('wzaread'):'0';
866		$.cookie('wzaread',isRead,{ expires: 7, path: '/'});
867		if(isHtml5Voice){
868			var isH5Read = $.cookie('html5read')?$.cookie('html5read'):'0';
869			$.cookie('html5read',isH5Read,{ expires: 7, path: '/'});
870		}
871		$.cookie('wzafullscreen','0',{ expires: 7, path: '/'});
872	});
873}
874
875function playHandleVoice(el){
876	if('1' == $.cookie('wzasound')){
877		play($(el).attr("title").replace(/\+/g, "加"));
878	}
879}
880function playVoice(el) {
881	if('1' == $.cookie('wzasound')){
882		if($.cookie('wzaread')){
883			html5_isFirstPlay = true;
884			if('1' == $.cookie('wzaread')){
885				if(isSupportHtml5Voice && isHtml5Voice){
886					html5_batchVal = 1;
887					html5_isPlayNext = true;
888					html5_speechItems.cancel();
889					nextPlayObjIndex = parseInt($(el).attr("view-index"));
890					setHtml5Voice(window.parent.$(".view-inner-l").text());
891				}else{
892					readAllVoice(el); //连读
893				}
894			}else{
895				pointRead(el); //指读
896			}
897		}
898	}
899}
900
901// 速度播放 0为减速  1为加速
902function setPlaySpeed(type){
903	if(toVoiceWarnTip() && isHtml5Voice){
904		html5_rateVal = $.cookie('html5speedval')?Number(Number($.cookie('html5speedval')).toFixed(1)):1;
905		if(type){
906			html5_rateVal = (html5_rateVal + 0.4 > 10)?10:(html5_rateVal + 0.4);
907			play("当前语速已加快");
908		}else{
909			html5_rateVal = (html5_rateVal - 0.4 < 0.1)?0.1:(html5_rateVal - 0.4);
910			play("当前语速已减缓");
911		}
912		if(html5_rateVal - 0.4 < 0.1){
913			alert("已经是最慢了!");
914			if("1" == $.cookie('wzasound')){
915				play("已经是最慢了!");
916			}
917		}
918		if(html5_rateVal + 0.4 > 10){
919			alert("已经是最快了!");
920			if("1" == $.cookie('wzasound')){
921				play("已经是最快了!");
922			}
923		}
924		$.cookie('html5speedval', html5_rateVal,{ expires: 7, path: '/'});
925	}else{
926		var speedVal = $.cookie('wzaspeedval')?Number(Number($.cookie('wzaspeedval')).toFixed(1)):1;
927		var speed = type?(speedVal+0.1):(speedVal-0.1);
928		if(0.6 <= speed && speed <= 2){
929			play(type?"当前语速已加快":"当前语速已减缓");
930		}
931		if(speed < 0.6){
932			alert("已经是最慢了!");
933			speed = 0.6;
934			if("1" == $.cookie('wzasound')){
935				play("已经是最慢了!");
936			}
937		}
938		if(speed > 2){
939			alert("已经是最快了!");
940			speed = 2;
941			if("1" == $.cookie('wzasound')){
942				play("已经是最快了!");
943			}
944		}
945		if(audio){
946			audio.playbackRate = speed;
947		}
948		$.cookie('wzaspeedval', speed,{ expires: 7, path: '/'});
949	}
950}
951
952// 0为指读  1为连读  默认为0
953function readVoiceType(type) {
954	if(!(toVoiceWarnTip())){
955		$("#voicePlayTip").show();
956		return false
957	}
958	if($.cookie('wzaread')){
959		if(Number($.cookie('wzaread')) != type){
960			if(audio){ audio.pause() }
961			$(".voicereadtype").removeClass("active").eq(type).addClass("active");
962			$.cookie('wzaread', type,{ expires: 7, path: '/'});
963		}else{
964			$(".voicereadtype").removeClass("active");
965			$.cookie('wzaread', null,{ expires: 7, path: '/'});
966		}
967	}else{
968		$(".voicereadtype").eq(type).addClass("active");
969		$.cookie('wzaread', type,{ expires: 7, path: '/'});
970	}
971	if(isHtml5Voice){
972		html5_speechItems.cancel();
973		html5_batchVal = type;
974		html5_isPlayNext = type?true:false;
975		if($.cookie('html5read')){
976			if(Number($.cookie('html5read')) != type){
977				$(".voicereadtype").removeClass("active").eq(type).addClass("active");
978				$.cookie('html5read', type,{ expires: 7, path: '/'});
979			}else{
980				$(".voicereadtype").removeClass("active");
981				$.cookie('html5read', null,{ expires: 7, path: '/'});
982			}
983		}else{
984			$(".voicereadtype").eq(type).addClass("active");
985			$.cookie('html5read', type,{ expires: 7, path: '/'});
986		}
987	}
988	play("当前为"+(type?"连读":"指读")+"模式,快捷键Shift加4");
989}
990
991function browserFlag() {
992	var Sys = {};
993	var ua = navigator.userAgent.toLowerCase();
994	var s;
995	(s = ua.match(/msie ([\d.]+)/)) ? Sys.ie = s[1] :
996		(s = ua.match(/firefox\/([\d.]+)/)) ? Sys.firefox = s[1] :
997		(s = ua.match(/chrome\/([\d.]+)/)) ? Sys.chrome = s[1] :
998		(s = ua.match(/opera.([\d.]+)/)) ? Sys.opera = s[1] :
999		(s = ua.match(/version\/([\d.]+).*safari/)) ? Sys.safari = s[1] : 0;
1000	return Sys;
1001}
1002
1003$(function() {
1004	if($("#swzakg").length){
1005		// 202509start
1006		 if(checkUsePc()){				
1007				var skipNav='<a id="wzasgskipCrossNav" class="onlyUseToVoice"  href="#wzasgMainContent" title="按回车键跳过导航" ><span class="wzasgSkipFont wzanoread">跳过导航</span><span class="wzasgSkipCrossNavEnter wzanoread">按下回车</span></a>';
1008			  	$(skipNav).prependTo('body');
1009			}
1010		// 202509end
1011		if(!$("#wza_allEventSelectors").length){
1012			$("head").find("script").eq(0).before('<script id="wza_allEventSelectors" type="text/javascript" src="/sitesources/zksrmzf/theme/uxtheme10001/js/wza_allEventSelectors.js"></script>');
1013			
1014			// 专题动态处理(本网站自定义)			
1015			var rollTextVal = '';
1016			function getViewTitleText(tagEl){
1017				var isTagEl = tagEl.previousElementSibling.classList.value.indexOf("ztlist-lsit-title");
1018				if(isTagEl == -1){
1019					rollTextVal = '';
1020					getViewTitleText(tagEl.previousElementSibling);
1021				}else{
1022					rollTextVal = tagEl.previousElementSibling.innerText;				
1023				}
1024			}
1025			var wza_ztCommonObj = {
1026				roll: {type: '滚动图', objs: document.querySelectorAll(".ztlist-roll .bd>ul")}, //滚动图
1027				rollText: {type: '', objs: document.querySelectorAll(".ztlist-roll-text")}, //滚动图右侧列表
1028				dy: {type: '专题简介', objs: document.querySelectorAll(".ztlist-dy")}, //专题简介
1029				commonList: {type: '', objs: document.querySelectorAll(".ztlist-common-list>ul")}, //通用列表
1030			}
1031			var wza_zt_selectors = [];	
1032			for(var obj of Object.keys(wza_ztCommonObj)){
1033				if(wza_ztCommonObj[obj].objs.length){
1034					for(var i=0; i<wza_ztCommonObj[obj].objs.length; i++){
1035						var typeText = wza_ztCommonObj[obj].type;
1036						wza_ztCommonObj[obj].objs[i].classList.add("infoWinArea");				
1037						if(obj == "rollText"){
1038							getViewTitleText(wza_ztCommonObj[obj].objs[i].parentElement);
1039							typeText = rollTextVal?rollTextVal:"滚动图列表";
1040						}
1041						if(obj == "commonList"){
1042							typeText = wza_ztCommonObj[obj].objs[i].previousElementSibling.innerText;
1043						}					
1044						wza_zt_selectors.push({"selector": wza_ztCommonObj[obj].objs[i], "content": typeText+"视窗区"});
1045					}
1046				}
1047			}
1048			if(wza_zt_selectors.length){
1049				wza_allEventSelectors = wza_allEventSelectors.concat(wza_zt_selectors);		
1050			}
1051		}
1052		addTagClassName();  //给标签添加特定class 用于显示屏功能 并添加标注属性tabindex 用于tab键聚焦
1053		var voiceEls = $("body").find(".onlyUseToVoice");
1054		// 对view-index编号重排
1055		var vInd = 0;
1056		for(var i=0; i<voiceEls.length; i++){
1057			if('A,IMG,VIDEO,AUDIO,BUTTON,SELECT,TEXTAREA,INPUT,IFRAME,'.indexOf(voiceEls[i]["nodeName"] + ",") == -1){
1058				if(!filterTagToText(voiceEls[i])){
1059					voiceEls.eq(i).removeClass("onlyUseToVoice").removeAttr("view-index");
1060				}else{
1061					vInd = vInd+1;
1062					voiceEls.eq(i).attr("view-index", vInd);
1063				}
1064			}else{
1065				vInd = vInd+1;
1066				voiceEls.eq(i).attr("view-index", vInd);
1067			}
1068		}
1069		voiceObjs = $("body").find(".onlyUseToVoice");
1070	}
1071	if(checkUsePc()){
1072		$.cookie('wzafullscreen','0',{ expires: 7, path: '/'});
1073		initToolbar();
1074		initwza();
1075		setTabindexVal($("#wcagnav").css("display") != "none"?-9:0);
1076		if($("#wcagnav").css("display") != "none" && $.cookie('wzasound') && '1'==$.cookie('wzasound') && $("title")[0].text.length){
1077			play("已打开" + $("title")[0].text + "页面");
1078		}
1079	}else{
1080		// 移动端wza
1081		$.cookie('m_switch',$.cookie('m_switch')?$.cookie('m_switch'):'0',{ expires: 7, path: '/'}); //无障碍开关 0关 1开
1082		$.cookie('m_color',$.cookie('m_color')?$.cookie('m_color'):'0',{ expires: 7, path: '/'}); //配色 0默认 1深蓝白 2巧克力色 3黑底白字 4森林绿
1083		$.cookie('m_voice','0',{ expires: 7, path: '/'}); //阅读声音开关 0关 1开
1084		$.cookie('m_font',$.cookie('m_font')?$.cookie('m_font'):'3',{ expires: 7, path: '/'}); //字体 0特大 1较大 2适中 3默认
1085		$.cookie('m_speed',$.cookie('m_speed')?$.cookie('m_speed'):'1',{ expires: 7, path: '/'}); //语速 0(缓慢) 1(适度) 2(快速)
1086		$.cookie('m_mode',$.cookie('m_mode')?$.cookie('m_mode'):'1',{ expires: 7, path: '/'}); //模式 0指读 1连读
1087		initMobileToolbar();
1088		setTabindexVal(0);
1089		voiceObjs.click(function(){
1090			if($.cookie('m_switch') == '1' && $.cookie('m_voice') == '1'){
1091				if($(this)[0] != $(".mobile_focus")[0]){
1092					$(".mobile_focus").removeClass("mobile_focus");
1093				}
1094				$(this).toggleClass("mobile_focus");
1095				if($(this).attr("class").indexOf("mobile_focus") != -1){
1096					getElementText(this);
1097					if($.cookie('m_mode') == '0'){
1098						pointRead();
1099					}else{
1100						html5_speechItems.cancel();
1101						readAllVoice(this);
1102					}
1103					return false;
1104				}else{
1105					cancelVoicePlay();
1106				}
1107			}
1108		})
1109	}
1110});
1111
1112// 全屏方法
1113function toFullScreen() {
1114	var element = document.documentElement;
1115	if (element.requestFullscreen) {
1116		element.requestFullscreen();
1117	} else if (element.msRequestFullscreen) {
1118		element.msRequestFullscreen();
1119	} else if (element.mozRequestFullScreen) {
1120		element.mozRequestFullScreen();
1121	} else if (element.webkitRequestFullscreen) {
1122		element.webkitRequestFullscreen();
1123	}
1124}
1125function exitFullScreen() {
1126	if (document.exitFullscreen) {
1127		document.exitFullscreen();
1128	} else if (document.msExitFullscreen) {
1129		document.msExitFullscreen();
1130	} else if (document.mozCancelFullScreen) {
1131		document.mozCancelFullScreen();
1132	} else if (document.webkitExitFullscreen) {
1133		document.webkitExitFullscreen();
1134	}
1135}
1136
1137//字体样式  注:window.parent是处理页面嵌有iframe的情况
1138var globalFontType = 0;  //0简体 1繁体 2拼音
1139var isFtFont = false;
1140function setFontType(type) {
1141	var viewInnerL = window.parent.$(".view-inner-l");
1142	var words = viewInnerL.text().replace(/ /g, "");
1143	var wordArr = words.split('');
1144	var str='', ss=JTPYStr(), tt=FTPYStr();
1145	var pinyinArr = getWordPinYin(words).split(",");
1146	if(typeof(type) != 'undefined'){
1147		window.parent.globalFontType = type;
1148	}
1149	if(viewInnerL.find(".wordItemPy").length){
1150		viewInnerL.find(".wordItemPy").find("i:first-child").remove();
1151		words = viewInnerL.text();
1152	}
1153	for(var i=0;i<words.length;i++){
1154		if(window.parent.globalFontType == 0){  //简体
1155			window.parent.isFtFont = false;
1156			if(words.charCodeAt(i)>10000 && tt.indexOf(words.charAt(i))!=-1){
1157				str+=ss.charAt(tt.indexOf(words.charAt(i)));
1158			}else{
1159				str+=words.charAt(i);
1160			}
1161		}
1162		if(window.parent.globalFontType == 1){  //繁体
1163			window.parent.isFtFont = true;
1164			if(words.charCodeAt(i)>10000 && ss.indexOf(words.charAt(i))!=-1){
1165				str+=tt.charAt(ss.indexOf(words.charAt(i)));
1166			}else{
1167				str+=words.charAt(i);
1168			}
1169		}
1170		if(window.parent.globalFontType == 2){  //拼音
1171			var item = tt.indexOf(wordArr[i]) != -1?ss.charAt(tt.indexOf(wordArr[i])):wordArr[i]; //繁体先转简体 再获取拼音
1172			var itemFont = (window.parent.isFtFont && ss.indexOf(wordArr[i]) != -1)?tt.charAt(ss.indexOf(wordArr[i])):wordArr[i]; //繁体转拼音时 保留繁体状态
1173			// str += '<div class="wordItemPy"><div class="itemPy">'+(convertToPinyin(item)?convertToPinyin(item):item)+'</div><div class="itemFont">'+itemFont+'</div></div>';
1174			str += '<div class="wordItemPy"><b><i>'+(pinyinArr[i]?pinyinArr[i]:item)+'</i><i>'+itemFont+'</i></b></div>';
1175		}
1176	}
1177	if(window.parent.globalFontType == 2){
1178		viewInnerL.html(str);
1179	}else{
1180		viewInnerL.text(str);
1181	}
1182}
1183
1184// 外链接处理 附弹窗提醒
1185window.onmousedown = function(event){
1186	if(checkUsePc() && $("#wcagnav").css("display") != "none"){
1187		event.stopPropagation();
1188		if(event.target != $(".cloneTabKeySelStyle")[0]){
1189			$(".cloneTabKeySelStyle").attr("tabindex", "0").removeClass("cloneTabKeySelStyle");
1190		}
1191		if(event.target.nodeName == 'a' || event.target.nodeName == 'A'){
1192			checkIsOutLink(event.target);
1193		}else{
1194			checkIsAChild(event.target);
1195		}
1196		if(!$(event.target).parents("#wcagnav").length){
1197			// focusElement(event.target);
1198			$(event.target).focus();
1199		}
1200		//区域选中
1201		selectAreaObj(event.target);
1202	}
1203}
1204// 检查是否为a元素的子级
1205function checkIsAChild(el){
1206	if(el.parentNode){
1207		if(el.parentNode.nodeName == 'a' || el.parentNode.nodeName == 'A'){
1208			checkIsOutLink(el.parentNode);
1209		}else{
1210			checkIsAChild(el.parentNode);
1211		}
1212	}
1213}
1214// 过滤url地址
1215function filterUrlAndTip(str) {
1216	if(str.length){
1217		var strArr = str.replace(/\r/g, "").replace(/\n/g, "").replace(/\t/g, "").replace(/"/g, "'").split("'");
1218		for (var s=0; s<strArr.length; s++){
1219			if(/^((https|http|ftp|rtsp|mms)?:\/\/)[^\s]+/.test(strArr[s])){
1220				document.getElementById("outNetLinkTip").style.display = "block";
1221				break;
1222			}
1223		}
1224	}
1225}
1226// 检查是否为外链接
1227function checkIsOutLink(el){
1228	var hrefHost = el.host;
1229	var netHost = window.location.host;
1230	// if(hrefHost){
1231		var attrClick = $(el).attr("onclick");
1232	// 	var eventClick = $._data($(el).get(0), "events")["click"];
1233	// 	filterUrlAndTip(attrClick || (eventClick?(eventClick[0].handler + ''):''));
1234	// }else{
1235		if(hrefHost.length && hrefHost !== netHost && !attrClick){
1236			outNetLink = el.href;
1237			isNewWidOpenLink = el.getAttribute("target")?el.getAttribute("target"):'_blank';
1238			el.setAttribute("onclick", "return false");
1239			if(checkUsePc()){
1240				document.getElementById("outNetLinkTip").style.display = "block";
1241			}
1242		}
1243	// }
1244}
1245// 打开外链接
1246function toOutNetLink(isOpen){
1247	if(isOpen){
1248		if(isNewWidOpenLink === '_blank'){
1249			window.open(outNetLink);			 //新页面打开
1250		}else{
1251			window.location.href = outNetLink;   //当前页打开
1252		}
1253	}
1254	$("[href='"+outNetLink+"']").removeAttr("onclick");
1255	document.getElementById("outNetLinkTip").style.display = "none";
1256	outNetLink = '';
1257}
1258//关闭H5语音提示
1259function closeVoiceTip() {
1260	$("#voicePlayTip").hide();
1261	if(isSupportHtml5Voice){
1262		readVoiceType(0);
1263	}
1264	for(var i=0; i<$("body").find("[tabindex=0]").length; i++){
1265		if(!$("body").find("[tabindex=0]").eq(i).parents("*:hidden").length){
1266			$(".tabKeySelStyle").removeClass("tabKeySelStyle");
1267			$("body").find("[tabindex=0]").eq(i).focus().addClass("tabKeySelStyle");
1268			break;
1269		}
1270	}
1271}
1272//处理Slide滚动聚焦
1273function cloneSlideElements(el, addSeat){
1274	var cloneObj = el.clone();
1275	var liW = cloneObj.width()/cloneObj.find("li").length;
1276	cloneObj.addClass("cloneSlideObj").css({"width": "auto", "left"
1276: 0}).find(".clone").remove();
1277	cloneObj.css("width", (cloneObj.find("li").length)*liW + "px");
1278	cloneObj.find(".onlyUseToVoice").mouseenter(function () {
1279		getElementText(this);
1280		setFontType(window.parent.globalFontType);
1281	}).hover(function(){
1282			playVoice(this);
1283	});
1284	if(addSeat){
1285		cloneObj.find("li:last-child").find("[tabindex=0]").attr("tabindex", "-1").addClass("cloneTabKeySelStyle");
1286		el.hide().parent().prepend(cloneObj);
1287		$(el).parents(".tempWrap").scrollLeft($(cloneObj).width());
1288	}else{
1289		cloneObj.find("li:first-child").find("[tabindex=0]").attr("tabindex", "-1").addClass("cloneTabKeySelStyle");
1290		el.hide().parent().append(cloneObj);
1291	}
1292}
1293function calcCloneElementSeat(el) {
1294	var cellW = $(el).parents(".cloneSlideObj").width()/$(el).parents(".cloneSlideObj").find("li").length;
1295	var visNum = parseInt(($(el).parents(".tempWrap").width())/cellW );
1296	if($(el).parents("li").index() + 1 > visNum){
1297		$(el).parents(".tempWrap").scrollLeft( ($(el).parents("li").index() + 1 - visNum)*cellW );
1298	}
1299}
1300//设置tabindex
1301function setTabindexVal(val, els) {
1302	var val = val;
1303	var tabindexEls = els?els.find("[tabindex="+ (val||0) +"]"):$("body").find("[tabindex="+ (val||0) +"]");
1304	for(var i = 0; i<tabindexEls.length; i++){
1305		tabindexEls.eq(i).attr("tabindex", (val?0:-9));
1306	}
1307	var iframeEls = els?els.find("iframe"):$("body").find("iframe");
1308	if(iframeEls.length){
1309		for(var j = 0; j<iframeEls.length; j++){
1310			let ifrBody = iframeEls.eq(j);
1311			ifrBody.load(function () {
1312				setTabindexVal((val||0), ifrBody.contents().find("body"));
1313			})
1314			setTabindexVal((val||0), ifrBody.contents().find("body"));
1315		}
1316	}
1317}
1318
1319// 读屏-暂不考虑iframe情况
1320function toNav(type) {
1321	html5_speechItems.cancel();
1322	if(type){
1323		$("#readScreenWids, #oldManService").hide();
1324		$("#wcagnav	.wza-input-area>div:not(#readScreenWids, #oldManService)").show();
1325		play("老人服务已开启,快捷键Shift加R");
1326	}else{
1327		var navNum = setAreaTabindex('nav'),
1328		infoNum = setAreaTabindex('info'),
1329		interactionNum = setAreaTabindex('interaction'),
1330		serviceNum = setAreaTabindex('service'),
1331		listNum = setAreaTabindex('list'),
1332		articleNum = setAreaTabindex('article');
1333		var areaText = "";
1334		if(navNum || infoNum || interactionNum || serviceNum || listNum || articleNum){
1335			areaText = "本页面是由" + (navNum?(navNum + "个导航区、"):"") + (infoNum?(infoNum + "个视窗区、"):"") + (interactionNum?(interactionNum + "个交互区、"):"") + (serviceNum?(serviceNum + "个服务区、"):"") + (listNum?(listNum + "个列表区、"):"") + (articleNum?(articleNum + "个正文区、"):"") + "共计" + (navNum + infoNum + interactionNum + serviceNum + listNum + articleNum) + "个区域组成"
1336		}
1337		if(areaText.length){
1338			play("读屏已开启,快捷键Shift加R," + areaText);
1339		}
1340		$("#wcagnav	.wza-input-area>div:not(#soundswitch, #wzaHelp, #viewing, #wzakg)").hide();
1341		$("#readScreenWids, #oldManService").show();
1342	}
1343}
1344function setAreaTabindex(winName) {
1345	var widEls = $("body").find("." + winName + "WinArea");
1346	var widElsLength = widEls.length;
1347	widEls.attr("tabindex", 0);
1348	for(var i=0; i<widEls.length; i++){
1349		if(widEls.eq(i).css("display") == "none"){	
1350			var isHideWid = false;
1351			for(var areaItem of wza_allEventSelectors){
1352				if($(areaItem.tabContentSelector)[0] == widEls[i]){
1353					isHideWid = true;
1354					break;
1355				}
1356			}			
1357			if(!isHideWid){
1358				--widElsLength;
1359				widEls.eq(i).removeClass(winName + "WinArea");
1360			}
1361		}
1362	}
1363	$("#" + winName + "Num").text(widElsLength).parents(".toolbarTexts").attr("style", widElsLength?"":"opacity: 0.5; pointer-events: none;");
1364	return widElsLength;
1365}
1366function getAreaElement(winName, nInd) {
1367	var els = $("." + winName + "WinArea");
1368	var nextInd = nInd?nInd:0;
1369	if($(".winAreaSelStyle").length && !nInd){
1370		var prevTabInd = $(".winAreaSelStyle").index("." + winName + "WinArea");
1371		nextInd = els.eq(prevTabInd + 1).length?(prevTabInd + 1):0;
1372		$(".winAreaSelStyle").removeClass("winAreaSelStyle");
1373		els.eq(nextInd).addClass("winAreaSelStyle");
1374	}else{
1375		$(".winAreaSelStyle").removeClass("winAreaSelStyle");
1376		els.eq(nInd?nInd:0).addClass("winAreaSelStyle");
1377	}
1378	var seatMark = setTimeout(function(){
1379		$("html,body").scrollTop(els.eq(nextInd).offset().top - 120);		
1380	}, 500)
1381	els.eq(nextInd).focus();
1382	showAreaAndPlayVoice(els[nextInd]);
1383	clearTimeout(seatMark);
1384}
1385function selectAreaObj(el) {
1386	var el = $(el);
1387	if(el.attr("class") && el.attr("class").length && (el.hasClass("navWinArea") || el.hasClass("infoWinArea") || el.hasClass("interactionWinArea") || el.hasClass("serviceWinArea") || el.hasClass("listWinArea") || el.hasClass("articleWinArea"))){
1388		$(".winAreaSelStyle").removeClass("winAreaSelStyle");
1389		el.addClass("winAreaSelStyle");
1390	}else{
1391		try{
1392			["navWinArea", "infoWinArea", "interactionWinArea", "serviceWinArea", "listWinArea", "articleWinArea"].forEach(function (item) {
1393				if(el.parents("." + item).length){
1394					$(".winAreaSelStyle").removeClass("winAreaSelStyle");
1395					el.parents("." + item).eq(0).addClass("winAreaSelStyle");
1396					throw new Error("error");
1397				}else{
1398					if(!el.parents("#wcagnav").length){
1399						$(".winAreaSelStyle").removeClass("winAreaSelStyle");
1400					}
1401				}
1402			})
1403		}catch(e){}
1404	}
1405	if($(".winAreaSelStyle").length){
1406		if($(".tabKeySelStyle").length && !$(".winAreaSelStyle").find(".tabKeySelStyle").length){
1407			$(".tabKeySelStyle").removeClass("tabKeySelStyle");
1408		}
1409		for(var item of wza_allEventSelectors){
1410			if($(".winAreaSelStyle")[0] == $(item.tabContentSelector)[0]){
1411				if(floatWidElementObj && $(item.tabContentSelector).parents(floatWidElementObj).length){
1412					floatTagChildObj = item.tabSelector;
1413					floatWidChildObj = item.tabContentSelector;					
1414				}else{
1415					floatTagElementObj = item.tabSelector;
1416					floatWidElementObj = item.tabContentSelector;					
1417				}
1418				break;
1419			}
1420		}
1421	}
1422}
1423function showAreaAndPlayVoice(areaObj) {
1424	html5_speechItems.cancel();
1425	if($(areaObj).hasClass("listWinArea") || $(areaObj).hasClass("articleWinArea")){
1426		var linkNum = $(areaObj).find("a").length;
1427		if('1' == $.cookie('wzasound')){
1428			play("您已进入" + ($(areaObj).hasClass("listWinArea")?"列表区":"正文区") + (linkNum?(", 本区域含有" + linkNum + "个链接"):""));
1429		}
1430	}else{
1431		if(wza_allEventSelectors && wza_allEventSelectors.length){
1432			try{
1433				wza_allEventSelectors.forEach(function (item) {
1434					if($(item.selector)[0] == areaObj){
1435						//根据内容查找tab标题并触发事件
1436						wza_allEventSelectors.forEach(function (eventEl) {
1437							if($(eventEl.tabContentSelector)[0] == areaObj){
1438								$(eventEl.selector).trigger(eventEl.tabShowEvent);
1439								selectAreaObj(areaObj);
1440							}
1441						})
1442						var linkNum = $(areaObj).find("a").length;
1443						if('1' == $.cookie('wzasound')){
1444							play("您已进入" + item.content + (linkNum?(", 本区域含有" + linkNum + "个链接"):""));
1445						}
1446						throw new Error("error");
1447					}
1448				})
1449			} catch (e) {}
1450		}
1451	}
1452}
1453
1454// 元素聚焦
1455var mouseoverElementObj = null; //暂存mouseover元素
1456var mouseenterElementObj = null; //暂存mouseenter元素
1457var clickElementObj = null; //暂存click元素
1458var clickElementObjContent = null; //暂存click元素
1459var cssHoverElementObj = null; //暂存cssHover元素
1460var isFloatWidElement = false; //是否tab浮动窗口
1461var floatTagElementObj = null; //浮动窗口标签
1462var floatWidElementObj = null; //浮动窗口
1463var isFocusFloatWid = false; //是否聚焦浮动窗口
1464var isOverFocusFloatWid = false; //是否完成浮动窗口内元素循环
1465var floatTagChildObj = null;
1466var floatWidChildObj = null;
1467function focusElement(el, isReverse){
1468	var el = el;
1469	var otherText = ""; //语音其他附加文本
1470	// 处理页面交互元素
1471	var isMouseoverEvent = false; //是否存在mouseover事件
1472	var isMouseenterEvent = false; //是否存在mouseenter事件
1473
1474	// wza_allEventSelectors 网站交互事件全局变量
1475	// selector 触发事件的元素
1476	// tabSelector tab键选中的元素
1477	// tabShowEvent 触发的事件
1478	// tabContentSelector 触发事件显示的内容元素块
1479	if($("#wcagnav").css("display") != "none"){
1480		if(floatWidElementObj){
1481			if(isFocusFloatWid){
1482				if(isOverFocusFloatWid){
1483					isFocusFloatWid = false;
1484					isOverFocusFloatWid = false;
1485					if($(".winAreaSelStyle")[0] == $(floatWidChildObj)[0]){
1486						for(var tabItem of wza_allEventSelectors){
1487							if(tabItem.tabSelector == floatTagChildObj){
1488								if(!tabItem.isLastTab){
1489									el = $(floatTagChildObj)[0];
1490								}else{
1491									for(var parentItem of wza_allEventSelectors){
1492										if(parentItem.tabContentSelector && $(tabItem.tabSelector).parents(parentItem.tabContentSelector).length){
1493											if($(parentItem.tabContentSelector).find("[tabindex=0]")[$(parentItem.tabContentSelector).find("[tabindex=0]").length-1] == $(".tabKeySelStyle")[0] && !parentItem.isLastTab){
1494												el = $(parentItem.tabSelector)[0];
1495											}
1496											break;
1497										}
1498									}
1499								}
1500								break;
1501							}
1502						}
1503					}
1504					if($(".winAreaSelStyle")[0] == $(floatWidElementObj)[0]){
1505						for(var tabItem of wza_allEventSelectors){
1506							if(tabItem.tabSelector == floatTagElementObj){
1507								if(!tabItem.isLastTab){
1508									el = $(floatTagElementObj)[0];									
1509								}
1510								break;
1511							}
1512						}
1513					}
1514				}else{
1515					if($(".winAreaSelStyle")[0] == $(floatWidChildObj)[0]){
1516						if(!$(floatWidChildObj).find(".tabKeySelStyle").length){
1517							el = $(floatWidChildObj).find("[tabindex=0]")[0];							
1518						}
1519						if($(floatWidChildObj).find("[tabindex=0]")[$(floatWidChildObj).find("[tabindex=0]").length-1] == el){
1520							isOverFocusFloatWid = true;
1521						}
1522					}
1523					if($(".winAreaSelStyle")[0] == $(floatWidElementObj)[0]){
1524						if(!$(floatWidElementObj).find(".tabKeySelStyle").length){
1525							el = $(floatWidElementObj).find("[tabindex=0]")[0];							
1526						}
1527						if($(floatWidElementObj).find("[tabindex=0]")[$(floatWidElementObj).find("[tabindex=0]").length-1] == el){
1528							isOverFocusFloatWid = true;
1529						}
1530					}
1531				}
1532				$(el).focus();
1533			}else{
1534				if($(".winAreaSelStyle")[0] == $(floatWidChildObj)[0]){
1535					floatTagChildObj = null;
1536					floatWidChildObj = null;					
1537				}
1538				if($(".winAreaSelStyle")[0] == $(floatWidElementObj)[0]){
1539					floatTagElementObj = null;
1540					floatWidElementObj = null;					
1541				}
1542			}
1543		}
1544		if($(".mouseoverElement").length && !$(el).parents(mouseoverElementObj).length){
1545			$(mouseoverElementObj).trigger("mouseout");
1546			$(".mouseoverElement").removeClass("mouseoverElement");
1547		}
1548		if($(".mouseenterElement").length && !$(el).parents(mouseenterElementObj).length){
1549			$(mouseenterElementObj).trigger("mouseleave");
1550			$(".mouseenterElement").removeClass("mouseenterElement");
1551		}
1552		if($(".cssHoverElement").length && !$(el).parents(cssHoverElementObj).length){
1553			$(".cssHoverElement").removeAttr("style").removeClass("cssHoverElement");
1554		}
1555		if(el != $(".cloneTabKeySelStyle")[0]){
1556			$(".cloneTabKeySelStyle").attr("tabindex", "0").removeClass("cloneTabKeySelStyle");
1557		}
1558		if($(".cloneSlideObj").length && ($(el).parents(".cloneSlideObj").length || $(".cloneTabKeySelStyle").parents(".cloneSlideObj").length)){
1559			calcCloneElementSeat($(".cloneTabKeySelStyle")[0] || el);
1560			$(".cloneTabKeySelStyle").attr("tabindex", "0").removeClass("cloneTabKeySelStyle");
1561		}else{
1562			$(".cloneSlideObj").siblings("ul").show().parent().scrollLeft(0);
1563			$(".cloneSlideObj").remove();
1564		}
1565		if(wza_allEventSelectors && wza_allEventSelectors.length){
1566			try {
1567				wza_allEventSelectors.forEach(function (item) {
1568					if(item.tabContentSelector && !item.isDropMenu){
1569						if(el == $(item.tabSelector)[0]){
1570							isFloatWidElement = true;
1571							if(item.isHasChildSelector){
1572								for(var child of wza_allEventSelectors){
1573									if($(item.tabContentSelector).find(child.tabSelector).length){
1574										floatTagChildObj = child.tabSelector;
1575										floatWidChildObj = child.tabContentSelector;
1576										break;
1577									}
1578								}
1579							}else{
1580								for(var parent of wza_allEventSelectors){
1581									if(parent.tabContentSelector && $(item.tabSelector).parents(parent.tabContentSelector).length){
1582										floatTagChildObj = item.tabSelector;
1583										floatWidChildObj = item.tabContentSelector;
1584										break;
1585									}else{
1586										floatTagChildObj = null;
1587										floatWidChildObj = null;									
1588									}
1589								}
1590							}
1591							if(floatWidElementObj && $(item.tabSelector).parents(floatWidElementObj).length){
1592								floatTagChildObj = item.tabSelector;
1593								floatWidChildObj = item.tabContentSelector;
1594							}else{				
1595								floatTagElementObj = item.tabSelector;
1596								floatWidElementObj = item.tabContentSelector;			
1597							}
1598						}else{
1599							isFloatWidElement = false;
1600							if($(item.tabContentSelector).find($(el)).length){						
1601								isFocusFloatWid = true;
1602								if($(item.tabContentSelector).find("[tabindex=0]")[$(item.tabContentSelector).find("[tabindex=0]").length-1] == el){
1603									isOverFocusFloatWid = true;
1604								}
1605								if(item.isHasChildSelector){
1606									floatTagElementObj = item.tabSelector;
1607									floatWidElementObj = item.tabContentSelector;
1608									for(var child of wza_allEventSelectors){
1609										if($(item.tabContentSelector).find(child.tabSelector).length){
1610											floatTagChildObj = child.tabSelector;
1611											floatWidChildObj = child.tabContentSelector;	
1612											break;
1613										}
1614									}								
1615								}else{
1616									for(var parent of wza_allEventSelectors){
1617										if(parent.tabContentSelector && $(item.tabSelector).parents(parent.tabContentSelector).length){
1618											floatTagElementObj = parent.tabSelector;
1619											floatWidElementObj = parent.tabContentSelector;											
1620											floatTagChildObj = item.tabSelector;
1621											floatWidChildObj = item.tabContentSelector;
1622											break;
1623										}else{
1624											floatTagElementObj = item.tabSelector;
1625											floatWidElementObj = item.tabContentSelector;											
1626											floatTagChildObj = null;
1627											floatWidChildObj = null;									
1628										}
1629									}
1630								}
1631							}
1632						}
1633					}else{
1634						isFloatWidElement = false;						
1635					}
1636					if(item.slideSelector && $(el).parents(item.slideSelector).length && !$(".cloneSlideObj").length){
1637						cloneSlideElements($(el).parents(".tempWrap>ul"), isReverse);
1638					}
1639					if($(item.tabSelector)[0] === el || $(item.tabSelector).find($(el)).length || ($(item.tabContentSelector).find($(el)).length && !item.isHasChildSelector)){
1640						if(item.handleTip && item.handleTip.length && $(item.tabSelector)[0] === el){
1641							otherText = item.handleTip;
1642						}
1643						if(item.tabShowEvent.split(",").length){
1644							(item.tabShowEvent.split(",")).forEach(function (itemEvent) {
1645								if(!item.isEsc){
1646									if(item.isHover){
1647										cssHoverElementObj = item.selector;
1648										$(item.tabContentSelector).addClass("cssHoverElement");
1649										if(itemEvent.trim() == 'mouseover'){
1650											$(item.selector).mouseover(function () {
1651												$(item.tabContentSelector).attr("style", item.hoverCss);
1652											})
1653										}
1654										if(itemEvent.trim() == 'mouseenter'){
1655											$(item.selector).mouseenter(function () {
1656												$(item.tabContentSelector).attr("style", item.hoverCss);
1657											})
1658										}
1659									}
1660									$(item.selector).trigger(itemEvent.trim());
1661									if(itemEvent.trim() == 'mouseover'){
1662										isMouseoverEvent = true;
1663										mouseoverElementObj = item.selector;
1664									}
1665									if(itemEvent.trim() == 'mouseenter'){
1666										isMouseenterEvent = true;
1667										mouseenterElementObj = item.selector;
1668									}
1669								}else{
1670									if(itemEvent.trim() == 'mouseover'){
1671										mouseoverElementObj = item.selector;
1672										$(event.target).addClass("mouseoverElement");
1673									}
1674									if(itemEvent.trim() == 'mouseenter'){
1675										mouseenterElementObj = item.selector;
1676										$(event.target).addClass("mouseenterElement");
1677									}
1678									if(itemEvent.trim() == 'click'){
1679										clickElementObj = item.selector;
1680										clickElementObjContent = item.tabContentSelector || null;
1681									}
1682								}
1683							})
1684						}
1685						throw new Error("error");
1686					}
1687				})
1688			} catch (e) {}
1689		}
1690
1691		$(".tabKeySelStyle").removeClass("tabKeySelStyle");
1692		if($("body").find("iframe").length){
1693			for(var i=0; i<$("body").find("iframe").length; i++){
1694				$("body").find("iframe").eq(i).contents().find(".tabKeySelStyle").removeClass("tabKeySelStyle");
1695			}
1696		}
1697		getElementText(el, otherText, isFloatWidElement);
1698		$(el).addClass("tabKeySelStyle " + (isMouseoverEvent?"mouseoverElement":"") + " " + (isMouseenterEvent?"mouseenterElement":""));
1699		selectAreaObj(el);
1700		playVoice(el);
1701	}
1702}
1703
1704// 键盘事件
1705window.onkeyup = function(event){
1706	if($("#wcagnav").css("display") != "none"){
1707		var event = event || window.event;
1708		var isShift = event.shiftKey;
1709		// var isCtrl = event.ctrlKey;
1710		var isAlt = event.altKey;
1711		if(event.keyCode == 9 && !isShift){  //tab键
1712			focusElement(event.target);
1713		}
1714		if(event.keyCode == 13){ //enter键
1715			if(outNetLink){
1716				toOutNetLink(true);
1717			}else{
1718				if(wza_allEventSelectors && wza_allEventSelectors.length){
1719					try {
1720						wza_allEventSelectors.forEach(function (item) {
1721							if($(item.tabSelector)[0] === $(".tabKeySelStyle")[0]){
1722								if(item.isEsc){
1723									if(item.tabShowEvent.split(",").length){
1724										(item.tabShowEvent.split(",")).forEach(function (itemEvent) {
1725											var eventObj = itemEvent.trim();
1726											if(eventObj == 'mouseover' || eventObj == 'mouseenter' || (eventObj == 'click' && clickElementObjContent && $(clickElementObjContent).is(":hidden"))){
1727												$(item.selector).trigger(eventObj);
1728											}
1729											if(eventObj == 'mouseover'){
1730												mouseoverElementObj = item.selector;
1731												$(event.target).addClass("mouseoverElement");
1732											}
1733											if(eventObj == 'mouseenter'){
1734												mouseenterElementObj = item.selector;
1735												$(event.target).addClass("mouseenterElement");
1736											}
1737											if(eventObj == 'click'){
1738												clickElementObj = item.selector;
1739											}
1740										})
1741									}
1742								}
1743								throw new Error("error");
1744							}
1745						})
1746					} catch (e) {}
1747				}
1748			}
1749		}
1750		if(event.keyCode == 32){ //空格键
1751			if(floatTagChildObj && event.target == $(floatTagChildObj)[0]){
1752				getAreaElement("info", $(floatWidChildObj).index(".infoWinArea"));
1753				isFocusFloatWid = true;
1754			}
1755			if(floatTagElementObj && event.target == $(floatTagElementObj)[0]){
1756				getAreaElement("info", $(floatWidElementObj).index(".infoWinArea"));
1757				isFocusFloatWid = true;
1758			}
1759		}
1760		if(event.keyCode == 27){ //esc键
1761			if(floatTagChildObj && floatWidChildObj && $(event.target).parents(floatWidChildObj).length && $(event.target).parents(floatWidElementObj).length){
1762				$(floatTagChildObj).focus();
1763				isFloatWidElement = true;
1764				isFocusFloatWid = false;
1765				isOverFocusFloatWid = false;
1766				focusElement($(floatTagChildObj)[0]);
1767			}
1768			if(floatTagElementObj && floatWidElementObj && $(event.target).parents(floatWidElementObj).length && ((floatWidChildObj && !$(event.target).parents(floatWidChildObj).length) || !floatWidChildObj)){
1769				$(floatTagElementObj).focus();
1770				isFloatWidElement = true;
1771				isFocusFloatWid = false;
1772				isOverFocusFloatWid = false;
1773				focusElement($(floatTagElementObj)[0]);
1774			}
1775			if($(".mouseoverElement").length && $(event.target).parents(mouseoverElementObj).length){
1776				$(mouseoverElementObj).trigger("mouseout");
1777				$(".mouseoverElement").removeClass("mouseoverElement");
1778			}
1779			if($(".mouseenterElement").length && $(event.target).parents(mouseenterElementObj).length){
1780				$(mouseenterElementObj).trigger("mouseleave");
1781				$(".mouseenterElement").removeClass("mouseenterElement");
1782			}
1783			if(($(event.target).parents(clickElementObj).length || $(event.target).parents(clickElementObjContent).length) && clickElementObjContent && !$(clickElementObjContent).is(":hidden")){
1784				$(clickElementObj).trigger("click");
1785				if($(clickElementObj).attr("tabindex") && $(clickElementObj).attr("tabindex") == 0){
1786					focusElement($(clickElementObj)[0]);					
1787				}else{
1788					focusElement($(clickElementObj).find("[tabindex=0]")[0]);
1789				}
1790			}
1791		}
1792		if(isShift){
1793			switch(event.keyCode){
1794				case 9:
1795					var prevElInd = $(event.target).index("[tabindex]");
1796					focusElement($("[tabindex]")[prevElInd], true);
1797					break;
1798				case 191: window.open('/static/wza/wzaHelp.html'); break;
1799				case 81: $('#wzakg').trigger("click"); break;
1800				case 86: $('#cwbtd').trigger("click"); break;
1801				case 70: $('#fullscreen').trigger("click"); break;
1802				case 80: window.history.go(-1); break;
1803				case 78: window.history.go(1); break;
1804				case 48: $('#viewing').trigger("click"); break;
1805				case 49: $('#wzareset').trigger("click"); break;
1806				case 50: $('#soundswitch').trigger("click"); break;
1807				case 51: console.log('组合键:Shift+3----语速'); break;
1808				case 52:
1809					var readTypeVal = $.cookie('wzaread')?(Number($.cookie('wzaread'))?0:1):0;
1810					if(isHtml5Voice){
1811						readTypeVal = $.cookie('html5read')?(Number($.cookie('html5read'))?0:1):0;
1812					}
1813					readVoiceType(readTypeVal);
1814					break;
1815				case 53:
1816					var colorInd = $('.colors_list li.active').index() == 5?0:$('.colors_list li.active').index();
1817					$('.colors_list li').eq(colorInd).trigger("click");
1818					break;
1819				case 54: $('#ymfd').trigger("click"); break;
1820				case 55: $('#ymsx').trigger("click"); break;
1821				case 56: $('#bigmouse').trigger("click"); break;
1822				case 57: $('#wzaline').trigger("click"); break;
1823				case 82:
1824					var navEl = $("#readScreen").css("display") != "none"?$("#readScreen"):$("#oldManService");
1825					navEl.trigger("click");
1826					break;
1827			}
1828		}
1829		if(isAlt){
1830			switch(event.keyCode){
1831				case 49: getAreaElement('nav'); break;
1832				case 50: getAreaElement('info'); break;
1833				case 51: getAreaElement('interaction'); break;
1834				case 52: getAreaElement('service'); break;
1835				case 53: getAreaElement('list'); break;
1836				case 54: getAreaElement('article'); break;
1837				// 小键盘数字
1838				case 97: getAreaElement('nav'); break;
1839				case 98: getAreaElement('info'); break;
1840				case 99: getAreaElement('interaction'); break;
1841				case 100: getAreaElement('service'); break;
1842				case 101: getAreaElement('list'); break;
1843				case 102: getAreaElement('article'); break;
1844			}
1845		}
1846	}
1847}

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.