Note that there are some explanatory texts on larger screens.

plurals
  1. PODisable jquery line in .js file when on mobile device, OR only use when Mac/IPAD?
    primarykey
    data
    text
    <pre><code>jQuery(document).ready(function(){ /* for top navigation */ jQuery("#menu ul, #menu li").css("-webkit-transform", "translateZ(0)"); jQuery(" #menu ul ").css({display: "none"}); // Opera Fix jQuery(" #menu li").hover(function(){ jQuery(this).find('ul:first').css({visibility: "visible",display: "none"}).slideDown(400); },function(){ jQuery(this).find('ul:first').css({visibility: "hidden"}); }); jQuery(" #menu2 ul ").css({display: "none"}); // Opera Fix jQuery(" #menu2 li").hover(function(){ jQuery(this).find('ul:first').css({visibility: "visible",display: "none"}).slideDown(400); },function(){ jQuery(this).find('ul:first').css({visibility: "hidden"}); }); }); </code></pre> <p>This code is from dropdown.js and is for my nav menu on www.yorkshirephotographer.net I had to add the top line of code - webkit transform due to the menu not functioning correctly on Mac's and IPAD's. See more about this and why I added this code line here - </p> <p><a href="https://stackoverflow.com/questions/12384219/javascript-dropdown-menu-parts-disappearing-on-a-mac">JavaScript dropdown menu - parts disappearing on a Mac?</a></p> <p>But now the menu doesn't work on Mobile devices. When you tap to click, a box appears for a second but under the main menu text, like your pressing under the link, which results in the link not activating - so basically the menu bar doesnt work on mobiles. </p> <p>I've checked without that line of code and it works again, but it wont work on a Mac....so Need to disable it on mobile devices or only read when its Mac/Apple OS.....</p> <p>Please help Thanks</p>
    singulars
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload