CoreFiles by mySites.guru
quickicon.es6.min.js1 lines, 771 bytes, from Joomla_4.0.0-beta6-Beta-Full_Package.zip
Raw History Compare with 4.0.0-beta5
md5
5e775cc21e540ad26c0d7f774d86b41b
sha1
e292e539c8ced0415aec40b76bd85ec13d804671
sha256
b25fb444210bfb1f617a9abe97d4544418a98ed2145d3833c696ac08c6727f64
((a,b)=>{'use strict';a.addEventListener("DOMContentLoaded",()=>{a.querySelectorAll(".quickicon").forEach(c=>{const d=c.querySelector(".pulse"),e=c.querySelector(".quickicon-amount");!e||e.dataset.url&&b.request({url:e.dataset.url,method:"GET",onSuccess:b=>{const f=JSON.parse(b);if(Object.prototype.hasOwnProperty.call(f,"data")){const b=c.querySelector(".quickicon-name"),g=a.createElement("span");if(d){const a=0<f.data?"warning":"success";d.classList.add(a)}f.data.name&&b&&(g.textContent=f.data.name,b.replaceChild(g,b.firstChild)),e.textContent=`\u200E${f.data.amount}`;const h=c.querySelector(".quickicon-sr-desc");f.data.sronly&&h&&(h.textContent=f.data.sronly)}else d&&d.classList.add("error")},onError:()=>{d&&d.classList.add("error")}})})})})(document,Joomla);

The same content is in 7 releases, Joomla 4.0.0-beta to 4.0.0-beta7. See them all, or every version of this file.