Skip to content

Commit

Permalink
Fix issue #165
Browse files Browse the repository at this point in the history
  • Loading branch information
prototypa committed Jun 18, 2023
1 parent 55ac0cd commit 8ff3675
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 1 deletion.
7 changes: 7 additions & 0 deletions src/components/common/BasicScripts.astro
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,13 @@ import { SITE } from '~/config.mjs';
let lastKnownScrollPosition = window.scrollY;
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) {
elem.classList.toggle('expanded');
document.body.classList.toggle('overflow-hidden');
Expand Down
2 changes: 1 addition & 1 deletion src/data.js
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ export const headerData = {
links: [
{
text: 'Features',
href: '#',
href: '#features',
},
{
text: 'Pricing',
Expand Down

0 comments on commit 8ff3675

Please sign in to comment.