b0y-101 Mini Shell


Current Path : E:/www/risk/media/com_templates/js/
File Upload :
Current File : E:/www/risk/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={"&amp;":"&","&#038;":"&","&lt;":"<","&gt;":">","&quot;":'"',"&#039;":"'","&#8217;":"’","&#8216;":"‘","&#8211;":"–","&#8212;":"—","&#8230;":"…","&#8221;":"”"};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<l;t+=1)e(n[t],n[t].nextElementSibling)}));

Copyright © 2019 by b0y-101