Samx Here
n1udSecurity


Server : Apache
System : Linux ks5.tuic.fr 6.1.0-18-amd64 #1 SMP PREEMPT_DYNAMIC Debian 6.1.76-1 (2024-02-01) x86_64
User : pragmatice ( 1003)
PHP Version : 8.2.24
Disable Function : NONE
Directory :  /home/etherpad/var/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Current File : /home/etherpad/var/minified_7f97ef0eb3168b97a39527ac8afb07fafc71198dd7c27fc02f3e005d31531284
require.define({"ep_comments_page/static/js/commentIcons.js": {"(module ep_comments_page/static/js/commentIcons.js)": function (require, exports, module) {"use strict";const commentBoxes=require("ep_comments_page/static/js/commentBoxes"),displayIcons=()=>clientVars.displayCommentAsIcon;let padOuter;const getPadOuter=()=>(padOuter=padOuter||$('iframe[name="ace_outer"]').contents(),padOuter);let padInner;const getPadInner=()=>(padInner=padInner||getPadOuter().find('iframe[name="ace_inner"]').contents(),padInner),getOrCreateIconsContainerAt=e=>{const t=getPadOuter().find("#commentIcons"),n=`icon-at-${e}`;let o=t.find(`.${n}`);return 0===o.length&&(t.append(`<div class="comment-icon-line ${n}"></div>`),o=t.find(`.${n}`),o.css("top",`${e}px`)),o},targetCommentIdOf=e=>e.currentTarget.getAttribute("data-commentid"),highlightTargetTextOf=e=>{getPadInner().find("head").append(`<style class='comment-style'>.${e}{ color: #a7680c !important }</style>`)},removeHighlightTargetText=()=>{getPadInner().find("head .comment-style").remove()},toggleActiveCommentIcon=e=>{e.toggleClass("active").toggleClass("inactive")},addListenersToCommentIcons=()=>{getPadOuter().find("#commentIcons").on("mouseover",".comment-icon",(e=>{removeHighlightTargetText();const t=targetCommentIdOf(e);highlightTargetTextOf(t)})).on("mouseout",".comment-icon",(e=>{removeHighlightTargetText()})).on("click",".comment-icon.active",(function(e){toggleActiveCommentIcon($(this));const t=targetCommentIdOf(e);commentBoxes.hideComment(t,!0)})).on("click",".comment-icon.inactive",(function(e){commentBoxes.hideAllComments();const t=getPadOuter().find("#commentIcons").find(".comment-icon.active");toggleActiveCommentIcon(t),toggleActiveCommentIcon($(this));const n=targetCommentIdOf(e);commentBoxes.highlightComment(n,e)}))},addListenersToCloseOpenedComment=()=>{$(document).on("touchstart click",(e=>{closeOpenedCommentIfNotOnSelectedElements(e)})),getPadOuter().find("html").on("touchstart click",(e=>{closeOpenedCommentIfNotOnSelectedElements(e)})),getPadInner().find("html").on("touchstart click",(e=>{closeOpenedCommentIfNotOnSelectedElements(e)}))},closeOpenedCommentIfNotOnSelectedElements=e=>{if(shouldNotCloseComment(e)||commentBoxes.shouldNotCloseComment(e))return;const t=findOpenedComment();if(t){toggleActiveCommentIcon($(t));const e=t.getAttribute("data-commentid");commentBoxes.hideComment(e,!0)}},findOpenedComment=()=>getPadOuter().find("#commentIcons .comment-icon.active").get(0),insertContainer=()=>{displayIcons()&&(getPadOuter().find("#sidediv").after('<div id="commentIcons"></div>'),getPadOuter().find("#comments").addClass("with-icons"),addListenersToCommentIcons(),addListenersToCloseOpenedComment())},addIcon=(e,t)=>{if(!displayIcons())return;const n=getPadInner().find(`.comment.${e}`).get(0).offsetTop,o=getOrCreateIconsContainerAt(n);$("#commentIconTemplate").tmpl(t).appendTo(o)},hideIcons=()=>{displayIcons()&&getPadOuter().find("#commentIcons").children().children().each((function(){$(this).hide()}))},adjustTopOf=(e,t)=>{if(!displayIcons())return;const n=getPadOuter().find(`#icon-${e}`),o=getOrCreateIconsContainerAt(t);return o!==n.parent()&&n.appendTo(o),n.show(),n},isCommentOpenedByClickOnIcon=()=>{if(!displayIcons())return!1;return 0!==getPadOuter().find("#commentIcons").find(".comment-icon.active").length},commentHasReply=e=>{if(!displayIcons())return;getPadOuter().find("#commentIcons").find(`#icon-${e}`).addClass("with-reply")},shouldShow=e=>{let t=!1;return displayIcons()?e.hasClass("mouseover")&&(t=!0):t=!0,t},shouldNotCloseComment=e=>0!==$(e.target).closest(".comment-icon").length;exports.insertContainer=insertContainer,exports.addIcon=addIcon,exports.hideIcons=hideIcons,exports.adjustTopOf=adjustTopOf,exports.isCommentOpenedByClickOnIcon=isCommentOpenedByClickOnIcon,exports.commentHasReply=commentHasReply,exports.shouldShow=shouldShow,exports.shouldNotCloseComment=shouldNotCloseComment;}}["(module ep_comments_page/static/js/commentIcons.js)"],
});

SAMX