芝麻web文件管理V1.00
编辑当前文件:/home2/sdektunc/www/media/com_templates/js/admin-template-compare.min.js
document.addEventListener("DOMContentLoaded",(()=>{const e=(e,n)=>{const t=n.nextElementSibling;let l="",d=null;const c=Diff.diffLines(e.innerHTML,n.innerHTML),o=document.createDocumentFragment();c.forEach((e=>{l=e.added?"#a6f3a6":e.removed?"#f8cbcb":"",d=document.createElement("pre"),d.style.backgroundColor=l,d.className="diffview",d.appendChild(document.createTextNode((e=>{const n={"&":"&","&":"&","<":"<",">":">",""":'"',"'":"'","’":"’","‘":"‘","–":"–","—":"—","…":"…","”":"”"};return e.replace(/\&[\w\d\#]{2,5}\;/g,(e=>n[e]))})(e.value))),o.appendChild(d)})),t.appendChild(o)},n=[].slice.call(document.querySelectorAll("#original"));for(let t=0,l=n.length;t