mirror of
https://github.com/panr/hugo-theme-terminal.git
synced 2024-12-02 22:49:27 +03:00
1 line
No EOL
462 B
JavaScript
1 line
No EOL
462 B
JavaScript
!function(){function t(){return window.matchMedia(e).matches}var e=getComputedStyle(document.body).getPropertyValue("--phoneWidth"),n=document.querySelector(".language-selector-current"),o=document.querySelector(".language-selector__more");document.body.addEventListener("click",function(){t()||!o||o.classList.contains("hidden")||o.classList.add("hidden")}),n&&n.addEventListener("click",function(e){t()||(e.stopPropagation(),o.classList.toggle("hidden"))})}(); |