I have implemented a link that, when clicked, should reveal a menu on the website. This feature is specifically optimized for smaller browser windows with a breakpoint set at 965px
. However, I am encountering some varied behaviors across different browsers:
Positive feedback from Firefox (desktop), Opera (desktop), and Puffin (mobile):
- The menu works perfectly as intended.
Negative response from Safari (desktop & mobile), Opera Mini, Google Chrome (mobile), Dolphin (mobile), Mercury (mobile), and Coast by Opera (mobile):
- The menu does not show up at all. Interestingly though, clicking or tapping where the dropdown menu should be triggers the links, suggesting that the menu is present but completely transparent.
A peculiar issue with Google Chrome (desktop):
- The same transparent behavior occurs as described above, but only when the menu overlays an image gallery at the top of the page. Once scrolled past the gallery, the menu appears and functions normally.
This discrepancy seems to point towards a CSS problem, although pinpointing the exact cause has proven challenging. Despite experimenting with disabling/enabling the image gallery, the issue remains unresolved.
You can access the current state of the site here:
Below are snippets of the relevant code related to the click menu functionality:
HTML:
<div id="hammenushowbio" class="viewmenu">MENU</div>
<div id="hammenu">
<div class="hammenulinks">
<ul>
<li data-slide="2" onclick="document.getElementById('hammenu').style.display='none';"><div class="hamtext">FIRM PROFILE</div></li>
<li data-slide="3" onclick="document.getElementById('hammenu').style.display='none';"><div class="hamtext">CLIENT SERVICES</div></li>
... // Code continuation
</ul>
</div>
</div>
</div>
CSS:
... // CSS code block ...Jquery section elaborating on potential JS issues:
... // Jquery code blockMediaq section defining responsive design breakpoints:
... // Mediaq code block