Перейти к публикации
Дизайн и модификация IPS Community IPBSkinsBETA
Поиск в
  • Дополнительно...
Искать результаты, содержащие...
Искать результаты в...
COOLPIX

Симболы /t

Рекомендованные сообщения

привет

кто поможет мне, с этим кодом:

<?xml version="1.0" encoding="UTF-8"?>
<javascript app="bimchatbox">
 <file javascript_app="bimchatbox" javascript_location="front" javascript_path="controllers/chatbox" javascript_name="bimchatbox.js" javascript_type="controller" javascript_version="400005" javascript_position="1000050"><![CDATA[!function(t,D,u){"use strict";ips.controller.register("bim.chatbox.free",{param1:!1,param2:!1,param3:!1,param4:!1,param5:!1,param6:!0,param7:0,param8:/(\b(https?|ftp):\/\/[-A-Z0-9+&@#\/%?=~_|!:,.;]*[-A-Z0-9+&@#\/%=~_|])/gi,param9:/(\b(https?|ftp|file):\/\/[-A-Z0-9+&@#\/%?=~_|!:,.;\(\)]*[-A-Z0-9+&@#\/%=~_|])(\.jpg|\.png|\.gif|\.webp)/gi,param10:/^(?:https?:\/\/)?(?:www\.)?(?:youtu\.be\/|youtube\.com\/(?:embed\/|v\/|watch\?v=|watch\?.+&v=))((\w|-){11})(?:\S+)?$/,param11:/\uD83C\uDFF4(?:\uDB40\uDC67\uDB40\uDC62(?:\uDB40\uDC65\uDB40\uDC6E\uDB40\uDC67|\uDB40\uDC77\uDB40\uDC6C\uDB40\uDC73|\uDB40\uDC73\uDB40\uDC63\uDB40\uDC74)\uDB40\uDC7F|\u200D\u2620\uFE0F)|\uD83D\uDC69\u200D\uD83D\uDC69\u200D(?:\uD83D\uDC66\u200D\uD83D\uDC66|\uD83D\uDC67\u200D(?:\uD83D[\uDC66\uDC67]))|\uD83D\uDC68(?:\u200D(?:\u2764\uFE0F\u200D(?:\uD83D\uDC8B\u200D)?\uD83D\uDC68|(?:\uD83D[\uDC68\uDC69])\u200D(?:\uD83D\uDC66\u200D\uD83D\uDC66|\uD83D\uDC67\u200D(?:\uD83D[\uDC66\uDC67]))|\uD83D\uDC66\u200D\uD83D\uDC66|\uD83D\uDC67\u200D(?:\uD83D[\uDC66\uDC67])|\uD83C[\uDF3E\uDF73\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDB0-\uDDB3])|(?:\uD83C[\uDFFB-\uDFFF])\u200D(?:\uD83C[\uDF3E\uDF73\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDB0-\uDDB3]))|\uD83D\uDC69\u200D(?:\u2764\uFE0F\u200D(?:\uD83D\uDC8B\u200D(?:\uD83D[\uDC68\uDC69])|\uD83D[\uDC68\uDC69])|\uD83C[\uDF3E\uDF73\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDB0-\uDDB3])|\uD83D\uDC69\u200D\uD83D\uDC66\u200D\uD83D\uDC66|(?:\uD83D\uDC41\uFE0F\u200D\uD83D\uDDE8|\uD83D\uDC69(?:\uD83C[\uDFFB-\uDFFF])\u200D[\u2695\u2696\u2708]|\uD83D\uDC68(?:(?:\uD83C[\uDFFB-\uDFFF])\u200D[\u2695\u2696\u2708]|\u200D[\u2695\u2696\u2708])|(?:(?:\u26F9|\uD83C[\uDFCB\uDFCC]|\uD83D\uDD75)\uFE0F|\uD83D\uDC6F|\uD83E[\uDD3C\uDDDE\uDDDF])\u200D[\u2640\u2642]|(?:\u26F9|\uD83C[\uDFCB\uDFCC]|\uD83D\uDD75)(?:\uD83C[\uDFFB-\uDFFF])\u200D[\u2640\u2642]|(?:\uD83C[\uDFC3\uDFC4\uDFCA]|\uD83D[\uDC6E\uDC71\uDC73\uDC77\uDC81\uDC82\uDC86\uDC87\uDE45-\uDE47\uDE4B\uDE4D\uDE4E\uDEA3\uDEB4-\uDEB6]|\uD83E[\uDD26\uDD37-\uDD39\uDD3D\uDD3E\uDDB8\uDDB9\uDDD6-\uDDDD])(?:(?:\uD83C[\uDFFB-\uDFFF])\u200D[\u2640\u2642]|\u200D[\u2640\u2642])|\uD83D\uDC69\u200D[\u2695\u2696\u2708])\uFE0F|\uD83D\uDC69\u200D\uD83D\uDC67\u200D(?:\uD83D[\uDC66\uDC67])|\uD83D\uDC69\u200D\uD83D\uDC69\u200D(?:\uD83D[\uDC66\uDC67])|\uD83D\uDC68(?:\u200D(?:(?:\uD83D[\uDC68\uDC69])\u200D(?:\uD83D[\uDC66\uDC67])|\uD83D[\uDC66\uDC67])|\uD83C[\uDFFB-\uDFFF])|\uD83C\uDFF3\uFE0F\u200D\uD83C\uDF08|\uD83D\uDC69\u200D\uD83D\uDC67|\uD83D\uDC69(?:\uD83C[\uDFFB-\uDFFF])\u200D(?:\uD83C[\uDF3E\uDF73\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDB0-\uDDB3])|\uD83D\uDC69\u200D\uD83D\uDC66|\uD83C\uDDF6\uD83C\uDDE6|\uD83C\uDDFD\uD83C\uDDF0|\uD83C\uDDF4\uD83C\uDDF2|\uD83D\uDC69(?:\uD83C[\uDFFB-\uDFFF])|\uD83C\uDDED(?:\uD83C[\uDDF0\uDDF2\uDDF3\uDDF7\uDDF9\uDDFA])|\uD83C\uDDEC(?:\uD83C[\uDDE6\uDDE7\uDDE9-\uDDEE\uDDF1-\uDDF3\uDDF5-\uDDFA\uDDFC\uDDFE])|\uD83C\uDDEA(?:\uD83C[\uDDE6\uDDE8\uDDEA\uDDEC\uDDED\uDDF7-\uDDFA])|\uD83C\uDDE8(?:\uD83C[\uDDE6\uDDE8\uDDE9\uDDEB-\uDDEE\uDDF0-\uDDF5\uDDF7\uDDFA-\uDDFF])|\uD83C\uDDF2(?:\uD83C[\uDDE6\uDDE8-\uDDED\uDDF0-\uDDFF])|\uD83C\uDDF3(?:\uD83C[\uDDE6\uDDE8\uDDEA-\uDDEC\uDDEE\uDDF1\uDDF4\uDDF5\uDDF7\uDDFA\uDDFF])|\uD83C\uDDFC(?:\uD83C[\uDDEB\uDDF8])|\uD83C\uDDFA(?:\uD83C[\uDDE6\uDDEC\uDDF2\uDDF3\uDDF8\uDDFE\uDDFF])|\uD83C\uDDF0(?:\uD83C[\uDDEA\uDDEC-\uDDEE\uDDF2\uDDF3\uDDF5\uDDF7\uDDFC\uDDFE\uDDFF])|\uD83C\uDDEF(?:\uD83C[\uDDEA\uDDF2\uDDF4\uDDF5])|\uD83C\uDDF8(?:\uD83C[\uDDE6-\uDDEA\uDDEC-\uDDF4\uDDF7-\uDDF9\uDDFB\uDDFD-\uDDFF])|\uD83C\uDDEE(?:\uD83C[\uDDE8-\uDDEA\uDDF1-\uDDF4\uDDF6-\uDDF9])|\uD83C\uDDFF(?:\uD83C[\uDDE6\uDDF2\uDDFC])|\uD83C\uDDEB(?:\uD83C[\uDDEE-\uDDF0\uDDF2\uDDF4\uDDF7])|\uD83C\uDDF5(?:\uD83C[\uDDE6\uDDEA-\uDDED\uDDF0-\uDDF3\uDDF7-\uDDF9\uDDFC\uDDFE])|\uD83C\uDDE9(?:\uD83C[\uDDEA\uDDEC\uDDEF\uDDF0\uDDF2\uDDF4\uDDFF])|\uD83C\uDDF9(?:\uD83C[\uDDE6\uDDE8\uDDE9\uDDEB-\uDDED\uDDEF-\uDDF4\uDDF7\uDDF9\uDDFB\uDDFC\uDDFF])|\uD83C\uDDE7(?:\uD83C[\uDDE6\uDDE7\uDDE9-\uDDEF\uDDF1-\uDDF4\uDDF6-\uDDF9\uDDFB\uDDFC\uDDFE\uDDFF])|[#\*0-9]\uFE0F\u20E3|\uD83C\uDDF1(?:\uD83C[\uDDE6-\uDDE8\uDDEE\uDDF0\uDDF7-\uDDFB\uDDFE])|\uD83C\uDDE6(?:\uD83C[\uDDE8-\uDDEC\uDDEE\uDDF1\uDDF2\uDDF4\uDDF6-\uDDFA\uDDFC\uDDFD\uDDFF])|\uD83C\uDDF7(?:\uD83C[\uDDEA\uDDF4\uDDF8\uDDFA\uDDFC])|\uD83C\uDDFB(?:\uD83C[\uDDE6\uDDE8\uDDEA\uDDEC\uDDEE\uDDF3\uDDFA])|\uD83C\uDDFE(?:\uD83C[\uDDEA\uDDF9])|(?:\uD83C[\uDFC3\uDFC4\uDFCA]|\uD83D[\uDC6E\uDC71\uDC73\uDC77\uDC81\uDC82\uDC86\uDC87\uDE45-\uDE47\uDE4B\uDE4D\uDE4E\uDEA3\uDEB4-\uDEB6]|\uD83E[\uDD26\uDD37-\uDD39\uDD3D\uDD3E\uDDB8\uDDB9\uDDD6-\uDDDD])(?:\uD83C[\uDFFB-\uDFFF])|(?:\u26F9|\uD83C[\uDFCB\uDFCC]|\uD83D\uDD75)(?:\uD83C[\uDFFB-\uDFFF])|(?:[\u261D\u270A-\u270D]|\uD83C[\uDF85\uDFC2\uDFC7]|\uD83D[\uDC42\uDC43\uDC46-\uDC50\uDC66\uDC67\uDC70\uDC72\uDC74-\uDC76\uDC78\uDC7C\uDC83\uDC85\uDCAA\uDD74\uDD7A\uDD90\uDD95\uDD96\uDE4C\uDE4F\uDEC0\uDECC]|\uD83E[\uDD18-\uDD1C\uDD1E\uDD1F\uDD30-\uDD36\uDDB5\uDDB6\uDDD1-\uDDD5])(?:\uD83C[\uDFFB-\uDFFF])|(?:[\u231A\u231B\u23E9-\u23EC\u23F0\u23F3\u25FD\u25FE\u2614\u2615\u2648-\u2653\u267F\u2693\u26A1\u26AA\u26AB\u26BD\u26BE\u26C4\u26C5\u26CE\u26D4\u26EA\u26F2\u26F3\u26F5\u26FA\u26FD\u2705\u270A\u270B\u2728\u274C\u274E\u2753-\u2755\u2757\u2795-\u2797\u27B0\u27BF\u2B1B\u2B1C\u2B50\u2B55]|\uD83C[\uDC04\uDCCF\uDD8E\uDD91-\uDD9A\uDDE6-\uDDFF\uDE01\uDE1A\uDE2F\uDE32-\uDE36\uDE38-\uDE3A\uDE50\uDE51\uDF00-\uDF20\uDF2D-\uDF35\uDF37-\uDF7C\uDF7E-\uDF93\uDFA0-\uDFCA\uDFCF-\uDFD3\uDFE0-\uDFF0\uDFF4\uDFF8-\uDFFF]|\uD83D[\uDC00-\uDC3E\uDC40\uDC42-\uDCFC\uDCFF-\uDD3D\uDD4B-\uDD4E\uDD50-\uDD67\uDD7A\uDD95\uDD96\uDDA4\uDDFB-\uDE4F\uDE80-\uDEC5\uDECC\uDED0-\uDED2\uDEEB\uDEEC\uDEF4-\uDEF9]|\uD83E[\uDD10-\uDD3A\uDD3C-\uDD3E\uDD40-\uDD45\uDD47-\uDD70\uDD73-\uDD76\uDD7A\uDD7C-\uDDA2\uDDB0-\uDDB9\uDDC0-\uDDC2\uDDD0-\uDDFF])|(?:[#\*0-9\xA9\xAE\u203C\u2049\u2122\u2139\u2194-\u2199\u21A9\u21AA\u231A\u231B\u2328\u23CF\u23E9-\u23F3\u23F8-\u23FA\u24C2\u25AA\u25AB\u25B6\u25C0\u25FB-\u25FE\u2600-\u2604\u260E\u2611\u2614\u2615\u2618\u261D\u2620\u2622\u2623\u2626\u262A\u262E\u262F\u2638-\u263A\u2640\u2642\u2648-\u2653\u265F\u2660\u2663\u2665\u2666\u2668\u267B\u267E\u267F\u2692-\u2697\u2699\u269B\u269C\u26A0\u26A1\u26AA\u26AB\u26B0\u26B1\u26BD\u26BE\u26C4\u26C5\u26C8\u26CE\u26CF\u26D1\u26D3\u26D4\u26E9\u26EA\u26F0-\u26F5\u26F7-\u26FA\u26FD\u2702\u2705\u2708-\u270D\u270F\u2712\u2714\u2716\u271D\u2721\u2728\u2733\u2734\u2744\u2747\u274C\u274E\u2753-\u2755\u2757\u2763\u2764\u2795-\u2797\u27A1\u27B0\u27BF\u2934\u2935\u2B05-\u2B07\u2B1B\u2B1C\u2B50\u2B55\u3030\u303D\u3297\u3299]|\uD83C[\uDC04\uDCCF\uDD70\uDD71\uDD7E\uDD7F\uDD8E\uDD91-\uDD9A\uDDE6-\uDDFF\uDE01\uDE02\uDE1A\uDE2F\uDE32-\uDE3A\uDE50\uDE51\uDF00-\uDF21\uDF24-\uDF93\uDF96\uDF97\uDF99-\uDF9B\uDF9E-\uDFF0\uDFF3-\uDFF5\uDFF7-\uDFFF]|\uD83D[\uDC00-\uDCFD\uDCFF-\uDD3D\uDD49-\uDD4E\uDD50-\uDD67\uDD6F\uDD70\uDD73-\uDD7A\uDD87\uDD8A-\uDD8D\uDD90\uDD95\uDD96\uDDA4\uDDA5\uDDA8\uDDB1\uDDB2\uDDBC\uDDC2-\uDDC4\uDDD1-\uDDD3\uDDDC-\uDDDE\uDDE1\uDDE3\uDDE8\uDDEF\uDDF3\uDDFA-\uDE4F\uDE80-\uDEC5\uDECB-\uDED2\uDEE0-\uDEE5\uDEE9\uDEEB\uDEEC\uDEF0\uDEF3-\uDEF9]|\uD83E[\uDD10-\uDD3A\uDD3C-\uDD3E\uDD40-\uDD45\uDD47-\uDD70\uDD73-\uDD76\uDD7A\uDD7C-\uDDA2\uDDB0-\uDDB9\uDDC0-\uDDC2\uDDD0-\uDDFF])\uFE0F|(?:[\u261D\u26F9\u270A-\u270D]|\uD83C[\uDF85\uDFC2-\uDFC4\uDFC7\uDFCA-\uDFCC]|\uD83D[\uDC42\uDC43\uDC46-\uDC50\uDC66-\uDC69\uDC6E\uDC70-\uDC78\uDC7C\uDC81-\uDC83\uDC85-\uDC87\uDCAA\uDD74\uDD75\uDD7A\uDD90\uDD95\uDD96\uDE45-\uDE47\uDE4B-\uDE4F\uDEA3\uDEB4-\uDEB6\uDEC0\uDECC]|\uD83E[\uDD18-\uDD1C\uDD1E\uDD1F\uDD26\uDD30-\uDD39\uDD3D\uDD3E\uDDB5\uDDB6\uDDB8\uDDB9\uDDD1-\uDDDD])/g,param12:["‘"],param13:"",param14:null,param15:null,initialize:function(){this.on("click",'[data-action="toggleSound"]',this.toggleSound),this.on("click",'[data-action="mention"]',this.mention),this.on("click",'[data-action="connect"]',this.connect),this.on("click",'[data-action="chat"]',this.chat),this.on("submit",'[data-action="chatform"]',this.chat),this.on("keypress",'[data-action="saveMSG"]',this.saveMSG),this.on("click",'[data-action="remove"]',this.remove),this.on("dblclick",'[data-action="editMSG"]',this.editMSG),this.on("click",'[data-action="editMSGButton"]',this.editMSG),this.on("click",'[data-action="loadMore"]',this.loadMore),this.on("click",'[data-action="playVideoInPopup"]',this.playVideoInPopup),this.on("click",'[data-action="playVideoInIframe"]',this.playVideoInIframe),this.on("click",'[data-action="bimGiphy"]',this.bimGiphy),this.on("click",'[data-action="bimGuggy"]',this.bimGuggy),this.on("focus",".bimcb_chatInput",this.focusChatInput),this.on("blur",".bimcb_chatInput",this.blurChatInput),this.setup()},setup:function(){var D=this;1!=ips.getSetting("chatbox_topStyle")&&t("#chatcontent img").imagesLoaded(function(D){t("#chatboxWrap").scrollTop(t("#chatboxWrap").prop("scrollHeight"))}),this.scope.find('[data-action="toggleSound"] .fa').replaceWith(t("<i/>").addClass("fa").addClass(ips.getSetting("chatbox_soundEnabled")?"fa-volume-up":"fa-volume-off")),ips.loader.get(["core/interface/howler/howler.core.min.js"]).then(function(){D.param15=new Howl({src:ips.getSetting("baseURL")+"applications/bimchatbox/interface/sounds/message.mp3",autoplay:!1})}),t("#elChatbox").prepend(ips.templates.render("core.editor.emoticons",{id:"elEmoticons_chatbox",editor:"chatboxForm"})),t("#elEmoticons_chatbox").click(function(){t("#elChatbox").trigger("contentChange",[t("#elChatbox")]),t(".ipsNavBar_primary").css("zIndex",1e3)}),"ltr"==document.dir?t(".bimcb_chatInput").css({"padding-right":t(".cbItems").width()+15+"px"}):t(".bimcb_chatInput").css({"padding-left":t(".cbItems").width()+15+"px"}),this.loop(!0)},loop:function(t){var D=this;1==t&&clearTimeout(D.param4);var u=ips.getSetting("chatbox_conf_interval")>1e4?ips.getSetting("chatbox_conf_interval"):1e4;D.getMessages(function(){D.param4=setTimeout(function(){D.loop(!0)},u)})},getMessages:function(D){if(this.param3)return!1;if(this.param1)return!1;if(this.param1=!0,1!=ips.getSetting("chatbox_topStyle"))var u=this.param7>0?this.param7:t("#chatcontent").children().last().attr("id");else u=this.param7>0?this.param7:t("#chatcontent").children().first().attr("id");var e=this;ips.getAjax()(ips.getSetting("baseURL")+"index.php?app=bimchatbox&module=chatbox&controller=chatbox&do=getmsg",{dataType:"json",data:{lastID:u||0,loadMoreMode:0}}).done(function(a){if("error"==a.type)ips.ui.alert.show({message:a.message});else if(t("#chatcontent").hasClass("ipsLoading")&&t("#chatcontent").removeClass("ipsLoading"),a.content&&u!=a.lastID){if(1!=ips.getSetting("chatbox_topStyle")){if(t("#chatboxWrap").scrollTop()+t("#chatboxWrap").innerHeight()-t("#chatboxWrap").prop("scrollHeight")>=-30)var i=1;t("#chatcontent").append(e._chatRow(a.content)),"1"==i&&t("#chatcontent img").imagesLoaded(function(D){t("#chatboxWrap").scrollTop(t("#chatboxWrap").prop("scrollHeight"))})}else t("#chatcontent").prepend(e._chatRow(a.content));var o=t("#chatcontent .chat_row").length-ips.getSetting("chatbox_maxMSG");o>0&&t("#chatcontent .chat_row:nth"+(1!=ips.getSetting("chatbox_topStyle")?"":"-last")+"-child(-n+"+o+")").remove(),!ips.getSetting("chatbox_soundEnabled")||e.param6||e.param2||e.param15.play(),e.param7=a.lastID,e.param6=!1,e.param2=!1}e.param1=!1,"function"==typeof D&&D()}).fail(function(){e.disconnect()})},loadMore:function(D){if(this.param1)return!1;if(this.param1=!0,1==ips.getSetting("chatbox_topStyle"))var u=t("#chatcontent").children().last().attr("id");else u=t("#chatcontent").children().first().attr("id");var e=this;ips.getAjax()(ips.getSetting("baseURL")+"index.php?app=bimchatbox&module=chatbox&controller=chatbox&do=getmsg",{type:"post",dataType:"json",data:{lastID:u||0,loadMoreMode:1}}).done(function(D){if("error"==D.type)ips.ui.alert.show({message:D.message});else if(1==e.param5&&e.connected(),D.content)if(1==ips.getSetting("chatbox_topStyle"))t("#chatcontent").append(e._chatRow(D.content)),t("#chatboxWrap").animate({scrollTop:t("#"+D.lastID).position().top},1e3);else{var u=t("#chatcontent").height()+t("#chatboxWrap").height()-90;t("#chatcontent").prepend(e._chatRow(D.content)),t("#chatcontent img").imagesLoaded(function(D){var e=t("#chatcontent").height();t("#chatboxWrap").animate({scrollTop:e-u},1e3)})}else ips.ui.alert.show({message:ips.getString("chatbox_error_noolder")});e.param1=!1}).fail(function(){e.disconnect()})},disconnect:function(){clearTimeout(self.param4);var D=ips.getString("chatbox_disconnect");return this.param5=!0,t("#btnConnect").attr("disabled",!1),t("#btnConnect").html(ips.getString("chatbox_reconnect")),t(".cbDisconnect").length||(t(".bimcb_chatArea").hide(),t("#chatcontent").prepend(ips.templates.render("chatbox._disconnected")),t("#chatBoxForm").prepend(ips.templates.render("chatbox._disconnectedMSG",{msg:D,btn:ips.getString("chatbox_reconnect")}))),!1},connect:function(){return t("#btnConnect").attr("disabled",!0),t("#btnConnect").html('<i class="fa fa-refresh fa-spin"></i> '+ips.getString("chatbox_connecting")),this.param1=!1,this.loop("true"),!1},connected:function(){return this.param5=!1,t(".bimcb_chatArea").show(),t(".cbDisconnect").remove(),t(".cbDisconnectMSG").remove(),!1},chat:function(D){if(this.param3)return!1;this.param2=!0;var u=this,e=u._escapeHTML(t('[name="txt"]').val());return ips.getSetting("chatbox_maxEmoticons")>0&&u._countEmoticons()>ips.getSetting("chatbox_maxEmoticons")?(ips.ui.alert.show({message:ips.getString("chatbox_error_toomanyemo",{num:ips.getSetting("chatbox_maxEmoticons")})}),!1):(u._toggleForm("off"),ips.getAjax()(ips.getSetting("baseURL")+"index.php?app=bimchatbox&module=chatbox&controller=chatbox&do=chat",{type:"post",dataType:"json",data:{txt:e,csrfKey:ips.getSetting("csrfKey")}}).done(function(D){"error"==D.type?ips.ui.alert.show({message:D.message}):(t('[name="txt"]').val(""),u.loop(!0))}).always(function(){u._toggleForm("on")}),!1)},_chatRow:function(t){for(var D=t.split("~~||~~"),u="",e=0;e<D.length;e++)u+=this._chatDetail(D[e]);return u},_chatDetail:function(t){var D=t.split("~~#~~");if(D[0])var u=ips.templates.render("chatbox.row",{id:D[0],memberID:D[1],memberName:D[2],memberNameFormat:D[3],memberPhoto:D[4],memberUrl:D[5],message:this._parseEmoticonsAndBbcode(D[6]),time:this._getChatTime(D[7]),canEdit:D[8],canDelete:D[9],callme:-1!=D[6].indexOf("@"+ips.getSetting("chatbox_myname"))?1:0});return u},_countEmoticons:function(){var D,u=t('[name="txt"]').val().split(" "),e=0;for(D=0;D<u.length;++D){u[D]in ips.getSetting("chatbox_Emoticons")&&e++}return e},_parseEmoticonsAndBbcode:function(t){var u=this;t=t.replace(/(\r\n|\n|\r)/gm,""),t=(t=(t=u._parseForContent(t)).replace(this.param11,function(t){return u.param12.indexOf(t)<0?"twemoji"==ips.getSetting("emoji_style")?"<img class='chatboxEmoji' src='"+("https://twemoji.maxcdn.com/2/72x72/"+u._emojiUnicode(t)+".png")+"'>":"<span class='chatboxEmoji'>"+t+"</span>":t})).replace("!","&#33;"),D.each(ips.getSetting("chatbox_Emoticons"),function(D,e){var a="$1<img src='"+D+"'>$2",i=u._escapeRegex(e);i=i.replace("<","&lt;").replace(">","&gt;");for(var o=new RegExp("(^|\\s)"+i+"(\\s|$)","gi");t.match(o);)t=t.replace(o,a)});var e={},a=0;return D.each(ips.getSetting("badwords"),function(i,o){var n=null,s=null;for(D.isUndefined(i.swop)&&(i.swop="#####"),n=i.m_exact?new RegExp("(^|\\b|\\s)"+u._escapeRegex(o)+"(\\b|!|\\?|\\.|,|$)","gi"):new RegExp(u._escapeRegex(o),"gi");s=n.exec(t);)null!==s&&(i.m_exact?e["__BW"+a+"__"]=s[1]+i.swop+s[2]:e["__BW"+a+"__"]=i.swop,t=t.replace(s[0],"__BW"+a+"__"),a++)}),D.each(e,function(D,u){t=t.replace(u,D)}),t},_emojiUnicode:function(t){var D;return 1===t.length&&(D=t.charCodeAt(0)),(D=1024*(t.charCodeAt(0)-55296)+(t.charCodeAt(1)-56320)+65536)<0&&(D=t.charCodeAt(0)),D.toString("16")},_escapeRegex:function(t){if(!this._sRE){this._sRE=new RegExp("(\\"+["/",".","*","+","?","|","(",")","[","]","{","}","\\","$","^"].join("|\\")+")","g")}return t.replace(this._sRE,"\\$1")},_escapeHTML:function(t){var D=document.createElement("div");return D.appendChild(document.createTextNode(t)),encodeURIComponent(D.innerHTML)},_parseForContent:function(D){1==ips.getSetting("chatbox_imgPost")&&t.trim(D).match(this.param9)&&(D=D.replace(this.param9,function(t){return ips.templates.render("chatbox.parsedImage",{url:t})})),1==ips.getSetting("chatbox_videoPost")&&t.trim(D).match(this.param10)&&(D=D.replace(this.param10,function(t){var D=/embed\//i.test(t)?t.split(/embed\//)[1].split('"')[0]:t.split(/v\/|v=|youtu\.be\//)[1].split(/[?&]/)[0],u="https://img.youtube.com/vi/"+D+"/mqdefault.jpg";return ips.templates.render("chatbox.parsedVideo",{source:"youtube",id:D,img:u})}));var u=0,e=this;return D=D.replace(this.param8,function(t){var a=D.indexOf(t,u),i=t;return"src='"!==D.substring(a,a-5)&&'srcset="'!==D.substring(a,a-8)&&(i='<a href="'+t+'" target="_blank" class="chatboxLink" rel="noopener noreferrer">'+e.truncateURL(t,60)+"</a>"),u=a+t.length,i})},truncateURL:function(t,D,u){if(t.length<=D)return t;var e=D-(u=u||"...").length,a=Math.ceil(e/2),i=Math.floor(e/2);return t.substr(0,a)+u+t.substr(t.length-i)},_toggleForm:function(D){"off"==D?(t('[name="txt"]').prop("disabled",!0),t('[id="chat_button"]').prop("disabled",!0)):(t('[name="txt"]').prop("disabled",!1),t('[id="chat_button"]').prop("disabled",!1),t('[name="txt"]').focus())},_getChatTime:function(t){var D=new Date,u=parseInt(t)?parseInt(t):parseInt((new Date).getTime());D.setTime(1e3*u);var e=D.getHours(),a=D.getMinutes()+"",i=D.getDate(),o=D.getYear(),n=ips.getString("chatbox_month_"+D.getMonth()),s=new Date,r=s.getDate(),c=s.getYear(),p=ips.getString("chatbox_month_"+D.getMonth());return 1==a.length&&(a="0"+a),D=ips.getSetting("chatbox_24h")?e+":"+a:e>12?e-12+":"+a+" "+ips.getString("chatbox_time_pm"):0==e?"12:"+a+" "+ips.getString("chatbox_time_am"):12==e?e+":"+a+" "+ips.getString("chatbox_time_pm"):e+":"+a+" "+ips.getString("chatbox_time_am"),D=i==r&&n==p&&o==c?ips.getString("chatbox_today")+" "+D:i+" "+n+" "+D},editMSG:function(D){var u=this,e=t(D.currentTarget).attr("data-id");return this.param3?(t("#chatraw_"+e).html(this._parseEmoticonsAndBbcode(t("#editmsg_"+e).val())),t('[data-action="editMSGButton"][data-id="'+e+'"]').html('<i class="fa fa-pencil-square"></i>'),this.param3=!1,this._toggleForm("on"),!1):(ips.getAjax()(ips.getSetting("baseURL")+"index.php?app=bimchatbox&module=chatbox&controller=chatbox&do=edit&id="+e,{type:"post",dataType:"json",data:{id:e,csrfKey:ips.getSetting("csrfKey")}}).done(function(D){if("error"==D.type)ips.ui.alert.show({message:D.message});else{var a=ips.templates.render("chatbox.editForm",{id:e,content:D.content});t("#chatraw_"+e).html(a),t('[data-action="editMSGButton"][data-id="'+e+'"]').html(ips.getString("chatbox_cancel")).attr("_title",ips.getString("chatbox_cancel")),u.param3=!0,u._toggleForm("off")}}),!1)},saveMSG:function(D,u){if(13==D.which){var e=this;u=u>0?u:t(D.currentTarget).attr("data-id");return ips.getAjax()(ips.getSetting("baseURL")+"index.php?app=bimchatbox&module=chatbox&controller=chatbox&do=saveMSG",{type:"post",dataType:"json",data:{id:u,txt:e._escapeHTML(t("#editmsg_"+u).val()),csrfKey:ips.getSetting("csrfKey")}}).done(function(D){"error"==D.type?ips.ui.alert.show({message:D.message}):(ips.ui.flashMsg.show(D.message),t("#chatraw_"+u).html(e._parseEmoticonsAndBbcode(D.txt)),t('[data-action="editMSGButton"][data-id="'+u+'"]').html('<i class="fa fa-pencil-square"></i>'),e.param3=!1,e._toggleForm("on"),e.loop(!0))}),!1}},remove:function(D){if(!confirm(ips.getString("confirmDelete")))return!1;var u=ips.getSetting("baseURL")+"index.php?app=bimchatbox&module=chatbox&controller=chatbox&do=delete",e=t(D.currentTarget).attr("data-id");return ips.getAjax()(u,{type:"post",dataType:"json",data:{id:e,csrfKey:ips.getSetting("csrfKey")}}).done(function(D){"error"==D.type?ips.ui.alert.show({message:D.message}):(ips.ui.flashMsg.show(D.message),t("#"+e).remove())}),!1},mention:function(D){var u=t(D.currentTarget).attr("data-member"),e=t('[name="txt"]').val()+" @"+u+" ";return t('[name="txt"]').val(e),t('[name="txt"]').focus(),!1},toggleSound:function(D){D.preventDefault(),this.scope.find('[data-action="toggleSound"] .fa').replaceWith(t("<i/>").addClass("fa").addClass(ips.getSetting("chatbox_soundEnabled")?"fa-volume-off":"fa-volume-up").removeClass(ips.getSetting("chatbox_soundEnabled")?"fa-volume-up":"fa-volume-off")),ips.setSetting("chatbox_soundEnabled",!ips.getSetting("chatbox_soundEnabled")),ips.utils.db.set("chatbox","sounds",ips.getSetting("chatbox_soundEnabled"))},playVideoInPopup:function(D){this.stopPlayingVideos();var u=t(D.currentTarget).attr("data-videoSource"),e=t(D.currentTarget).attr("data-videoId");return ips.ui.dialog.create({fixed:!1,size:"medium",url:"index.php?app=bimchatbox&module=chatbox&controller=chatbox&do=playvideo",forceReload:!0,ajax:{type:"post",data:{source:u,id:e}}}).show(),!1},playVideoInIframe:function(D){this.stopPlayingVideos();var u=t(D.currentTarget).closest(".cbVideo"),e="https://www.youtube.com/embed/"+t(D.currentTarget).attr("data-videoId")+"?autoplay=1";return u.html(ips.templates.render("chatbox.videoIframe",{play:e})),!1},stopPlayingVideos:function(){t(".cbVideoContainer").each(function(){var D=t(this).find(".cbPlayer");if(0!==D.length){var u=D.attr("src"),e=/embed\//i.test(u)?u.split(/embed\//)[1].split('"')[0]:u.split(/v\/|v=|youtu\.be\//)[1].split(/[?&]/)[0],a="http://img.youtube.com/vi/"+(e=e.replace("?autoplay=1",""))+"/mqdefault.jpg";t(this).html(ips.templates.render("chatbox.parsedVideo",{source:"youtube",id:e,img:a}))}})},focusChatInput:function(){"cmd"!=ips.getSetting("chatbox_giphy")&&"both"!=ips.getSetting("chatbox_giphy")&&"cmd"!=ips.getSetting("chatbox_guggy")&&"both"!=ips.getSetting("chatbox_guggy")||(this.param14=setInterval(D.bind(this.checkTyping,this),700))},blurChatInput:function(){clearInterval(this.param14)},checkTyping:function(){var D=t('[name="txt"]').val();D!=this.param13&&(0==D.indexOf("/guggy ")||0==D.indexOf("/giphy ")?(this.param13=D,0!=D.indexOf("/guggy ")||"cmd"!=ips.getSetting("chatbox_guggy")&&"both"!=ips.getSetting("chatbox_guggy")?0!=D.indexOf("/giphy ")||"cmd"!=ips.getSetting("chatbox_giphy")&&"both"!=ips.getSetting("chatbox_giphy")||this.cmdMedia("giphy"):this.cmdMedia("guggy")):t(".chatboxMedia").is(":visible")&&(t(".chatboxMedia").empty(),t(".chatboxMedia").hide()))},cmdMedia:function(D){var u=this,e=u.param13.substring(D.length+2);if(this._ajax&&this._ajax.abort&&this._ajax.abort(),t(".chatboxMedia").is(":visible")||t(".chatboxMedia").show(),t(".chatboxMedia").empty(),t(".chatboxMedia").addClass("ipsLoading"),"guggy"==D)var a="index.php?app=core&module=system&controller=plugins&do=bimGuggy&editorId=guggyCMD";else a="index.php?app=core&module=system&controller=plugins&do=bimGiphy&editorId=giphyCMD";this._ajax=ips.getAjax()(ips.getSetting("baseURL")+a,{data:{q:e},type:"post"}).done(function(D){t(".chatboxMedia").html(D),t(document).trigger("contentChange",[u.scope.find(".chatboxMedia")])}).always(function(){t(".chatboxMedia").removeClass("ipsLoading")})},bimGiphy:function(){var t=ips.getSetting("baseURL")+"index.php?app=core&module=system&controller=plugins&do=bimGiphy&editorId=chatbox",u=ips.utils.db.get("bimgiphy_gif","recent"),e=null;return D.isArray(u)&&(e=JSON.stringify(u)),ips.ui.dialog.create({fixed:!1,size:"medium",title:ips.getString("bim_giphy"),url:t,forceReload:!0,ajax:{type:"post",data:{recent:e}}}).show(),!1},bimGuggy:function(){var t=ips.getSetting("baseURL")+"index.php?app=core&module=system&controller=plugins&do=bimGuggy&editorId=chatbox",u=ips.utils.db.get("bimguggy_gif","recent"),e=null;return D.isArray(u)&&(e=JSON.stringify(u)),ips.ui.dialog.create({fixed:!1,size:"medium",title:ips.getString("bim_guggy"),url:t,forceReload:!0,ajax:{type:"post",data:{recent:e}}}).show(),!1}})}(jQuery,_),function(t,D,u){"use strict";ips.controller.mixin("bim.chatbox.emoji","core.global.editor.emoticons",!0,function(){this.before("insertEmoji",function(D){if("chatboxForm"==this.editorID){var u=t(D.currentTarget).attr("data-emoji"),e=null;if(u.indexOf("custom-")>=0)e=t(D.currentTarget).find("img").attr("title");else{var a=t(D.currentTarget).find(".ipsEmoji");e=a.attr("src")&&null!=a.attr("src")?a.attr("alt"):t(D.currentTarget).find(".ipsEmoji").html()}var i=t('[name="txt"]').val()+" "+e;t('[name="txt"]').val(i),t('[name="txt"]').focus(),ips.utils.emoji.logUse(u)}}),this.after("setup",function(){if(["ipsviet.com"].indexOf(document.domain)>-1)return!1;var D="<div id='cbCopyright' class='ipsType ipsType_center ipsType_small ipsType_light ipsPad_half'>";D+="Chatbox "+ips.getSetting("chatbox_version")+" by <a href='https://ipsviet.com' target=_blank>IPSViet.com</a>",D+="</div>",t('[data-controller="bim.chatbox.manage"]').length&&t('[data-controller="bim.chatbox.manage"]').find("#cbCopyright").length<=0&&t('[data-controller="bim.chatbox.manage"]').append(D),t("#elEmoticons_chatbox_menu").find("#cbCopyright").length<=0&&t("#elEmoticons_chatbox_menu .ipsMenu_footerBar").append(D),t("#cbCopyright").css({display:"block","font-size":"10px",visibility:"visible"})})})}(jQuery,_),ips.templates.set("chatbox.row"," <li class='ipsDataItem chat_row {{#callme}}ipsDataItem_new{{/callme}}' id='{{id}}'>\t<div class='ipsPad_half {{#memberPhoto}}ipsPhotoPanel ipsPhotoPanel_tiny{{/memberPhoto}} ipsClearfix'>\t\t{{#memberPhoto}}\t\t\t<a href='{{memberUrl}}' class='ipsUserPhoto ipsUserPhoto_tiny' id='ips_uid_{{memberID}}'>\t\t\t\t<img src='{{memberPhoto}}' alt=''>\t\t\t</a>\t\t{{/memberPhoto}}\t\t<div>\t\t\t<a href='#' data-action='mention' data-member='{{memberName}}'>{{{memberNameFormat}}}</a>\t\t\t<span class='ipsPos_right'>\t\t\t\t<span class='ipsType_small ipsType_light'>{{time}}</span>\t\t\t\t{{#canEdit}}<a href='#' data-action='editMSGButton' data-id='{{id}}'><i class='fa fa-pencil-square'></i></a>{{/canEdit}}\t\t\t\t{{#canDelete}}<a href='#' data-action='remove' data-id='{{id}}'><i class='fa fa-minus-square'></i></a>{{/canDelete}}\t\t\t</span>\t\t\t<div class='ipsList_inline' id='chatraw_{{id}}' data-id='{{id}}' {{#canEdit}}data-action='editMSG'{{/canEdit}}>{{{message}}}</div>\t\t</div>\t</div></li>"),ips.templates.set("chatbox.parsedImage"," <a href='{{url}}' class='ipsImage ipsThumb_small' data-ipslightbox>\t<img src='{{url}}' class='cbImg'></a>"),ips.templates.set("chatbox.parsedVideo"," <div class='cbVideoContainer'>\t<div class='cbVideo ipsSpacer_both ipsSpacer_half'>\t\t<img src='{{img}}'>\t\t<a href='#' data-action='playVideoInIframe' data-videoId='{{id}}'></a>\t</div>\t<a class='cbVideoPopupOpen' title='{{#lang}}cb_expandPlayer{{/lang}}' data-action='playVideoInPopup' data-videoSource='{{source}}' data-videoId='{{id}}'>\t\t<i class='fa fa-window-maximize' aria-hidden='true'></i>&nbsp;&nbsp;{{#lang}}cb_expandPlayer{{/lang}}\t</a></div>"),ips.templates.set("chatbox.videoIframe"," <iframe class='cbPlayer' width='200' height='113' src='{{play}}' frameborder='0' allow='autoplay; encrypted-media' allowfullscreen></iframe>"),ips.templates.set("chatbox._disconnected"," <div class='cbDisconnect'></div>"),ips.templates.set("chatbox._disconnectedMSG"," <div class='ipsPad_half ipsType_warning cbDisconnectMSG'><i class='fa fa-exclamation-triangle'></i> {{msg}} <a href='#' class='ipsButton ipsButton_primary ipsButton_verySmall' id='btnConnect' data-action='connect'>{{btn}}</a></div>"),ips.templates.set("chatbox.editForm"," <input type='text' class='bimcb_editform' id='editmsg_{{id}}' data-action='saveMSG' data-id='{{id}}' autocomplete='off' value='{{content}}'>");]]></file>
</javascript>

я бы хотел убрать симболы /t D u

и если возможно как-то конвертировать в простом Java...

Поделиться сообщением


Ссылка на сообщение

А в чем проблема их убрать?

Поделиться сообщением


Ссылка на сообщение
17 минут назад, siv1987 сказал:

А в чем проблема их убрать?

Я хочу внести некоторые изменения, но все слишком запутано

возможно как-то сделать более понятным этот код?

Поделиться сообщением


Ссылка на сообщение

В интернете полно сервисов для форматирования кода

Ищите js beautifier

Поделиться сообщением


Ссылка на сообщение

Создайте аккаунт или войдите в него для комментирования

Вы должны быть пользователем, чтобы оставить комментарий

Создать аккаунт

Зарегистрируйтесь для получения аккаунта. Это просто!

Зарегистрировать аккаунт

Войти

Уже зарегистрированы? Войдите здесь.

Войти сейчас

  • Сейчас на странице   0 пользователей

    Нет пользователей, просматривающих эту страницу.

×
×
  • Создать...