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(' ', ''); 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.