CoreFiles by mySites.guru
switcher.min.js1 lines, 799 bytes, from Joomla_4.0.0-alpha2-Alpha-Full_Package.zip
Raw History Compare with 3.10.0-alpha9
md5
7e7af7b5ef35d0a9f836b854a30235d8
sha1
c3f5879281b99874c1849cc999ce60acdd0b96fb
sha256
9511d07025eea1ccc72de79ca8b0535ecb2ddc291480d56c6004411b15264c0f
!function(){"use strict";document.addEventListener("DOMContentLoaded",function(){for(var e=document.querySelectorAll(".js-switcher"),t=0;t<e.length;t++){var l=e[t].querySelectorAll("input"),a=l[1].parentNode;l[1].checked?(l[1].parentNode.classList.add("active"),a.nextElementSibling.querySelector(".switcher-label-"+l[1].value).classList.add("active")):a.nextElementSibling.querySelector(".switcher-label-"+l[0].value).classList.add("active"),e[t].addEventListener("click",function(e){for(var t=e.target,l=t.parentNode,a=l.nextElementSibling.querySelectorAll("span"),c=0;c<a.length;c++)a[c].classList.remove("active");t.classList.contains("active")?l.classList.remove("active"):l.classList.add("active"),l.nextElementSibling.querySelector(".switcher-label-"+t.value).classList.add("active")})}})}();

No other release has this exact content. See every version of this file.