Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Hiding links in navbar #3

Open
ghost opened this issue Nov 26, 2018 · 1 comment
Open

Hiding links in navbar #3

ghost opened this issue Nov 26, 2018 · 1 comment

Comments

@ghost
Copy link

ghost commented Nov 26, 2018

The #navigation disappears upon clicking a nav link. This works perfectly on mobile, but is broken on desktop.

I suggest wrapping this

Object.assign(navmenu.style, navStyles[state]);

in something like this:

if (window.outerWidth < 992) {

}
@ghost
Copy link
Author

ghost commented Nov 26, 2018

Or better yet, use this: https://github.com/psychonautwiki/legalizepsychedelics.com/blob/master/js/script.js#L18 (assuming the file is used on the site).

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

0 participants