Closed JuanDCeballos closed 2 years ago
I just realized your last message after i closed it. sorry for that, if you want to contribute to the project, i'm weak in the mobile styling, adapting this to work better on mobiles would be really appreciated!.
Changes.
Instead of just
document.querySelector
an element and then attach theeventListerner
to itself.What about to store that element on a variable and the attach the event listener to that variable. Something like this:
Benefits
This could improve code readability and code reuse.
Let me know what do you think, I could work on this one, Happy to contribute to this project.