CoreFiles by mySites.guru
privacycheck.min.js1 lines, 1,360 bytes, from Joomla_4.0.0-rc2-Release_Candidate-Full_Package.zip
Raw History Compare with 4.0.0-rc1
md5
8644086b65b87cdd9fd9f6a6556ddd42
sha1
b948d974996cb61bfc3fb928cf31244eb2870bd7
sha256
6496b19ac10a14855bfb04010e136579a6efae17fe3423594a6d7b466a3be3ee
(t=>{t.addEventListener("DOMContentLoaded",(()=>{const e=Joomla.getOptions("js-privacy-check"),n=e.plg_quickicon_privacycheck_ajax_url,a=e.plg_quickicon_privacycheck_url,s=e.plg_quickicon_privacycheck_text,c=t.getElementById("plg_quickicon_privacycheck"),r=c.querySelector("span.j-links-link");Joomla.request({url:n,method:"GET",data:"",perform:!0,onSuccess:e=>{try{const n=JSON.parse(e);if(n.data.number_urgent_requests){const e=t.createElement("span");e.classList.add("badge","text-dark","bg-light"),e.textContent=n.data.number_urgent_requests,r.textContent=`${s.REQUESTFOUND} `,r.appendChild(e),c.classList.add("danger");const o=t.createElement("span");o.classList.add("label","label-important"),o.textContent=`${s.REQUESTFOUND_MESSAGE.replace("%s",n.data.number_urgent_requests)} `;const l=t.createElement("button");l.classList.add("btn","btn-primary","btn-sm"),l.setAttribute("onclick",`document.location='${a}'`),l.textContent=s.REQUESTFOUND_BUTTON;const d=t.createElement("div");d.classList.add("alert","alert-error","alert-joomlaupdate"),d.appendChild(o),d.appendChild(l);const i=t.querySelector("#system-message-container");i.insertBefore(d,i.firstChild)}else c.classList.add("success"),r.textContent=s.NOREQUEST}catch(t){c.classList.add("danger"),r.textContent=s.ERROR}},onError:()=>{c.classList.add("danger"),r.textContent=s.ERROR}})}))})(document);

The same content is in 5 releases, Joomla 4.0.0-rc1 to 4.0.0-rc5. See them all, or every version of this file.