Fix issue #165
This commit is contained in:
@ -35,6 +35,13 @@ import { SITE } from '~/config.mjs';
|
|||||||
let lastKnownScrollPosition = window.scrollY;
|
let lastKnownScrollPosition = window.scrollY;
|
||||||
let ticking = true;
|
let ticking = true;
|
||||||
|
|
||||||
|
attachEvent('#header nav', 'click', function () {
|
||||||
|
document.querySelector('[data-aw-toggle-menu]')?.classList.remove('expanded');
|
||||||
|
document.body.classList.remove('overflow-hidden');
|
||||||
|
document.getElementById('header')?.classList.remove('h-screen');
|
||||||
|
document.querySelector('#header nav')?.classList.add('hidden');
|
||||||
|
});
|
||||||
|
|
||||||
attachEvent('[data-aw-toggle-menu]', 'click', function (_, elem) {
|
attachEvent('[data-aw-toggle-menu]', 'click', function (_, elem) {
|
||||||
elem.classList.toggle('expanded');
|
elem.classList.toggle('expanded');
|
||||||
document.body.classList.toggle('overflow-hidden');
|
document.body.classList.toggle('overflow-hidden');
|
||||||
|
@ -24,7 +24,7 @@ export const headerData = {
|
|||||||
links: [
|
links: [
|
||||||
{
|
{
|
||||||
text: 'Features',
|
text: 'Features',
|
||||||
href: '#',
|
href: '#features',
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
text: 'Pricing',
|
text: 'Pricing',
|
||||||
|
Reference in New Issue
Block a user