CoreFiles by mySites.guru
select-colour.es6.min.js1 lines, 672 bytes, from Joomla_4.0.0-beta1-Beta-Full_Package.zip
Raw History Compare with 3.9.0-beta4
md5
d697c7606a424cae45db99780ceed1b2
sha1
5386ef4de18c02a3e695dcbe4d3759d55aa9a33a
sha256
dfb38c118716ebaec53af9723a2c2991e755d01994cd4d21afedb9928053d8bd
(()=>{'use strict';const a=({target:a})=>{const b=a,c=parseInt(b.value,10);b.classList.remove("custom-select-success","custom-select-danger"),1===c?b.classList.add("custom-select-success"):(0===c||-2===c)&&b.classList.add("custom-select-danger")},b=()=>{const c=[].slice.call(document.querySelectorAll(".custom-select-color-state"));c.forEach(b=>{const c=parseInt(b.value,10);1===c?b.classList.add("custom-select-success"):(0===c||-2===c)&&b.classList.add("custom-select-danger"),b.addEventListener("change",a)}),document.removeEventListener("DOMContentLoaded",b,!0)};document.addEventListener("DOMContentLoaded",b,!0),document.addEventListener("joomla:updated",b,!0)})();

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