[ Index ]

PHP Cross Reference of Joomla 4.2.2 documentation

title

Body

[close]

/media/plg_quickicon_privacycheck/js/ -> privacycheck.min.js (source)

   1  (e=>{const t=()=>{const t=Joomla.getOptions("js-privacy-check"),n=t.plg_quickicon_privacycheck_ajax_url,s=t.plg_quickicon_privacycheck_url,a=t.plg_quickicon_privacycheck_text,c=e.getElementById("plg_quickicon_privacycheck"),r=c.querySelector("span.j-links-link");Joomla.enqueueRequest({url:n,method:"GET",promise:!0}).then((t=>{const n=t.responseText,l=JSON.parse(n);if(l.data.number_urgent_requests){const t=e.createElement("span");t.classList.add("badge","text-dark","bg-light"),t.textContent=l.data.number_urgent_requests,r.textContent=`$a.REQUESTFOUND} `,r.appendChild(t),c.classList.add("danger");const n=e.createElement("span");n.classList.add("label","label-important"),n.textContent=`$a.REQUESTFOUND_MESSAGE.replace("%s",l.data.number_urgent_requests)} `;const o=e.createElement("button");o.classList.add("btn","btn-primary","btn-sm"),o.setAttribute("onclick",`document.location='$s}'`),o.textContent=a.REQUESTFOUND_BUTTON;const i=e.createElement("div");i.classList.add("alert","alert-error","alert-joomlaupdate"),i.appendChild(n),i.appendChild(o);const d=e.querySelector("#system-message-container");d.insertBefore(i,d.firstChild)}else c.classList.add("success"),r.textContent=a.NOREQUEST})).catch((()=>{c.classList.add("danger"),r.textContent=a.ERROR}))};window.addEventListener("load",(()=>{setTimeout(t,360)}))})(document);


Generated: Wed Sep 7 05:41:13 2022 Chilli.vc Blog - For Webmaster,Blog-Writer,System Admin and Domainer