This is the third jQuery script that I've been working on. While parts of it have been inspired by other scripts, I'm now focusing on implementing a specific feature.
I've dedicated 4 hours to solving the issue of displaying the submenu on the left when the browser window is too small. Currently, it only works well on larger resolutions. I came across a script that addressed this problem, but it only detected the issue on page load. However, using offset() in that script caused my marquee to malfunction on Firefox. I want to find a solution that avoids this complication.
You can view the menu in action here:
My plan is to utilize .addClass and .removeClass to adjust the left position of the submenu as needed.
Thank you in advance for your assistance. I am eager to learn from this experience.