Current File : /home/pacjaorg/www/kmm/media/com_templates/js/admin-template-compare.min.js |
/**
* @copyright (C) 2018 Open Source Matters, Inc. <https://www.joomla.org>
* @license GNU General Public License version 2 or later; see LICENSE.txt
*
* @deprecated 4.3
* This file is deprecated and will be removed with Joomla 5.0
*/document.addEventListener("DOMContentLoaded",()=>{const a=e=>{const n={"&":"&","&":"&","<":"<",">":">",""":'"',"'":"'","’":"\u2019","‘":"\u2018","–":"\u2013","—":"\u2014","…":"\u2026","”":"\u201D"};return e.replace(/\&[\w\d\#]{2,5}\;/g,c=>n[c])},r=(e,n)=>{const c=n.nextElementSibling;let t="",l=null;const s=Diff.diffLines(e.innerHTML,n.innerHTML),i=document.createDocumentFragment();s.forEach(d=>{d.added?t="#a6f3a6":d.removed?t="#f8cbcb":t="",l=document.createElement("pre"),l.style.backgroundColor=t,l.className="diffview",l.appendChild(document.createTextNode(a(d.value))),i.appendChild(l)}),c.appendChild(i)},o=[].slice.call(document.querySelectorAll("#original"));for(let e=0,n=o.length;e<n;e+=1)r(o[e],o[e].nextElementSibling)});