芝麻web文件管理V1.00
编辑当前文件:/home2/sdektunc/www/media/com_contenthistory/js/admin-compare-compare.min.js
(()=>{const e=(e,n)=>{const t=n.nextElementSibling,o=window.Diff.diffWords(e.innerHTML,n.innerHTML),d=document.createDocumentFragment();o.forEach((e=>{let n="";e.added&&(n="#a6f3a6"),e.removed&&(n="#f8cbcb");const t=document.createElement("span");t.style.backgroundColor=n,t.style.borderRadius=".2rem",t.appendChild(document.createTextNode((e=>{const n=document.createElement("textarea");return n.innerHTML=Joomla.sanitizeHtml(e),n.value})(e.value))),d.appendChild(t)})),t.appendChild(d)},n=()=>{[].slice.call(document.querySelectorAll(".original")).forEach((n=>{e(n,n.nextElementSibling)})),document.removeEventListener("DOMContentLoaded",n)};document.addEventListener("DOMContentLoaded",n)})();