Need some help finalizing my Portfolio page

I worked hard on my portfolio page today, but I’m a bit stuck at the end of it.

When the menu is small and opened i like it to collapse when a link is clicked. I’m too much of a n00b to get this to work. Any help or tips in the right direction would e helpful.

var menu = document.getElementById("openmenu")

    () => menu.classList.remove("w3-show")
1 Like

Thank you @marzelin that works straightaway :smile:

I tried some other methods but those failed, this one seems much cleaner. I added some comments around the code for later reference.