{"mappings":"ACAA,OAAO,gBAAgB,CAAC,OAAQ,KAC9B,IAAM,EAAc,SAAS,aAAa,CAAC,wBACrC,EAAU,SAAS,aAAa,CAAC,QACjC,EAAS,SAAS,aAAa,CAAC,WAEhC,EAAW,SAAS,QAAQ,CAAC,KAAK,CAAC,KACnC,EAAqB,AAFO,CAAC,GAAI,WAAY,YAAa,YAAY,CAEvB,QAAQ,CAAC,CAAQ,CAAC,EAAS,MAAM,CAAG,EAAE,EACrF,EAAkB,KAClB,SAAS,eAAe,CAAC,SAAS,CAAG,EACvC,EAAQ,SAAS,CAAC,GAAG,CAAC,UAC0B,IAAvC,SAAS,eAAe,CAAC,SAAS,EAC3C,EAAQ,SAAS,CAAC,MAAM,CAAC,SAE7B,EAEA,IACA,SAAS,gBAAgB,CAAC,SAAU,GAE/B,GAKL,CAAA,SAAS,QAAQ,CAAG,KAClB,IAAM,EAAa,EAAQ,aAAa,CAAC,oCACnC,EAAgB,EAAY,YAAY,CACxC,EAAe,EAAO,YAAY,CAAG,EACrC,EAAgB,SAAS,eAAe,CAAC,SAAS,CAAG,EACrD,EAAS,IAAI,EAAQ,SAAS,CAAC,CAAC,QAAQ,CAAC,QAE3C,CAAA,GAAiB,CAAC,GACpB,EAAQ,SAAS,CAAC,GAAG,CAAC,SAElB,GACF,EAAW,SAAS,CAAC,GAAG,CAAC,SAElB,CAAC,GAAiB,IAC3B,EAAQ,SAAS,CAAC,MAAM,CAAC,SAErB,GACF,EAAW,SAAS,CAAC,MAAM,CAAC,QAIlC,CAAA,CACF","sources":["","src/public/js/common.js"],"sourcesContent":["var $c3152d9b9defb7cb$exports = {};\nwindow.addEventListener('load', ()=>{\n const yotitleNode = document.querySelector('.yotitleNotification');\n const topNode = document.querySelector('.top');\n const header = document.querySelector('.header');\n const sectionsWithColoredHeader = [\n '',\n 'web.html',\n 'apps.html',\n 'link.html'\n ];\n const pathList = location.pathname.split('/');\n const isMenuChangesColor = sectionsWithColoredHeader.includes(pathList[pathList.length - 1]);\n const checkMenuShadow = ()=>{\n if (document.documentElement.scrollTop > 0) topNode.classList.add('shadow');\n else if (document.documentElement.scrollTop === 0) topNode.classList.remove('shadow');\n };\n checkMenuShadow();\n document.addEventListener('scroll', checkMenuShadow);\n if (!isMenuChangesColor) return;\n /* Header color change */ document.onscroll = ()=>{\n const menuButton = topNode.querySelector('.desktop .menuButton.transparent');\n const yotitleHeight = yotitleNode.clientHeight;\n const headerHeight = header.clientHeight + yotitleHeight;\n const isBelowHeader = document.documentElement.scrollTop > headerHeight;\n const isWhite = [\n ...topNode.classList\n ].includes('white');\n if (isBelowHeader && !isWhite) {\n topNode.classList.add('white');\n if (menuButton) menuButton.classList.add('dark');\n } else if (!isBelowHeader && isWhite) {\n topNode.classList.remove('white');\n if (menuButton) menuButton.classList.remove('dark');\n }\n };\n});\n\n\n//# sourceMappingURL=common.322d9e82.js.map\n","window.addEventListener('load', () => {\n const yotitleNode = document.querySelector('.yotitleNotification');\n const topNode = document.querySelector('.top');\n const header = document.querySelector('.header');\n const sectionsWithColoredHeader = ['', 'web.html', 'apps.html', 'link.html'];\n const pathList = location.pathname.split('/');\n const isMenuChangesColor = sectionsWithColoredHeader.includes(pathList[pathList.length - 1]);\n const checkMenuShadow = () => {\n if (document.documentElement.scrollTop > 0) {\n topNode.classList.add('shadow');\n } else if (document.documentElement.scrollTop === 0) {\n topNode.classList.remove('shadow');\n }\n };\n\n checkMenuShadow();\n document.addEventListener('scroll', checkMenuShadow);\n\n if (!isMenuChangesColor) {\n return;\n }\n\n /* Header color change */\n document.onscroll = () => {\n const menuButton = topNode.querySelector('.desktop .menuButton.transparent');\n const yotitleHeight = yotitleNode.clientHeight;\n const headerHeight = header.clientHeight + yotitleHeight;\n const isBelowHeader = document.documentElement.scrollTop > headerHeight;\n const isWhite =[...topNode.classList].includes('white');\n\n if (isBelowHeader && !isWhite) {\n topNode.classList.add('white');\n\n if (menuButton) {\n menuButton.classList.add('dark');\n }\n } else if (!isBelowHeader && isWhite) {\n topNode.classList.remove('white');\n\n if (menuButton) {\n menuButton.classList.remove('dark');\n }\n }\n\n }\n})"],"names":["window","addEventListener","yotitleNode","document","querySelector","topNode","header","pathList","location","pathname","split","isMenuChangesColor","sectionsWithColoredHeader","includes","length","checkMenuShadow","documentElement","scrollTop","classList","add","remove","onscroll","menuButton","yotitleHeight","clientHeight","headerHeight","isBelowHeader","isWhite"],"version":3,"file":"common.322d9e82.js.map"}