You are having trouble getting this script to work correctly on iphone 6. Saved as โnot mobileโ. What am I missing?
$(document).ready(function(){ if ($(window).width < 700){ alert("mobile"); } else { alert("not mobile"); } });
EDIT: Sorry, the code I printed here had a typo, but was not the cause of my problem. I had inaccurate iphone resolution information. Thanks everyone!
source share