Skip to content

Commit adacf0c

Browse files
author
David Zuckerman
committed
moved application.js into packs directory
1 parent 2326632 commit adacf0c

1 file changed

Lines changed: 14 additions & 0 deletions

File tree

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
// Entry point for the build script in your package.json
2+
3+
window.addEventListener('load', () => {
4+
const navMenuCheckbox = document.getElementById('nav-menu')
5+
if (!navMenuCheckbox) {
6+
console.log('navMenuCheckbox not found')
7+
return
8+
}
9+
navMenuCheckbox.addEventListener('keydown', (e) => {
10+
if (e.code === 'Enter') {
11+
navMenuCheckbox.checked = !navMenuCheckbox.checked
12+
}
13+
})
14+
})

0 commit comments

Comments
 (0)