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,CAAC;AAEpD,IAAM4B,YAAY,GAAGT,YAAY,CAACC,OAAO,CAAC,kBAAkB,CAAC;AAC7D,IAAMS,WAAW,GAAGV,YAAY,CAACC,OAAO,CAAC,iBAAiB,CAAC;AAE3DV,aAAa,CAACkB,YAAY,EAAEC,WAAW,CAAC,C","sources":["webpack://portfolio/./src/modules/scroll.js","webpack://portfolio/./src/modules/toggleTheme.js","webpack://portfolio/./src/modules/displayList.js","webpack://portfolio/./src/index.js"],"sourcesContent":["const scrollUp = () => {\n\tconst btnScrollUp = document.querySelector('.scroll-up');\n\n\tif (\n\t\tdocument.body.scrollTop > 300 ||\n\t\tdocument.documentElement.scrollTop > 300\n\t) {\n\t\tbtnScrollUp.style.display = 'block';\n\t} else {\n\t\tbtnScrollUp.style.display = 'none';\n\t}\n};\n\nexport default { scrollUp };\n","const btnTheme = document.querySelector('.fa-moon');\n\nconst addThemeClass = (bodyClass, btnClass) => {\n\tdocument.body.classList.add(bodyClass);\n\tbtnTheme.classList.add(btnClass);\n};\n\nconst isDark = () => document.body.classList.contains('body-dark');\n\nconst setTheme = (bodyClass, btnClass) => {\n\tdocument.body.classList.remove(localStorage.getItem('class-body-theme'));\n\tbtnTheme.classList.remove(localStorage.getItem('class-btn-theme'));\n\taddThemeClass(bodyClass, btnClass);\n\tlocalStorage.setItem('class-body-theme', bodyClass);\n\tlocalStorage.setItem('class-btn-theme', btnClass);\n};\n\nconst toggleTheme = () =>\n\tisDark()\n\t\t? setTheme('body-light', 'fa-moon')\n\t\t: setTheme('body-dark', 'fa-sun');\n\nexport { toggleTheme, addThemeClass };\n","const btnHamburger = document.querySelector('.fa-bars');\n\nconst displayList = () => {\n\tconst navUl = document.querySelector('nav ul');\n\n\tif (btnHamburger.classList.contains('fa-bars')) {\n\t\tbtnHamburger.classList.remove('fa-bars');\n\t\tbtnHamburger.classList.add('fa-times');\n\t\tnavUl.classList.add('display-nav-list');\n\t} else {\n\t\tbtnHamburger.classList.remove('fa-times');\n\t\tbtnHamburger.classList.add('fa-bars');\n\t\tnavUl.classList.remove('display-nav-list');\n\t}\n};\n\nexport default displayList;\n","import './styles/index.css';\nimport scroll from './modules/scroll';\nimport { toggleTheme, addThemeClass } from './modules/toggleTheme';\nimport displayList from './modules/displayList';\n\nconst btnHamburger = document.querySelector('.fa-bars');\nconst btnTheme = document.querySelector('.fa-moon');\n\nbtnHamburger.addEventListener('click', displayList);\nbtnTheme.addEventListener('click', toggleTheme);\ndocument.addEventListener('scroll', scroll.scrollUp);\n\nconst getBodyClass = localStorage.getItem('class-body-theme');\nconst getBtnClass = localStorage.getItem('class-btn-theme');\n\naddThemeClass(getBodyClass, getBtnClass);\n"],"names":["scrollUp","btnScrollUp","document","querySelector","body","scrollTop","documentElement","style","display","btnTheme","addThemeClass","bodyClass","btnClass","classList","add","isDark","contains","setTheme","remove","localStorage","getItem","setItem","toggleTheme","btnHamburger","displayList","navUl","scroll","addEventListener","getBodyClass","getBtnClass"],"sourceRoot":""}