PageSourceSearch

https://www.dogdrip.net/modules/board/skins/eden/assets/js/board.js?t=1775588546

js dogdrip.net collected 2026-10-04 00:06:44 UTC 14,446 bytes, 1 lines download raw bytes

1var $=jQuery,unifiedCommentTemplate=null,reComment=($(document).ready(function(){0<$("#unified-comment-form").length&&(unifiedCommentTemplate=$("#unified-comment-form").clone(!0))}),function(e,t,o){var n,i,c,r="recomment-write-"+t,a=$("#"+r);0<a.length?a.remove():(n=(unifiedCommentTemplate=unifiedCommentTemplate||$("#unified-comment-form").clone(!0)).clone(!0),n.attr("id",r).removeClass("comment-form").addClass("recomment-write"),i="temp-recomment-"+t,c="editor-recomment-"+t,n.find(".dynamic-temp-textarea").attr("id",i).val(""),n.find(".dynamic-editor-textarea").attr("id",c),n.find(".recomment-only-field").show().val(t),n.find(".recomment-only").show(),n.find("input[name=error_return_url]").val("/"+e),n.find("input[name=mid]").val(current_mid),n.find("input[name=document_srl]").val(e),n.find("input[name=parent_srl]").val(t),a="is_secret_recmt_"+t,r="notify_message_recmt_"+t,n.find(".dynamic-secret-checkbox").attr("id",a),n.find(".dynamic-secret-label").attr("for",a),n.find(".dynamic-notify-checkbox").attr("id",r),n.find(".dynamic-notify-label").attr("for",r),n.find(".dynamic-editor-link").attr("href",o),n.find(".dynamic-dogcon-trigger").attr("onclick","createDogconBox(this)").attr("data-cmt-srl",t),n.find(".ed.dogcon").addClass("display-toggle"),n.find(".ed.dogcon > .ed.dogcon-header > .dogcon_pack, .ed.dogcon > .ed.dogcon-body").html(""),n.find(".dynamic-submit-btn").each(function(){var e=$
1(this).attr("onclick");e&&e.includes("replaceTextarea")&&(e="document.getElementById('"+c+"').value = replaceTextarea(document.getElementById('"+i+"').value)",$(this).attr("onclick",e))}),n.find(".dynamic-vote-submit").attr("onclick","document.getElementById('"+c+"').value = replaceTextarea(document.getElementById('"+i+"').value)"),n.find(".dynamic-vote-submit").remove(),n.find(".dynamic-cancel-btn").off("click").on("click",function(){return n.remove(),!1}),$("#comment_"+t).after(n),n.show().find("textarea").focus(),autosize(n.find("textarea")))});function escapeHtml(e){var t={"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;","'":"&#039;"};return e.replace(/[&<>"']/g,function(e){return t[e]})}function replaceTextarea(e){return e=(e="<p>"+(e=(e=(e=escapeHtml(e)).replace(/^[ \t]+$/gm,"")).replace(/(\r\n|\r|\n){3,}/g,"$1$1")).replace(/(?:\r\n|\r|\n)/g,"</p>\r\n<p>")+"</p>").replace(/<p>[\s]*<\/p>/g,"<p>&nbsp;</p>")}function sendSns(e,t,o){var n,i=encodeURIComponent(t),c=encodeURIComponent(o);switch(e){case"facebook":n="https://www.facebook.com/sharer/sharer.php?u="+i;break;case"x":n="https://x.com/intent/tweet?url="+i;break;case"naver":n="https://share.naver.com/web/shareView?url="+i+"&title="+c;break;default:return!1}window.open(n)}function doDocumentVoteUp(e){e={target_srl:e,cur_mid:current_mid};exec_json("document.procDocumentVoteUp",e,completeDocumentVoted)}function doDocumentVoteDown(e){e={target_srl:e,cur_mid:current_mid};exec_json("document.procDocumentVoteDown",e,completeDocumentVoted)}function completeDocumentVoted(e){$.toast?$.toast(e.message,{icon:!0}):alert(e.message),void 0!==e.voted_count?jQuery("#document_voted_count").html(e.voted_count):void 0!==e.blamed_count&&jQuery("#document_blamed_count").html(e.blamed_count)}function setCommentData(e){e.html&&0<$("#commentbox").length&&$("#commentbox").replaceWith(e.html),void 0!==$("a[data-src]").lazyload&&$("a[data-src]").lazyload({rootMargin:"500px"}),normalizeCommentHtml(),initBoardFunc()}function completeComment(e){var t;setCommentData(e),e.comment_srl&&(t="#comment_"+e.comment_srl,jQuery("html, body").animate({scrollTop:$(t).offset().top},300)),$.toast&&e.vote_msg&&$.toast(e.vote_msg,{icon:!0})}function procCommentTurn(e){var t=$(e).attr("href");procMoveCommentPage($(e).data("itemSrl"),t.getQuery("cpage").replace(/[^0-9]/gi,""))}function procMoveCommentPage(e,t){exec_json("board.getBoardCommentsData",{document_srl:e,cpage:t},completeMoveCommentPage)}function completeMoveCommentPage(e){var t;setCommentData(e),jQuery("html, body").animate({scrollTop:$("#comment_top").offset().top},300),e.cpage&&((t=new URL(window.location.href)).searchParams.set("cpage",e.cpage),history.replaceState(null,"",t.toString()))}function procInsertComment(e){var t=$(e).parents("form"),n={}
1,o=($("input",t).each(function(){var e=$(this).attr("name"),t=$(this).val(),o=$(this).attr("type");e&&t&&""!=e&&""!=t&&("checkbox"==o&&!0!==$(this).attr("checked")||(n[e]=t))}),t.find("input[name=content]").val());o=(o=o||t.find("textarea[name=content]").val())||t.find(".dynamic-editor-textarea").val(),n.content=o,n.at=!0,exec_json("board.procBoardInsertComment",n,completeComment),setTimeout(function(){$(e).attr("disabled","disabled")},0),setTimeout(function(){$(e).removeAttr("disabled")},5e3)}function procInsertReComment(e){var t=$(e).parents("form"),n={};$("input",t).each(function(){var e=$(this).attr("name"),t=$(this).val(),o=$(this).attr("type");e&&t&&""!=e&&""!=t&&("checkbox"==o&&!0!==$(this).attr("checked")||(n[e]=t))});var o=(o=t.find('textarea[name="content"]').val())||t.find(".dynamic-editor-textarea").val();n.content=o,n.at=!0,exec_json("board.procBoardInsertComment",n,completeComment),setTimeout(function(){$(e).attr("disabled","disabled")},0),setTimeout(function(){$(e).removeAttr("disabled")},5e3)}function htmlToText(e){return e.replace(/<\/p>\s*(<br\s*\/?>\s*)+<p>/gi,function(e){for(var t=(e.match(/<br/gi)||[]).length,o="\n",n=0;n<t;n++)o+="\n";return o}).replace(/<\/p>\s*<p>/gi,"\n").replace(/<p>\s*<\/p>/gi,"\n").replace(/<br\s*\/?>\s*<br\s*\/?>/gi,"\n\n").replace(/<br\s*\/?>/gi,"\n").replace(/<a[^>]*>(.*?)<\/a>/gi,"$1").replace(/<[^>]+>/g,"").replace(/&nbsp;/g,"").replace(/&amp;/g,"&").replace(/&lt;/g,"<").replace(/&gt;/g,">").replace(/&quot;/g,'"').replace(/&#039;/g,"'").trim().replace(/\n[ \t]+\n/g,"\n\n").replace(/(\r\n|\r|\n){4,}/g,"\n\n\n")}function normalizeCommentHtml(){$("#commentbox .rhymix_content.xe_content").each(function(){var e=$
1(this),t=e.find("> p");if(!(t.length<=1)){for(var o=[],n=(t.each(function(){var e=$(this).html(),t=(e||"").trim();o.push({html:e,isEmpty:"&nbsp;"===t||""===t})}),""),i=0;i<o.length;i++){var c=o[i];c.isEmpty?n+="<br>":(0<i&&(n+="<br>"),n+=c.html)}e.html("<p>"+n+"</p>")}})}function procModifyComment(e){var t,o,e=$(e).attr("href"),n=e.getQuery("document_srl"),i=e.getQuery("mid"),e=e.getQuery("comment_srl"),c=$(".comment_"+e+"_0").html(),r=!1,a=[];c&&"undefined"!=typeof DogconUtils&&DogconUtils&&"function"==typeof DogconUtils.getInstance&&0<(o=(t=DogconUtils.getInstance()).parseDogconTags(c)).length&&(r=!0,a=t.enrichDogconsFromHtml(o,c)),r?createDogconModifyUI(e,n,i,a):createTextModifyUI(e,n,i,c)}function createDogconModifyUI(e,t,o,n){return!("undefined"==typeof dogconManager||!dogconManager||"function"!=typeof dogconManager.createModifyUI)&&dogconManager.createModifyUI(e,t,o,n)}function createTextModifyUI(e,t,o,n){var i=(unifiedCommentTemplate=unifiedCommentTemplate||$("#unified-comment-form").clone(!0)).clone(!0),c=(i.attr("id","modifycomment-write-"+e).removeClass("comment-form").addClass("recomment-write"),"temp-modify-"+e),r="editor-modify-"+e;i.find(".dynamic-temp-textarea").attr("id",c),i.find(".dynamic-editor-textarea").attr("id",r),i.find(".recomment-only-field").show(),i.find(".recomment-only").show(),i.find("input[name=error_return_url]").val("/"+t),i.find("input[name=mid]").val(o),i.find("input[name=document_srl]").val(t),i.find("input[name=comment_srl]").val(e),i.find(".dynamic-dogcon-trigger").hide(),i.find(".ed.dogcon").hide(),i.find(".dynamic-submit-btn").each(function(){var e=$
1(this).attr("onclick");e&&e.includes("replaceTextarea")&&(e="document.getElementById('"+r+"').value = replaceTextarea(document.getElementById('"+c+"').value)",$(this).attr("onclick",e))}),i.find(".dynamic-vote-submit").remove(),i.find(".dynamic-cancel-btn").off("click").on("click",function(){return $("#comment_"+e).show(),i.remove(),!1});$("#comment_"+e).after(i).hide(),i.show();o=htmlToText(n);i.find("#"+c).val(o),i.find(".dynamic-submit-btn").off("click").on("click",function(){return procInsertReComment(this),!1}),autosize(i.find("textarea"))}function procDeleteComment(e){var t;confirm("삭제 하시겠습니까?")&&(t={},e=$(e).attr("href"),t.cpage=e.getQuery("cpage"),t.document_srl=e.getQuery("document_srl"),t.comment_srl=e.getQuery("comment_srl"),t.mid=e.getQuery("mid"),t.at=!0,exec_json("board.procBoardDeleteComment",t,completeComment))}function setFavorite(e,t){var o=e.data("href");exec_json("membertinker.procMembertinkerFavoriteModules",{href:o,flag:t},function(e){}),(t?e.hide().siblings("._favorite_on"):e.hide().siblings("._favorite_off")).show()}function initBoardFunc(){0<$("#unified-comment-form").length&&(unifiedCommentTemplate=$("#unified-comment-form").clone(!0)),$("#commentbox .pagination a").off("click").click(function(){return procCommentTurn(this),!1}),$("#unified-comment-form .dynamic-submit-btn").off("click").click(function(){return $("#document_vote").remove(),procInsertComment(this),!1}),$("#unified-comment-form .dynamic-vote-submit").off("click").click(function(){return $("#document_vote").remove(),$(this).after('<input type="hidden" name="document_vote" value="Y" id="document_vote" />'),procInsertComment(this),!1}),$(document).off("click",".dynamic-submit-btn").on("click",".dynamic-submit-btn",function(){return(0<$(this).closest("form").closest(".recomment-write").length?procInsertReComment:($("#document_vote").remove(),procInsertComment))(this),!1}),$(".modifyComment").off("click").click(function(){return $(".ed.dropdown-close").trigger("click"),procModifyComment(this),!1}),$(".deleteComment").off("click").click(function(){return $(".ed.dropdown-close").trigger("click"),procDeleteComment(this),!1}),$(".ed.dropdown-toggle").off("click").click(function(){return $(this).next().toggleClass("on"),!1}),$(".ed.dropdown-close").off("click").click(function(){return $(this).prev().removeClass("on"),!1}),$(".ed.dropdown-angle .ed.dropdown-toggle").off("click").click(function(){var e=$
1(this).outerHeight();return $(this).next().css("top",e),!1}),$(".ed.act_category").off("click").click(function(){var e=$(this).attr("data-category_srl");return $("#category").val(e).prop("selected",!0),$(".ed.category-pill ul li").removeClass("active"),$(this).parent().addClass("active"),!1}),$("#category").change(function(){$(".ed.category-pill ul li").removeClass("active");var e=".act_category_"+this.value;$(e).parent().addClass("active")}),$(".xe_content video").off("click").click(function(){$(this).attr("controls","")}),$(".ed.toggle-item").off("click").click(function(){var e=$(this).data("toggleTarget");return $(e).toggleClass("on"),!1}),$("a._favorite_on").off("click").click(function(){if(confirm("즐겨찾기를 삭제 하시겠습니까?"))return setFavorite($(this),!1),!1}),$("a._favorite_off").off("click").click(function(){return setFavorite($(this),!0),!1}),$(".list-type-panel a.list-type-toggle").off("click").click(function(){var e=current_mid,t=$(this).data("list-type"),o=getCookie("list_type"),n=o?JSON.parse(o):{};"r"===t?delete n[e]:n[e]=t,n=Object.keys(n).sort().reduce((e,t)=>(e[t]=n[t],e),{}),0===Object.keys(n).length?setCookie("list_type","",-1):setCookie("list_type",JSON.stringify(n),30)}),$(".ed_vote").each(function(){var t=$(this),o=t.data("document-srl");t.find(".btn_voted").off("click").on("click",function(){return window.ed_vote_logged?doDocumentVoteUp(o):alert(xe.lang.msg_not_permitted||"권한이 없습니다."),!1}),t.find(".btn_blamed").off("click").on("click",function(){var e;return window.ed_vote_logged?(e=t.find(".btn_blamed .tx").text().trim()||"비추천",confirm(e+" 하시겠습니까?")&&doDocumentVoteDown(o)):alert(xe.lang.msg_not_permitted||"권한이 없습니다."),!1})}),"function"==typeof initCategoryTooltip&&initCategoryTooltip()}String.prototype.replaceAll=function(e,t){for(var o=this;-1!=o.indexOf(e);)o=o.replace(e,t);return o};var voteComment=function(e,t,o){$(o).is("[disabled]")?$.toast("잠시 후 시도해주세요.",{icon:!0}):(t=0<t?"comment.procCommentVoteUpClick":"comment.procCommentVoteDownClick",exec_json(t,{target_srl:e},function(e){callbackVoteComment(e,o)}),setTimeout(function(){$(".votebtn").attr("disabled","disabled")},0),setTimeout(function(){$(".votebtn").removeAttr("disabled")},2e3))};function callbackVoteComment(e,t){void 0!==e.voted_count&&null!=e.voted_count?$(".count",t).text(e.voted_count):void 0!==e.blamed_count&&null!=e.blamed_count&&$(".count",t).text(e.blamed_count),1==e.status?$(t).removeClass("link-muted").addClass("text-primary"):0==e.status&&$(t).removeClass("text-primary").addClass("link-muted"),$.toast(e.message,{icon:!0})}var CategoryTooltipManager={cookieName:"ndr_cat",maxShowCount:5,cookieDays:30,getShowCount:function(){var e=getCookie(this.cookieName);return e?parseInt(e,10):0},setShowCount:function(e){setCookie(this.cookieName,e.toString(),this.cookieDays)},canShowTooltip:function(){return this.getShowCount()<this.maxShowCount},incrementShowCount:function(){var e=this.getShowCount();this.setShowCount(e+1)},disableTooltip:function(){this.setShowCount(this.maxShowCount)},hideTooltip:function(){$("#category-tooltip").fadeOut(200)},showTooltip:function(){var e,t,o,n=$(".ed.category.category-pill ul li");n.length<2||0!==(n=n.eq(1).find("a")).length&&((e=$("#category-tooltip")).parent()[0]!==document.body&&e.appendTo(document.body),n=n[0].getBoundingClientRect(),o=window.pageXOffset||document.documentElement.scrollLeft,t=window.pageYOffset||document.documentElement.scrollTop,o=n.left+o+n.width/2-45-8,e.css({top:n.bottom+t+10,left:o}).fadeIn(300),this.incrementShowCount())}};function initCategoryTooltip(){("undefined"!=typeof current_url&&-1<current_url.indexOf("act=dispBoardWrite")||-1<window.location.href.indexOf("act=dispBoardWrite"))&&0!==$("#category").length&&0!==$(".ed.category.category-pill").length&&CategoryTooltipManager.canShowTooltip()&&(setTimeout(function(){CategoryTooltipManager.showTooltip()},800),$("#category-tooltip-close").off("click").on("click",function(e){return e.preventDefault(),e.stopPropagation(),CategoryTooltipManager.disableTooltip(),CategoryTooltipManager.hideTooltip(),!1}),$(".ed.act_category").on("click.tooltip",function(){CategoryTooltipManager.hideTooltip()}),$("#category").on("change.tooltip",function(){CategoryTooltipManager.hideTooltip()}),$(document).on("click.tooltip",function(e){$(e.target).closest("#category-tooltip").length||CategoryTooltipManager.hideTooltip()}))}jQuery(function(){normalizeCommentHtml(),initBoardFunc()});

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.