PageSourceSearch

http://jiawuzhanzheng.org/free_Web/free_Web_load.js?v=ZNgfTyaMRFyzWS9n5J3SyrIx69P1rzDXP8R1uq09xHI

js jiawuzhanzheng.org collected 2026-10-03 01:59:56 UTC 27,855 bytes, 745 lines download raw bytes

1/*
2无障碍浏览插件
3编写:阿宝
4QQ:22420466
5中国石门政府网站
6*/
7
8jQuery.fn.extend({
9    removeCss: function (cssName) {
10        return this.each(function () {
11            var curDom = $(this);
12            jQuery.grep(cssName.split(","),
13                function (cssToBeRemoved) {
14                    curDom.css(cssToBeRemoved, '');
15                });
16            return curDom;
17        });
18    }
19});
20
21function InitTTSConfig() {
22    var result = false;
23    var request = new XMLHttpRequest();
24    request.open('get', '/free_Web/TTSConfig.json', false);
25    request.send(null);
26    if (request.status == 200) {
27        var json = JSON.parse(request.responseText);
28        result = json.EnableTTS;
29    }
30
31    return result;
32}
33
34var free_Web = new Object();
35free_Web.IsInsideLabel = false; //是否插入标签
36free_Web.tool_Box = new Object();
37free_Web.tool_Box_sub = new Object();
38free_Web.Function = new Object();
39free_Web.enableTTS = InitTTSConfig();
40// 调用方法之前判断方法是否可执行
41free_Web.Function.invokeFunction = function (fn) {
42    if ($.isFunction(fn)) {
43        return fn.apply(null, Array.prototype.slice.call(arguments, 1));
44    }
45};
46free_Web.Function.help = {
47    id: "Br_help",
48    fun: "/free_Web/help.htm",
49    title: "无障碍浏览使用帮助",
50    minTitle: "帮助",
51    img: "Br_help.png",
52    mp3: "Br_help.mp3",
53    toolhtml: function () {
54        s = "<ul>";
55        s += "<li><a id='" +
56            this.id +
57            "' href='" +
58            this.fun +
59            "' title='" +
60            this.title +
61            "' target='_blank'><img src='/free_Web/images/" +
62            this.img +
63            "'></a><p>" +
64            this.minTitle +
65            "</p></li>";
66        s += "</ul>";
67        return $(s);
68    }
69};
70free_Web.Function.show = {
71    Config: {
72        id: "Br_close",
73        img: "close.png",
74        title: "开启无障碍浏览",
75        minTitle: "关闭",
76        closetitle: "关闭无障碍浏览",
77        fun: "javascript:free_Web.Function.show.Start();",
78        key: "Ctrl+Alt+B",
79        keycode: 79
80
81    },
82    toolhtml: function () {
83        s = "<ul>";
84        s += "<li><a id='" +
85            this.Config.id +
86            "' href='" +
87            this.Config.fun +
88            "' title='" +
89            this.Config.closetitle +
90            "(" +
91            this.Config.key +
92            ")'><img src='/free_Web/images/" +
93            this.Config.img +
94            "'></a><p>" +
95            this.Config.minTitle +
96            "</p></li>";
97        s += "</ul>";
98        return $(s);
99    },
100    cookieName: "free_Web_status",
101    clear: function () {
102        free_Web.cookie.setCookie(this.cookieName, 0);
103        free_Web.Function.installBox.remove();
104        this.status = false;
105
106    },
107    cookieMethod: function () {
108        if (free_Web.cookie.getCookie(this.cookieName) == 1) {
109            free_Web.Function.installBox.Isinstall(true);
110            this.status = true;
111            free_Web.Function.Read.Start();
112        }; // s();
113    },
114    status: false,
115    IsIsinstall: false,
116    Start: function () {
117        if (!this.status) {
118            free_Web.cookie.setCookie(this.cookieName, 1);
119            if (!this.IsIsinstall) {
120                free_Web.Function.installBox.Isinstall();
121            } else {
122                free_Web.Function.audioplay.audio("您已开启无障碍浏览功能");
123            }
124            this.status = true;
125            $("#Browser_head").html("关闭无障碍浏览");
126
127        } else {
128            free_Web.Function.installBox.remove();
129            this.status = false;
130            free_Web.cookie.setCookie(this.cookieName, 0);
131            $("#Browser_head").html("无障碍浏览");
132            free_Web.Function.audioplay.play("/free_Web/mp3/show_close.mp3");
133            free_Web.Function.clear();
134
135        }
136        //this.show();
137
138        free_Web.Function.Read.Start();
139    }
140};
141free_Web.Function.installBox = {
142    box: "free_Web_box",
143    Isinstall: function (isOnPageLoading) {
144        if (!free_Web.Function.show.status) {
145            var first = $(document.body).children(":first");
146            free_Web.tool_Box_sub = $("<div id='" + this.box + "_sub'></div>").insertBefore(first);
147            free_Web.tool_Box = $("<div id='" + this.box + "'></div>").appendTo(document.body);
148            var Ttool_Box = $("<div class='free_Web_tool'><div>").appendTo(free_Web.tool_Box);
149            free_Web.Function.audioplay.load(isOnPageLoading);
150            $("<ul><li><a id='Br_BarTitle'><img src='/free_Web/images/Br_BarTitle.png' /></a></li></ul>")
151                .appendTo(Ttool_Box);
152            free_Web.Function.pageZoom.toolhtml().appendTo(Ttool_Box);
153            free_Web.Function.FontZoom.toolhtml().appendTo(Ttool_Box);
154            //free_Web.Function.textMode.toolhtml().appendTo(Ttool_Box);
155            free_Web.Function.Br_ChangBg.toolhtml().appendTo(Ttool_Box);
156            free_Web.Function.guides.toolhtml().appendTo(Ttool_Box);
157            free_Web.Function.Fping.toolhtml().appendTo(Ttool_Box);
158            free_Web.Function.Read.toolhtml().appendTo(Ttool_Box);
159            free_Web.Function.ReadArea.toolhtml().appendTo(Ttool_Box);
160
161            free_Web.Function.show.toolhtml().appendTo(Ttool_Box);
162            free_Web.Function.help.toolhtml().appendTo(Ttool_Box);
163            free_Web.tool_Box_sub.slideDown(500);
164            free_Web.tool_Box.slideDown(500);
165            this.IsIsinstall = true;
166        }
167    },
168    remove: function () {
169        if (free_Web.Function.show.status) {
170            free_Web.tool_Box_sub.slideUp(500);
171            free_Web.tool_Box.slideUp(500);
172            free_Web.tool_Box_sub.remove();
173            free_Web.tool_Box.remove();
174        }
175    }
176};
177free_Web.Function.InsideLabel = {
178    init: function () {
179        var ROOT = document.getElementsByTagName("body")[0];
180        for (var i = 0; i < ROOT.childNodes.length; i++) {
181            try {
182                this.nodeText(ROOT.childNodes[i]);
183            } catch (o) {
184            }
185        }
186        try {
187            //段落内的文本加上Label
188            $("voice.Shimen-Pointer-Label").each(function (index, ele) {
189                var reg = /([,|;|。|?|!])/g;
190                $(this).get(0).outerHTML = ($(this).get(0).outerHTML.replace(
191                    /([^,;。>]+)([,;。])([^,;。<]+)/gim,
192                    "$1</voice>$2<voice class='Shimen-Pointer-Label'>$3"
193                ));
194            });
195        } catch (o) {
196        }
197        free_Web.IsInsideLabel = true;
198    },
199    nodeText: function (obj) {
200        if (obj.id == "browser_audiobox") {
201            return;
202        }
203        if (obj.id == "free_Web_box") {
204            return;
205        }
206        if (obj.nodeName.toLowerCase() == "script" || obj.nodeName.toLowerCase() == "style") {
207            return;
208        }
209        if ((' ' + obj.className + ' ').indexOf(' videoPlayer ') > -1) {
210            return;
211        }
212        for (var i = 0; i < obj.childNodes.length; i++) {
213            try {
214
215                if (obj.childNodes[i].hasChildNodes()) {
216                    this.nodeText(obj.childNodes[i]);
217                }
218                if (obj.childNodes[i].nodeType == 3 && !/^\s+$/.test(obj.childNodes[i].nodeValue)) {
219                    var tempHTML = document.createElement("voice");
220                    tempHTML.className = "Shimen-Pointer-Label";
221                    tempHTML.innerHTML = obj.childNodes[i].nodeValue;
222                    obj.replaceChild(tempHTML, obj.childNodes[i]);
223                }
224                // 图片类型识别。
225                if (
226                    obj.childNodes[i].nodeType == 1 &&
227                    obj.childNodes[i].nodeName === "IMG"
228                ) {
229                    if (
230                        obj.childNodes[i].alt != "" ||
231                        obj.childNodes[i].parentElement.nodeName == "A" ||
232                        obj.childNodes[i].title != ""
233                    ) {
234                        $(obj.childNodes[i]).addClass(
235                            "IMG-Shimen-Pointer-Label"
236                        );
237                    }
238                }
239
240                // 视频类型识别。
241                if (
242                    obj.childNodes[i].nodeType == 1 &&
243                    obj.childNodes[i].nodeName === "VIDEO"
244                ) {
245                    $(obj.childNodes[i]).addClass("VIDEO-Shimen-Pointer-Label");
246                }
247
248                // 音频类型识别。
249                if (
250                    obj.childNodes[i].nodeType == 1 &&
251                    obj.childNodes[i].nodeName === "AUDIO"
252                ) {
253                    $(obj.childNodes[i]).addClass("AUDIO-Shimen-Pointer-Label");
254                }
255
256                //Input类型识别。
257                if (
258                    obj.childNodes[i].nodeType == 1 &&
259                    obj.childNodes[i].nodeName === "INPUT"
260                ) {
261                    $(obj.childNodes[i]).addClass("INPUT-Shimen-Pointer-Label");
262                }
263
264                // SELECT类型识别。
265                if (
266                    obj.childNodes[i].nodeType == 1 &&
267                    obj.childNodes[i].nodeName === "SELECT"
268                ) {
269                    $(obj.childNodes[i]).addClass(
270                        "SELECT-Shimen-Pointer-Label"
271                    );
272                }
273            } catch (o) { }
274        }
275    },
276    claer: function () {
277        //document.body.outerHTML = document.body.outerHTML.replace(/<\/voice>/g, "");
278
279    }
280};
281free_Web.Function.clear = function () {
282    free_Web.Function.show.clear();
283    free_Web.Function.pageZoom.clear();
284    free_Web.Function.FontZoom.clear();
285    free_Web.Function.Br_ChangBg.clear();
286    free_Web.Function.Fping.clear();
287    free_Web.Function.Read.clear();
288    free_Web.Function.ReadArea.clear();
289    free_Web.Function.ReadCon.clear();
290    free_Web.Function.guides.clear();
291    free_Web.Function.audioplay.beforeNewPlayer();
292    if (free_Web.Function.textMode.status) {
293        window.location.reload();
294    }
295};
296
297free_Web.Function.audioplay = {
298    speed: 1,
299    VolumeNum: 100,
300    audioBox: null,
301    IsMute: false,
302    isSectionPlayed: true,
303    turl: 'https://tts.powereasy.net/ServicesManagement/home/index',
304    playingUrl: '', // 当前播放的url,为了防止多个语音同时播放
305    continueLongText: void (0), // 保存播放长文本的回调,防止打开其他开关触发语言操作之后当前的播放停止
306    load: function (isMutedLoadingPrompt) {
307        soundManager.useFastPolling = true;
308        soundManager.onready(function (b) {
309            if (!b.success) {
310                return false;
311            } else if (!isMutedLoadingPrompt) {
312                free_Web.Function.audioplay.audio("您已开启无障碍浏览功能");
313            }
314        });
315
316    },
317    stopAll: function () {
318        soundManager.stopAll();
319        this.isSectionPlayed = true;
320    },
321    pauseAll: function () {
322        soundManager.pauseAll();
323    },
324    resumeAll: function () {
325        soundManager.resumeAll();
326    },
327    audio: function (zhText, finishedCallback, current, strs) {
328        if (!free_Web.enableTTS) {
329            return false;
330        }
331        this.stopAll();
332        var url = window.location.href;
333        var Turl = this.turl + '?text=' + encodeURI(zhText) + '&speed=' + this.speed + '&sourceUrl=' + url;
334        this.play(Turl, finishedCallback, current, strs, this.turl, this.speed);
335        this.playingUrl = Turl;
336    },
337    play: function (url, finishedCallback, current, strs, turlValue, speedValue) {
338        if (!free_Web.enableTTS) {
339            return false;
340        }
341        this.stopAll();
342        var id = 'Shimen_gov_vioce' + this.r(),
343            _audioplay = this;
344        this.audioBox = soundManager.createSound({
345            id: id,
346            url: url,
347            autoLoad: true,
348            autoPlay: false,
349            onload: function () {
350                if (_audioplay.playingUrl === url) {
351                    this.play();
352                }
353            },
354            onfinish: function () {
355                this.destruct();
356                _audioplay.isSectionPlayed = true;
357                free_Web.Function.invokeFunction(finishedCallback);
358                free_Web.Function.invokeFunction(_audioplay.continueLongText);
359            },
360            onplay: function () {
361                if (strs != undefined && current != undefined && current < strs.length - 1) {
362                    setTimeout(function () {
363                        $.ajax({
364                            type: 'get',
365                            url: turlValue + '?text=' + strs[current + 1] + '&speed=' + speedValue + '&isLoad=' + true + '&sourceUrl=' + window.location.href,
366                            dataType: 'json',
367                            xhrFields: {
368                                withCredentials: true
369                            },
370                            crossDomain: true
371                        });
372                    }, 1000);
373                }
374            },
375            volume: this.VolumeNum
376        });
377        if (free_Web.Function.audioplay.IsMute) {
378            this.audioBox.mute();
379        } else {
380            this.audioBox.unmute();
381        };
382
383    },
384    playLongText: function (str, progressCallback, finishedCallback) {
385        if (!free_Web.enableTTS) {
386            return false;
387        }
388
389        str = str.trim();
390        str = str.replaceAll('&nbsp;', '');
391        str = str.replace(/\s*/g, "");
392        this.stopAll();
393        if (!str) {
394            setTimeout(function () {
395                free_Web.Function.invokeFunction(finishedCallback);
396            },
397                100);
398            return 0;
399        }
400        if (str.length <= 100) {
401            this.audio(str, finishedCallback);
402            return 1;
403        }
404
405        var strs = [],
406            current = 0,
407            index = 1,
408            contentIndex = 0,
409            _player = this;
410
411        strs[0] = "开始播放无障碍语音";
412
413        // 先按100个字符分隔,在判断最后一个字符是否是以下符号,是则通过,不是则读这一百个字内最后的符号位置,按符号分隔转语音,
414        // 不包含符号的一部分则列入下一次计算中。
415        // 如果都没有符号,则走原流程,不做分隔处理,直接转语音。
416        while (true) {
417            var content = str.substring(contentIndex, contentIndex + 101);
418            if (contentIndex >= str.length - 1) {
419                break;
420            }
421
422            if (content[content.length - 1] == ',' || content[content.length - 1] == '。' || content[content.length - 1] == ';' || content[content.length - 1] == '!' || content[content.length - 1] == '?' || content[content.length - 1] == '、') {
423                strs[index] = content;
424                index++;
425                contentIndex += content.length;
426            } else {
427                var lastIndexA = content.lastIndexOf(',');
428                var lastIndexB = content.lastIndexOf('。');
429                var lastIndexC = content.lastIndexOf(';');
430                var lastIndexD = content.lastIndexOf('!');
431                var lastIndexE = content.lastIndexOf('?');
432                var lastIndexF = content.lastIndexOf('、');
433
434                var lastIndex = lastIndexA;
435                if (lastIndex < lastIndexB) {
436                    lastIndex = lastIndexB;
437                }
438                if (lastIndex < lastIndexC) {
439                    lastIndex = lastIndexC;
440                }
441                if (lastIndex < lastIndexD) {
442                    lastIndex = lastIndexD;
443                }
444                if (lastIndex < lastIndexE) {
445                    lastIndex = lastIndexE;
446                }
447                if (lastIndex < lastIndexF) {
448                    lastIndex = lastIndexF;
449                }
450
451                var surplusIndex = content.length - 1 - lastIndex;
452                if (lastIndex == -1) {
453                    surplusIndex = 0;
454                    lastIndex = content.length;
455                }
456
457                strs[index] = content.substring(0, lastIndex + 1);
458                index++;
459                contentIndex += content.length - surplusIndex;
460            }
461        }
462
463
464
465        var playListLength = strs.length;
466        _player.continueLongText = continueNextSection;
467        _player.audio(strs[current], afterPlay, current, strs);
468
469        return playListLength;
470
471        function afterPlay() {
472            current++;
473            progressCallback(current, playListLength);
474            if (current >= playListLength) {
475                free_Web.Function.invokeFunction(finishedCallback);
476            }
477        }
478
479        function continueNextSection() {
480            _player.isSectionPlayed = false;
481            if (current >= playListLength) {
482                _player.continueLongText = void (0);
483            } else {
484                _player.audio(strs[current], afterPlay, current, strs);
485            }
486        }
487    },
488    audioCon: function (zhText) {
489        this.stopAll();
490        var url = window.location.href;
491        var Turl = this.turl + '?text=' + encodeURI(zhText) + '&speed=' + this.speed + '&sourceUrl=' + url;
492        this.playCon(Turl);
493        this.playingUrl = Turl;
494    },
495    playCon: function (url) {
496        if (!free_Web.enableTTS) {
497            return false;
498        }
499        this.stopAll();
500        var id = 'Shimen_gov_vioce' + this.r();
501        var self = this;
502        this.audioBox = soundManager.createSound({
503            id: id,
504            url: url,
505            autoLoad: true,
506            autoPlay: false,
507            onload: function () {
508                if (self.playingUrl === url) {
509                    this.play();
510                }
511            },
512            onfinish: function () {
513                this.destruct();
514                free_Web.Function.ReadCon.ReadNext();
515            },
516            volume: this.VolumeNum
517        });
518        if (free_Web.Function.audioplay.IsMute) {
519            this.audioBox.mute();
520        } else {
521            this.audioBox.unmute();
522        };
523    },
524    Mute: function () {
525        free_Web.Function.audioplay.IsMute = true;
526        this.audioBox.mute(); //静音
527    },
528    UnMute: function () {
529        free_Web.Function.audioplay.IsMute = false;
530        this.audioBox.unmute(); //取消静音();
531    },
532    Volume: function (vol) {
533        this.VolumeNum = vol;
534        this.audioBox.setVolume(this.VolumeNum);
535
536    },
537    r: function r() {
538        return Math.round(2147483647 * (Math.random() || .5)) * +new Date % 1E10;
539    },
540    beforeNewPlayer: function () {
541        // 因为播放组件是共享的,一次只有一个播放组件在工作。
542
543        // 当开启一个新的播放组件的时候,需要设置其他的播放组件状态为关闭的。
544        $('.power-content_voice .power-content_voice-start').removeClass('disabled');
545        $('.power-content_voice .power-content_voice-stop').addClass('disabled');
546        $('.power-content_voice progress').attr('value', 0);
547
548        // 关闭正文阅读操作
549        free_Web.Function.audioplay.continueLongText = void (0);
550        // 关闭连续指读
551        free_Web.Function.ReadCon.clear();
552        // 关闭指读
553        free_Web.Function.Read.clear();
554    }
555};
556
557//cookie----------------------------------
558free_Web.cookie = new Object();
559free_Web.cookie.setCookie = function (cookieName, cookieValue) {
560    if (cookieName == undefined || cookieValue == undefined) {
561        return;
562    }
563    document.cookie = cookieName + "=" + escape(cookieValue) + ";";
564};
565free_Web.cookie.getCookie = function (name) {
566    if (name == undefined) {
567        return;
568    }
569    var arr = document.cookie.match(new RegExp("(^| )" + name + "=([^;]*)(;|$)"));
570    if (arr != null) {
571        return unescape(arr[2]);
572    }
573    return null;
574};
575
576document.write('<script src="/free_Web/pinyin.js" type="text/javascript"></script>');
577document.write('<script src="/free_Web/free_Web_page.js?i=4" type="text/javascript"></script>');
578document.write('<script src="/free_Web/free_Web_FPing.js?i=4" type="text/javascript"></script>');
579document.write('<script src="/free_Web/free_Web_ReadArea.js?i=4" type="text/javascript"></script>');
580document.write('<script src="/free_Web/browserRead.js?i=6" type="text/javascript"></script>');
581document.write('<script src="/free_Web/browserKeys.js" type="text/javascript"></script>');
582
583$(document).ready(function () {
584    $(document).click(function (event) {
585        if (free_Web.Function.Br_ChangBg.ISItemsShow &&
586            event.target.getAttribute("dir") != free_Web.Function.Br_ChangBg.Config.menuBoxid) {
587            free_Web.Function.Br_ChangBg.up();
588        }
589        if (free_Web.Function.guides.ISItemsShow &&
590            event.target.getAttribute("dir") != free_Web.Function.guides.Config.tools[1].dir) {
591            free_Web.Function.guides.up();
592        }
593        if (free_Web.Function.Fping.ISItemsShow &&
594            event.target.getAttribute("dir") != free_Web.Function.Fping.Config.tools[1].dir) {
595            free_Web.Function.Fping.up();
596        }
597        if (free_Web.Function.VoiceSet.ISItemsShow &&
598            event.target.getAttribute("dir") != free_Web.Function.Read.Config.tools[3].dir) {
599            free_Web.Function.VoiceSet.up();
600        }
601
602    });
603
604    free_Web.Function.show.cookieMethod();
605    soundManager.debugMode = false;
606    soundManager.url = "/free_Web/swf/";
607
608});
609
610(function () {
611    function setContentVoice() {
612        var ispause = false;
613        $('[data-power-accessible-reading]').each(function (i, n) {
614            var $content = $(this),
615                $play = $($.parseHTML(
616                    '<a href="javascript:;" class="voice-button power-content_voice-start"><button></button></a>')),
617                $pause = $($.parseHTML(
618                    '<a href="javascript:;" class="voice-button power-content_voice-pause disabled" style="display:none;"><button></button></a>')),
619                $stop = $($.parseHTML(
620                    '<a href="javascript:;" class="voice-button power-content_voice-stop disabled"><button></button></a>')),
621                $progress = $('<progress value="0" max="100" ><ie style="width:0%;"></ie></progress>');
622            $content.before($('<div class="power-content_voice" data-power-notprint></div>').append($play)
623                .append($pause)
624                .append($stop)
625                .append($progress));
626
627            function onProgress(current, max) {
628                $progress.attr('value', current);
629                $progress.find('ie').width(Math.round(current * 100 / max) + '%');
630            }
631
632            if (!free_Web.enableTTS) {
633                $('.power-content_voice').addClass('hide_tts');
634            }
635
636            $(".power-content_voice").on('click',
637                'a[class="voice-button power-content_voice-start"]:not(.disabled)',
638                function () {
639                    // 当前是暂停状态
640                    if (ispause) {
641                        setUiStateResume();
642                        free_Web.Function.audioplay.resumeAll();
643                        return;
644                    }
645
646                    setUiStatePlay();
647                    if (!free_Web.IsInsideLabel) {
648                        free_Web.Function.InsideLabel.init();
649                    }
650
651                    // 所有段落加上。号结尾。
652                    var reg = /<\/?.+?\/?>/g;
653                    var htmlContent = $content.html();
654                    htmlContent = htmlContent.replaceAll('</br>', '。');
655                    htmlContent = htmlContent.replaceAll('<br>', '。');
656                    htmlContent = '<div>' + htmlContent + '</div>';
657                    var pHtmls = $(htmlContent).find('p');
658                    var content = '';
659                    if (pHtmls.length > 0) {
660                        $.each(pHtmls, function (i, v) {
661                            var phtml = v.innerHTML;
662                            phtml = phtml.replace('\n', '');
663                            phtml = phtml.trim();
664                            content += phtml + '。';
665                        });
666                    } else {
667                        content = htmlContent;
668                    }
669
670                    content = content.replace(reg, '');
671
672                    // 经过上面的过滤可能会出现以下多余符号,去除多余的符号。
673                    content = content.replaceAll('。。。', '。');
674                    content = content.replaceAll('。。', '。');
675
676                    var max = free_Web.Function.audioplay.playLongText(
677                        content,
678                        onProgress,
679                        setUiStateStop);
680                    $progress.attr('max', max);
681                    return false;
682                }).on('click',
683                    'a[class="voice-button power-content_voice-stop"]:not(.disabled)',
684                    function () {
685                        setUiStateStop();
686                        free_Web.Function.audioplay.stopAll();
687                        return false;
688                    }).on('click',
689                        'a[class="voice-button power-content_voice-pause"]:not(.disabled)',
690                        function () {
691                            setUiStatePause();
692                            free_Web.Function.audioplay.pauseAll();
693                            return false;
694                        });
695            // 开始
696            function setUiStatePlay() {
697                // 当一个段落在播放的时候,设置正在播放的段落播放状态为关闭
698                free_Web.Function.audioplay.beforeNewPlayer();
699
700                $play.addClass('disabled');
701                $stop.removeClass('disabled');
702                $pause.removeClass('disabled');
703                $play.hide();
704                $pause.show();
705            }
706
707            // 停止
708            function setUiStateStop() {
709                ispause = false;
710                $play.removeClass('disabled');
711                $pause.addClass('disabled');
712                $stop.addClass('disabled');
713                $progress.attr('value', 0);
714                $progress.find('ie').width('0%');
715                $pause.hide();
716                $play.show();
717            }
718
719            // 暂停
720            function setUiStatePause() {
721                ispause = true;
722                $play.removeClass('disabled');
723                $pause.addClass('disabled');
724                $stop.removeClass('disabled');
725                $pause.hide();
726                $play.show();
727            }
728
729            // ç»§ç»­
730            function setUiStateResume() {
731                ispause = false;
732                $play.addClass('disabled');
733                $stop.removeClass('disabled');
734                $pause.removeClass('disabled');
735                $play.hide();
736                $pause.show();
737            }
738        });
739    }
740
741    $(function () {
742        setContentVoice();
743    });
744
745})();

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.