[ Index ]

PHP Cross Reference of Joomla 4.2.2 documentation

title

Body

[close]

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

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


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