_.Module.define({path:"common/widget/WordLimit",requires:[],sub:{checkTimer:null,isShow:!1,exceed:!1,initial:function(i){var t={container:$("body"),inputObj:null,checkDelay:50,showLimit:10,maxNum:120,isLimitInput:!1,autoPos:!0,numStyle:{},limitStyle:{}},e=$.extend(!0,t,i);this.container=$(e.container),this.inputObj=$(e.inputObj),this.showLimit=e.showLimit,this.option=e,this.holder=$('
'),this.container.append(this.holder)},init:function(){var i=this.option,t=this;if(null!=i.inputObj){var e=$(i.inputObj);e.keydown(function(i){return t.handlerEvent(i),!0}),e.focus(function(i){return t.handlerEvent(i),!0}),e.bind("input",function(i){return t.handlerEvent(i),!0}),e.bind("propertychange",function(i){return t.handlerEvent(i),!0})}},setLimitStyle:function(i){this.holder.css(i)},hideWordLimit:function(){this.trigger("wlhiding"),this.holder.hide(),this.isShow=!1,clearTimeout(this.checkTimer)},autoPosition:function(){var i=this.inputObj.offset(),t=this.inputObj.width(),e=$(document).width();this.holder.css({top:i.top-this.holder.height()-5,right:e-t-i.left-9})},handlerEvent:function(){clearTimeout(this.checkTimer);var i=this.option,t=this;t.blur=!1,this.checkTimer=setTimeout(function(){t.check()},i.checkDelay)},check:function(){var i=this.option,t=this.inputObj,e=t.val(),h=$.tb.getByteLength(e),n=i.maxNum-h;if(i.isLimitInput&&0>n&&t.val($.tb.subByte(e,i.maxNum+(0>n&&n>-2?n:0),"")),n=i.maxNum-$.tb.getByteLength(t.val()),n<=this.showLimit){i.autoPos?this.autoPosition():this.trigger("onSetPosition"),this.holder.show(),this.isShow=!0;var s=Math.ceil(n/2);0>n?(s=Math.floor(n/2),this.exceed||(this.trigger("overflow"),this.exceed=!0),this.trigger("wlshowing"),this.holder.html('已经超出'+-s+"个字")):(this.exceed&&(this.trigger("unoverflow"),this.exceed=!1),this.trigger("wlshowing"),this.holder.html(0==n?'还可输入'+s+"个字":'还可输入'+s+"个字"))}else this.isShow&&(this.trigger("wlhiding"),this.holder.hide(),this.isShow=!1,this.exceed&&(this.trigger("unoverflow"),this.exceed=!1))}}});_.Module.define({path:"common/widget/PostPrefix",requires:[],sub:{initial:function(e){this.$titleWrap=$(".j_title_wrap"),this.$target=e.$target,this.prefix=e.prefix,this.prefix.value&&(this.prefix.value=this.prefix.value.replace("&","&")),this.$target.val(this.prefix.value),this.$target.data("prefix",this.prefix.value),this.feedbackBarId="898666",this.appendPrefixToBody(),this.prefix.need_sug&&(this.pickPrefix(this.$target,this.prefix.sug_html),this.autoResponse(this.$target,this.prefix.sug_html))},appendPrefixToBody:function(){this.$wrapper=$(''),this.$wrapper.appendTo("body").css({display:"none","box-sizing":"border-box"}),PageData.forum.forum_id==this.feedbackBarId&&(this.$autoRes_wrapper=$(''),this.$autoRes_wrapper.appendTo("body").css({display:"none","box-sizing":"border-box"})),this.unsetAutoRespPrefix()},setAutoRespPrefix:function(){var e=this;e.$titleWrap.find(".j_title").removeClass("normal-prefix").addClass("auto-resp-prefix")},unsetAutoRespPrefix:function(){var e=this;e.$titleWrap.find(".j_title").removeClass("auto-resp-prefix").addClass("normal-prefix")},showNormalPrefix:function(e){var i=this;i.$wrapper.css({width:e.outerWidth()+"px",left:e.offset().left+"px",top:e.offset().top+e.outerHeight()-1+"px"}).show(),PageData.forum.forum_id==this.feedbackBarId&&i.$autoRes_wrapper.hide()},autoResponse:function(e){function i(e,i){"up"==e?0>o-1?o=s.length-1:o--:"down"==e?o+1==s.length?o=0:o++:"mouse"==e&&(o=i),p.$autoRes_wrapper.is(":visible")||(f.showPPrefix(),o=0),s&&s.removeClass("pprefix-item-shine").eq(o).addClass("pprefix-item-shine")}function t(i){var t=e.data("prefix");e.val(t+i),p.$autoRes_wrapper.hide(),setTimeout(function(){e.trigger("focus")},100)}function r(e){$.post("/hermes/suggestion",{kw:e,ie:"utf-8"},function(e){e.errno||a(e.query_match)},"json")}function a(e){if(0==e.length)return f.hidePPrefix(),!1;for(var i="",t=0,r=e.length;r>t;t++)i+='发表猜拳贴成功!
',clazz:"doupiao_offline",arrow_dir:"up",card_css:{width:172,"z-index":0,left:34,top:122},arrow_pos:{left:25},wrap:$("#tb_rich_poster"),card_leave_display:!0}),this.offline_card._j_card.on("click",".j_close",function(){$.tb.Storage.set("poster_doupiao_offline",e+864e5),t.offline_card._j_card.remove()}).on("click",".j_link",function(){$.tb.Storage.set("poster_doupiao_offline",e+864e5),t.offline_card._j_card.remove()}),this.offline_card.showCard())},initPostService:function(){var t=this,e="",o=!(!window.history||!window.history.pushState);this.postService=this.use("common/widget/PostService"),this.postService.success(function(){t.editor.setContent(""),t.editor.clearDraft(),t.showPostSuccess(),PosterContext.getContext().isBlessForum&&t.setBlessCookie();var i=Math.ceil(10*Math.random());i>8&&($.stats.track("pb-list最下_F90","PC端彩票pb发帖试验","pb","view",{obj_url:"http://tb1.bdstatic.com/tb/cms/com/icon/F90_icon.gif"}),$.tb.Storage.set("pb_show_ad_f90","Y",(new Date).getTime()+8e3)),"pb"===PageData.product?PageData.pager.total_page===PageData.pager.cur_page&&setTimeout(function(){e=$.tb.location.getHref().replace($.tb.location.getProtocol()+"//"+$.tb.location.getHost(),""),-1!==e.indexOf("#")&&(e=e.slice(0,e.indexOf("#"))),-1===e.search(/pn=(\d+)/)&&(e+=-1===e.search(/\?/)?"?pn=1":"&pn=1"),o?window.refreshPage(e):window.refreshPage("",+e.match(/pn=(\d+)/)[1])},500):setTimeout(function(){t.refresh()},500),setTimeout(function(){$(".tb_poster_info").remove(),t.togglePostState(!1);var e=$(window).scrollTop();e>0&&(window.scrollTo(0,1),setTimeout(function(){window.scrollTo(0,0)},0))},2e3)}).complete(function(){t.togglePostState(!1)})},initEvent:function(){var t=this;this.$submit=this.$root.find(".j_submit").click(function(e){e.preventDefault(),t.$submit.is(".ui_btn_disable")||t.post()}),this.$root.on("keyup",function(e){e.ctrlKey&&13==e.keyCode&&t.post()}),this.$root.find(".add_vote_btn").click(function(){if(!PosterContext.getContext().user.canVote){var t=PosterContext.getContext().forum.nameEncoded;return $.tb.alert({title:"发起投票",message:'获得3级头衔才可发起投票哦~~'+this.QinglangData.content+"
";this.$placeholder.html(o)}else this.$placeholder.html(PageUnit.load("rich_poster_placeholder"));this.$editorContainer.on("setbackground",function(o,i){return"default"!==i&&i?(t.hideHolder=1,void t.$placeholder.hide()):void(e||(t.hideHolder=0,t._showPlaceHolder()))}),this.$placeholder.find("a").on("click",function(){var t="";"frs"==PageData.product?t="frs":"pb"==PageData.product&&(t="pb"),$.stats.track("发表回复框PlaceHolder","贴吧PC页面优化",t,"click")}),PosterContext.getContext().user.isLogin&&"贴吧意见反馈"==PosterContext.getContext().forum.name&&this.$placeholder.addClass("tb_poster_plain_placeholder").html(PageUnit.load("rich_poster_feedback"))},_showPlaceHolder:function(){var t=this.editor.getContent();0!=t.length||this.hideHolder||this.$placeholder.show()},initMousePwd:function(){this.MousePwd=this.use("common/widget/MousePwd"),this.MousePwd.start(["editor_content_wrapper"])},initSignature:function(){var t=this,e=this.$root.find(".j_poster_signature");e.hide(),PosterContext.getContext().user.isLogin&&this.$root.find("#ueditor_replace").one("click",function(){var o=t.use("common/widget/PostSignature",{$container:e,gameSignature:PosterContext.getContext().user.gameSignature});o.init(),e.show()})},initAntiSpamming:function(){var t=$.cookie("GET_TOPIC");if(PosterContext.getContext().user.isLogin&&(!t||t!=PosterContext.getContext().user.id)){$("body").append('');var e=$(document.createElement("script")),o="http://tongji.tieba.baidu.com/common/js/gettopic.js";e.tbattr({src:o,type:"text/javascript"}),$("body").append(e),$.cookie("GET_TOPIC",PosterContext.getContext().user.id,{expires:.5,path:"/"})}},isBeMember:function(){var t=window.PageData.user;return t.mParr_props&&t.mParr_props.level&&parseInt(t.mParr_props.level.props_id,10)>0&&1e3*t.mParr_props.level.end_time>Env.server_time?!0:!1},showPostSuccess:function(){var t="",e="",o="",i=window.PageData.user;if(i.mParr_props&&i.mParr_props.level&&this.isBeMember()){var s=i.mParr_props.level.props_id;e=[''+o+"发贴成功
"),$(''+PageUnit.load("dl_bubble_txt")+""+PageUnit.load("dl_bubble_link")+"
",arrow_dir:"down",bubble_css:{width:140,height:90,"z-index":$.getcurzIndex(),top:-90,left:-50},arrow_pos:{left:68},wrap:$(".tbui_aside_float_bar"),closeBtn:!0,level:1,arrowReq:!0},l=new UiBubbleTipBase(e),b=$.cookie("dlBubbleFlag");1!=b&&"1"==PageUnit.load("dl_bubble_switch")&&l.showBubble(),l.bind("onclose",function(){$.cookie("dlBubbleFlag",1,{expire:1}),l.closeBubble()}),$(window).on("resize",function(){var e=$(".tbui_aside_float_bar").css("left");"auto"==e?$(".j_dl_bubble").css({right:-22,left:"auto"}):$(".j_dl_bubble").css("left","50%")})}catch(t){throw"undefined"!=typeof alog&&alog("exception.fire","catch",{msg:t.message||t.description,path:"frs:widget/dl_bubble/dl_bubble.js",method:"",ln:44}),t}}}});_.Module.define({path:"common/widget/PlatformSpreadVideo",requires:[],sub:{ANIMATE_STYLE:{UP:1,DOWN:2},videoHeight:255,ch:document.documentElement.clientHeight||document.body.clientHeight,cw:document.documentElement.clientWidth||document.body.clientWidth,initial:function(t,o){var e=$.cookie("platform_spread_video_"+o),i=$.cookie("platform_video_spread_close_"+o),a=$.cookie("platform_video_spread_autoShow_"+o),n=null!=i,d=null==e&&!parseInt(e),s=$.browser.msie&&6==Number($.browser.version);return this.swfURL=t,this.opt=o,this.$videoWrap=$("#platform_spread_video"),this.$videoTopHeads=this.$videoWrap.find(".platform_video_head"),this.$videoContent=this.$videoWrap.find(".platform_video_content"),this.$upHead=this.$videoTopHeads.eq(0),this.$downHead=this.$videoTopHeads.eq(1),this.$downBtn=this.$upHead.find(".head_down_btn"),this.$upBtn=this.$downHead.find(".head_up_btn"),this.$closeBtns=this.$videoTopHeads.find(".head_close_btn"),this.shouldShowVideo=d,s||n?void this.$videoWrap.hide():($.stats.track("整体","贴吧视频",PageData.product,"show",{obj_type:"平台化",obj_name:o}),d&&null==a?($.cookie("platform_video_spread_autoShow_"+o,1,{expires:999,path:"/"}),this._animateTo(this.ANIMATE_STYLE.UP)):this._animateTo(this.ANIMATE_STYLE.DOWN),void this._bindEvent())},_animateTo:function(t){var o=this,e=o.$videoWrap,i=o.$videoContent,a=o.$downHead,n=o.$upHead,d=o.opt;t&o.ANIMATE_STYLE.UP?($.stats.track("观看","贴吧视频",PageData.product,"show",{obj_type:"平台化",obj_name:d}),i.show(),e.animate({bottom:0},600,function(){a.hide(),n.show(),setTimeout(function(){$.stats.track("有效观看","贴吧视频",PageData.product,"show",{obj_type:"平台化",obj_name:d})},5e3)}),o._loadSwf()):e.animate({bottom:-1*o.videoHeight},600,function(){i.hide(),n.hide(),a.show()})},_bindEvent:function(){var t=this,o=t.$videoWrap,e=t.$closeBtns,i=t.$upBtn,a=t.$downBtn,n=t.opt;e.on("click",function(){return $.stats.track("关闭按钮","贴吧视频",PageData.product,"click",{obj_type:"平台化",obj_name:n}),$.cookie("platform_video_spread_close_"+n,1,{expires:999,path:"/"}),o.hide(),!1}),i.on("click",function(){return t._animateTo(t.ANIMATE_STYLE.UP),!1}),a.on("click",function(){return $.stats.track("收起按钮","贴吧视频",PageData.product,"click",{obj_type:"平台化",obj_name:n}),t._animateTo(t.ANIMATE_STYLE.DOWN),!1}),a.one("click",function(){return $.cookie("platform_video_spread_"+n,1,{expires:999,path:"/"}),!1})},_loadSwf:function(){{var t=this,o=t.swfURL,e=t.opt;t.$videoContent}new $.swf(o,{id:"platform_video_spread_"+e,container:"#j_platform_video_content",width:340,height:255})}}});_.Module.define({path:"frs/widget/stats",sub:{_configs:{forum:null,forum_url:null,version:null},initial:function(t,e){try{if(this._configs=$.extend(this._configs,t),null!=e)for(var a=0;a
上传失败图片过小请上传大图'}return a},destroyJquery:function(t){t.remove(),t=null},imageHandler:function(){},checkURL:function(t){if(t=t.trim(),t.length<=0)return!1;0!==t.search(/http:\/\/|https:\/\//)&&(t+="http://");var e=/(.gif|.jpg|.jpeg|.png)$/i;return!e.test(t)||t.getByteLength()>this.urlLength?!1:t},layerBottom:function(t){var e="",a=this,i="upload"==t?"插入图片":"确 定",n=$(''),r=$(''+i+""),s=$(' 取 消'),l=$('');return l.append(r).append(s),n.append(l),"upload"==t?(e='\u5df2\u6210\u529f\u53d1\u8d77\u8ba4\u8bc1\uff01
','\u83b7\u5f9710\u4e2a\u59b9\u7eb8\u6295\u7968\uff0c\u4f60\u5c06\u88ab\u8ba4\u8bc1\u4e3a\u59b9\u7eb8\uff01
','\u540e\u5c06\u81ea\u52a8\u8df3\u8f6c\u5230\u59b9\u7eb8\u8ba4\u8bc1\u5e16
',"加入会员时间:"+this._formatDate(this._fancard_data.entertime)+"
","已加入粉丝会:"+this._fancard_data.fanclub_count+"个
","【福利印记】
',"有效期:2014年12月31日
【福利印记】
',"发福利有机会获得!
",'点我!
'+e.data.user_name+' 首届拳王争霸赛 - '+e.data.icon_name+'
'+c+'
要两个一起才够好!

游戏王印记
在【T豆小游戏】中连续3天,每天至少完成一局比赛,即可获得。
'+t[1]+"
",'"].join(""),u=new $.dialog({html:$.tb.format(n,i),width:460,title:"提示",holderClassName:"bawuGuideDlg"}),o=$(".bawuGuideDlg");o.find(".next_time_btn").click(function(){try{var e=['下次访问本吧吧务后台,可以从页面右侧的“进入吧务后台”入口访问
','','