mirror of
https://github.com/panr/hugo-theme-terminal.git
synced 2024-12-11 10:15:08 +03:00
1 line
No EOL
467 B
JavaScript
1 line
No EOL
467 B
JavaScript
!function(){var e=getComputedStyle(document.body).getPropertyValue("--phoneWidth"),t=function(){return window.matchMedia(e).matches},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"))}))}(); |