( || <\/span>|<\/span>)<\/p>/g;if(_pm._$$ArticleContent)return;_pm._$$ArticleContent=NEJ.C();var p=_pm._$$ArticleContent._$extend(_pm._$$Module);p.__doBuild=function(){var self=this;this.__body=_e._$html2node(_e._$getTextTemplate("tpl-article-content"));this.__body.innerHTML="文章载入中...";var $body=$(this.__body);$body.on("click","a",function(e){var target=e.currentTarget;var href=target.href;if(href.match(rhttp))return;e.preventDefault();var value=href.split(";")[1];if(value.match(rhttp)){target.href=value;target.target="_blank";target.click()}});$body.on("click",".add-book a, .add-source a",function(e){var target=e.target;if(target.target=="_blank")return;e.preventDefault();var data=self.__recommendCache[target.id];if(!data)return;self.__handleRecommendSource(target,data)});this.__cache=_pc._$$Article._$allocate({ondataload:function(ropt){var data=this.__getDataInCache(ropt.id+ropt.key);self.__initArticle(data)}})};p.__handleRecommendSource=function(target,data){var id=data.id||data.source.id;var self=this;var cb=function(){self.__updateSourceReadStatus(id)};if(data.id){dwr.engine._executeSingleWithBIParams("/dwr","BaseBean","addSub",{sourceUuid:data.id},data.id,"",false,function(data){if(data.flag==-999)return login163();YD.popTip("添加书籍成功");cb(data)})}else{xhr.toggleSubscribe(target,{subscribed:false,sourceUuid:data.source.id},cb)}};p.__createPlayer=function(el,videoUrl,posterUrl){var $wrapper=$(el);var isExtMatch=function(url,ext){url=url.split("?")[0];var swfExtPattern=new RegExp(ext.replace(".","\\.")+"$");return url.match(swfExtPattern)};var extractPost=function(url){url=url.replace("&posterUrl","&posterUrl");var pairs=url.slice(url.split("?")+1);if(typeof pairs=="undefined")return"";pairs=pairs.split("&");var pair,key;for(var i=0,l=pairs.length;i0){var query=_u._$query2object(parts[1]);var key;for(var key in query){if(query[key].match(/\.[a-z0-9]{3,5}$/)){realVideoUrl=query[key];break}}}var videoCommonPairs=[[".mp4","video",'video/mp4; codecs="avc1.4D401E, mp4a.40.2"'],[".mp3","audio","audio/mpeg;"]];var canPlay=function(type,codec){var a=document.createElement(type);return!!(a.canPlayType&&a.canPlayType(codec).replace(/no/,""))};var type=mps.media.getTypeFromFile(realVideoUrl);if(type.indexOf("audio")===0){$wrapper.width("100%").height(44)}else{$wrapper.width(630).height(400)}var mpsOptions={src:videoUrl,poster:posterUrl,type:type,alwaysShowControls:false,loop:false,preload:"auto",autoplay:false,alwaysFlash:false,error:function(){YD.popTip("视频播放出错了~")},success:function(){}};new mps.mediaPlayer(el,mpsOptions)};p.__playFlash=function($wrapper,videoUrl){var id="FPlayer";$wrapper.attr("id",id);var html=''+'';html=html+'';$wrapper.html(html)};p.__initArticle=function(html){this.__removeloading();html=this.__formatHTML(html);this.__body.innerHTML=html;var $el=$(this.__body);var self=this;$el.find(".video-holder").each(function(i,el){var $el=$(el);self.__createPlayer(el,$el.data("video-url"),$el.data("poster-url"))});var source_uuids=[];this.__recommendCache={};$(".m-book, .m-source",$(this.__body)).each(function(){var $source=$(this);var data=jQuery.parseJSON($source.find(".previewvalue").html());var sourceId=data.id||data.source.id;source_uuids.push(sourceId);var $addSource=$(".add-book a, .add-source a",$source);var elementId="source-add-btn-"+sourceId;self.__recommendCache[elementId]=data;$addSource.attr("id",elementId);var link=location.protocol+"//"+location.host+"/source/"+sourceId;var imgLink=$(".breif-img a",$source)[0];imgLink.href=link;imgLink.target="_blank";$addSource.text($source.is(".m-book")?"放入书架":"订阅");var $title=$source.find(".btitle");var $a=$('');$a.text($title.text());$a.attr("href",link);$title.empty().append($a)});if(source_uuids.length>0){ydAPI.checkSubscribed({source_uuids:source_uuids.join(",")},function(data){$.each(data.subscribed,function(i,sourceId){self.__updateSourceReadStatus(sourceId)})})}};p.__removeloading=function(){this.__articleContainer=_e._$getByClassName(document.body,"g-mn62")[0];this.__loading=_e._$getByClassName(this.__articleContainer,"m-loading")[0];if(this.__loading){this.__loading.style.display="none"}};p.__updateSourceReadStatus=function(sourceId){var $sourceAddBtn=$("#source-add-btn-"+sourceId);var path=$sourceAddBtn.parent().hasClass("add-book")?"book_reader":"source";$sourceAddBtn[0].href=location.protocol+"//"+location.host+"/"+path+"/"+sourceId;$sourceAddBtn[0].target="_blank";$sourceAddBtn.text("阅读")};p.__formatHTML=function(html){try{return html.replace(new RegExp("((?span>|?strong>|[ \\f\\n\\r\\t\\v])*)+","ig"),'').replace(new RegExp("((?span>|?strong>||&"+"nbsp;|[\\s ])*\\s*){2,}","ig"),'&'+"nbsp;").replace(new RegExp("(?span>|?strong>||&"+"nbsp;|[\\s ])*","ig"),'').replace(new RegExp("((?span>|?strong>|&"+"nbsp;|[\\s ])*)*","ig"),'')}catch(e){return this.__formatHTMLSafe(html)}};p.__formatHTMLSafe=function(html){try{return html.replace(new RegExp("((?span>|?strong>|[ \\f\\n\\r\\t\\v])*)+","ig"),'').replace(new RegExp("((?span>|?strong>||&"+"nbsp;|\\s)*\\s*){2,}","ig"),'&'+"nbsp;").replace(new RegExp("(?span>|?strong>||&"+"nbsp;|\\s)*","ig"),'').replace(new RegExp("((?span>|?strong>|&"+"nbsp;|\\s)*)*","ig"),'')}catch(e){return html}};p.__removeEmptyParagraph=function(html){var result;var lastIndex=null;var registry=[];var index=0;var continuous=false;rEmptyParagraph.lastIndex=0;while((result=rEmptyParagraph.exec(html))!=null){if(lastIndex){if($.trim(html.slice(lastIndex,result.index))===""){continuous=true;registry[index]=1;registry[index-1]=1}else if(continuous){continuous=false}else{registry[index-1]=0}}lastIndex=rEmptyParagraph.lastIndex;index++}if(typeof registry[index-1]=="undefined")registry[index-1]=0;index=0;rEmptyParagraph.lastIndex=0;html=html.replace(rEmptyParagraph,function(){var result;if(registry[index]===0||registry[index+1]===1){result=""}else{result=" "}index++;return result});return html};p.__onRefresh=function(options){this.__supOnRefresh(options);var param=options.param;var id=param.fid||param.id;var cid=param.cid;if(typeof cid=="undefined"){this.__body.innerHTML="";return}var isCustomSource=id.indexOf("cst_rss_")===0;if(!isCustomSource||param.fid){this.__cache._$getData(id,cid)}};p.__onMessage=function(obj){if(obj.data.type=="item"){var item=obj.data.item;this.__initArticle(''+item.content+"")}};_e._$regist("article_content",_pm._$$ArticleContent)})()
(?span>|?strong>|[ \\f\\n\\r\\t\\v])*
(?span>|?strong>||&"+"nbsp;|[\\s ])*
&'+"nbsp;
(?span>|?strong>||&"+"nbsp;|\\s)*
广告、灌水、无病呻吟等无营养内容
涉嫌色情、反动、暴力或违反版权的非法内容
文章存在不良信息
添加资讯
{if defined('replied')}回复<{if replied.anonymous}span{else}a target="_blank" href="${replied.link}"{/if}>${replied.username}{if replied.anonymous}span{else}a{/if}>:{/if}${text}
{if customNode} ${customizationId|default:''} {else} https://yuedu.163.com/source/${id} {/if}
${description|default:"暂无简介"|escape}