PageSourceSearch

https://www.ciie.org/resource/static/zbh/default/assets-2019/plugin/jhelper_V2.0/ciie/jhelper_config.js

js ciie.org collected 2026-10-02 03:07:34 UTC 9,507 bytes, 295 lines download raw bytes

1//------------------------------------------------------------------------------------
2//无障碍快捷键及工具条调用JS
3//Version:V2.0
4//Author:angin
5//Date:2021-05-25
6//------------------------------------------------------------------------------------
7
8function declareConfig () {
9    //JHelperConfig.mainBox = "container";
10    JHelperConfig = {
11        //定义网页body里面最外层DIV ID,多个时自动body下第一个
12        get mainBox () {
13            var conids = ["container", "main-container"];
14            try {
15                for (var coni = 0; coni < conids.length; coni++) {
16                    if (jQuery("body>#" + conids[coni]).length > 0)
17                        return conids[coni];
18                }
19            }
20            catch (ex) { }
21            return conids[0];
22        }
23    };
24
25    // //无障碍操作说明链接地址
26    JHelperConfig.wzaHelp = "https://voice.ewdcloud.com/wzagjt/shuoming.html";
27
28    JHelperConfig.modeHigher = "https://voice.ewdcloud.com/wzagjt/SE.html?siteId=9";
29    //JHelperConfig.modeHigher = "http://voice.ewdcloud.com/wzagjt/SE.html";
30
31    // 以下是网页区域标识,快捷键导航时使用
32    // 无障碍操作说明ID//读屏软件语音接口:已定位到无障碍帮助
33    JHelperConfig.AccessHelp = 'accesshelp';
34    JHelperConfig.AccessHelpTitle = "已定位到无障碍帮助";
35
36    //主导航区ID//读屏软件语音接口:已定位到网站导航
37    JHelperConfig.MainNavigation = 'mainNav';
38    JHelperConfig.MainNavigationTitle = "已定位到网站导航";
39
40    //中国上海服务引导区//读屏软件语音接口:已跳转到服务引导区
41    JHelperConfig.HeaderGuide = 'accessNull';
42    JHelperConfig.HeaderGuideTitle = "本网站无此快捷键";
43
44    //主要内容区ID//读屏软件语音接口:已跳转到主要内容区
45    JHelperConfig.MainContent = 'main';
46    JHelperConfig.MainContentTitle = "已跳转到主要内容区";
47
48    //网站地图区ID//读屏软件语音接口:已跳转到网站地图
49    JHelperConfig.SiteMap = 'accessNull';
50    JHelperConfig.SiteMapTitle = "本网站无此快捷键";
51
52    //搜索区ID//读屏软件语音接口:已跳转到搜索区域
53    JHelperConfig.SearchForm = 'search';
54    JHelperConfig.SearchFormTitle = "已跳转到搜索区域";
55
56    //头部内容区ID//读屏软件语音接口:已跳转到头部内容区域
57    JHelperConfig.HeadContent = 'header';
58    JHelperConfig.HeadContentTitle = "已跳转到头部内容区域";
59
60    //底部内容区ID//读屏软件语音接口:已跳转到底部内容区域
61    JHelperConfig.BottomContent = 'footer';
62    JHelperConfig.BottomContentTitle = "已跳转到底部内容区域";
63
64    //网页左栏区ID//读屏软件语音接口:已跳转到上栏内容区域
65    JHelperConfig.LeftContent = 'accessNull';
66    JHelperConfig.LeftContentTitle = "本网站无此快捷键";
67
68    //网页中间区ID//读屏软件语音接口:已跳转到下栏内容区域
69    JHelperConfig.MiddleContent = 'accessNull';
70    JHelperConfig.MiddleContentTitle = "本网站无此快捷键";
71
72    //网页右栏区ID//读屏软件语音接口:已跳转到底部内容区域
73    JHelperConfig.RightContent = 'accessNull';
74    JHelperConfig.RightContentTitle = "本网站无此快捷键";
75
76
77    //栏目分组标记 H2 或 H3
78    JHelperConfig.GroupTagNameH2 = 'H2';
79    JHelperConfig.GroupTagNameH3 = 'H3';
80    JHelperConfig.GroupTagNameH4 = 'H4';
81
82}
83
84//中国国际进口博览会
85
86//欢迎访问『中国国际进口博览会』网站,无障碍辅助浏览工具条已经为您开启,当前为『普通模式』
87var myTtsText1 = "https://tts.ewdcloud.com/tts/e333fff7ec23759555a2182f236ca132.mp3"
88
89//欢迎访问『中国国际进口博览会』网站,无障碍辅助浏览工具条已经为您开启,当前为『中等模式』
90var myTtsText2 = "https://tts.ewdcloud.com/tts/3e797a986b4138ea823a6f402edafbc5.mp3"
91
92//欢迎访问『中国国际进口博览会』网站,无障碍辅助浏览工具条已经为您开启,当前为『高等模式』
93var myTtsText3 = "https://tts.ewdcloud.com/tts/0dd7aa059bd7abe1ac5161a15b233c28.mp3"
94
95//欢迎访问『中国国际进口博览会』网站,如果您是长者,请点击页面右下角的蓝色提示框选择长者模式。如果不需要可以点击『关闭』按钮关闭提示
96var myTtsText4 = "https://tts.ewdcloud.com/tts/d1d63e1c8540def1b039637581f2a0e8.mp3"
97
98var serverResoce = "https://voice.ewdcloud.com/wzagjt";
99//var serverResoce = "assets";
100
101//放大页面要返回的原页面
102var oldURL = "https://www.ciie.org/zbh/index.html";
103
104//适老化专版网站标题
105var bigtext = "";
106
107//适老化专版网站页脚
108var footerName = "";
109var footerAddr = "";
110var footerTle = "";
111var footerZipCode = "";
112var footerTleTotal = "";
113var footerICP = "";
114var footerWA = "";
115var footerCode = "";
116
117//适老化js文件地址
118var configUrlChange = "https://www.ciie.org/resource/static/zbh/default/assets-2019/plugin/jhelper_V2.0/ciie/jhelper_config.js";
119
120//原网站站点id
121siteId = 1
122
123//适老化专版网站css
124var changeCss = "";
125
126//工具条颜色变化
127var changeNavCss = "linear-gradient(-60deg, #ff5858 0%, #f09819 100%)";
128
129
130//适老化最新新闻站点url(跳转链接)
131var SeNewsUrl = "";
132
133//适老化最新新闻站点url(传参)
134var SeNews = "";
135
136//适老化最新公开站点url(跳转链接)
137var SeNewgkUrl = "";
138
139//适老化最新公开站点url
140var SeNewgk = "";
141
142//适老化查询list连接
143var findSeList = "";
144
145//适老化提交建议连击
146var SeSaveUrl = "";
147
148//适老化提交意见站点
149var SeSaveSite = "";
150
151
152//适老化长者专用服务列表
153var SeTitleList = [{ id: 1, url: "", scr: "icon-juchangxinxiang", text: "" },
154{ id: 2, url: "", scr: "", text: "" },
155{ id: 2, url: "", scr: "icon-yijianzhengji", text: "" },
156{ id: 3, url: "", scr: "icon-zhengfujigou", text: "" }]
157
158
159//显示Show的值为1 隐藏时值为0
160// sort为排序,show值为0时, sort的值为空
161// show值为1时, sort的值从上到下排序
162//模式选择
163var step1Show = "0"
164var step1Sort = ""
165//模式选择适老版
166var step16Show = "0"
167var step16Sort = ""
168//页面缩放
169var step2Show = "1"
170var step2Sort = "2"
171//文字缩放
172var step3Show = "1"
173var step3Sort = "3"
174//页面配色
175var step4Show = "1"
176var step4Sort = "4"
177//大指针
178var step5Show = "1"
179var step5Sort = "5"
180//辅助线
181var step6Show = "1"
182var step6Sort = "6"
183//语音阅读
184var step7Show = "1"
185var step7Sort = "7"
186//语音播报
187var step14Show = "1"
188var step14Sort = "8"
189//超大字幕
190var step8Show = "1"
191var step8Sort = "9"
192//纯文本
193var step9Show = "1"
194var step9Sort = "10"
195//长者专版
196var step10Show = "0"
197var step10Sort = ""
198//引导流程
199var step11Show = "1"
200var step11Sort = "11"
201//帮助页面
202var step12Show = "1"
203var step12Sort = "12"
204//重置
205var step15Show = "1"
206var step15Sort = "13"
207//工具条声音
208var step17Show = "1"
209var step17Sort = "14"
210//关闭工具条
211var step13Show = "1"
212var step13Sort = "15"
213
214var modLong = 0;
215
216var configUrlModLong = window.location.href.split("?")[1]
217if (configUrlModLong != null && configUrlModLong.indexOf("siteId") != -1) {
218    modLong = 1;
219}
220//最大的老年模式去掉模式选择
221if (modLong == "1") {
222    //模式选择
223    step1Show = "0"
224    step1Sort = ""
225    //模式选择适老版
226    step16Show = "0"
227    step16Sort = ""
228    //页面缩放
229    step2Show = "1"
230    step2Sort = "2"
231    //文字缩放
232    step3Show = "1"
233    step3Sort = "3"
234    //页面配色
235    step4Show = "1"
236    step4Sort = "4"
237    //大指针
238    step5Show = "1"
239    step5Sort = "5"
240    //辅助线
241    step6Show = "1"
242    step6Sort = "6"
243    //语音阅读
244    step7Show = "1"
245    step7Sort = "7"
246    //语音播报
247    step14Show = "1"
248    step14Sort = "8"
249    //超大字幕
250    step8Show = "1"
251    step8Sort = "9"
252    //纯文本
253    step9Show = "1"
254    step9Sort = "10"
255    //长者专版
256    step10Show = "0"
257    step10Sort = ""
258    //引导流程
259    step11Show = "1"
260    step11Sort = "11"
261    //帮助页面
262    step12Show = "1"
263    step12Sort = "12"
264    //重置
265    step15Show = "1"
266    step15Sort = "13"
267    //工具条声音
268    step17Show = "1"
269    step17Sort = "14"
270    //关闭工具条
271    step13Show = "1"
272    step13Sort = "15"
273}
274
275
276
277//语音播报
278var ttsText0 = "欢迎访问中国国际进口博览会网站,如果您是长者请选择适合您的长者模式,如果您不需要,请点击『我不需要』按钮关闭。";
279var ttsText1 = "当前为中等模式,点击更换长者模式。"
280var ttsText2 = "页面按比例放大,点击更换页面缩放等级。"
281var ttsText3 = "放大网页上的字号,点击更换字体放大级别。"
282var ttsText4 = "改变页面背景和文字配色,适用于色弱和色盲的用户,点击更换页面配色。"
283var ttsText5 = "让鼠标指针变大,浏览网页的鼠标更加明显。"
284var ttsText6 = "为视力障碍用户校对阅读的位置提供帮助。"
285var ttsText7 = "根据您的鼠标指针位置,朗读当前位置的文字内容。"
286var ttsText8 = "可以自动连续地朗读整个页面的文字内容。"
287var ttsText9 = "大字幕显示鼠标位置的文字。"
288var ttsText10 = "打开文本模式。"
289var ttsText11 = ""
290var ttsText12 = "打开无障碍工具条使用帮助引导流程"
291var ttsText13 = "打开使用帮助页面,查看完整的帮助说明文档"
292var ttsText14 = "关闭无障碍工具条"
293var ttsText15 = "重置无障碍工具条"
294var ttsText16 = "长者模式"
295var ttsText17 = "工具条声音"

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.