I have googled and many ideas, but they either confuse the whole site in all browsers, either they are really old, or they are javascript and not jQuery. I'm exhausted.
This currently works for iOS detection, but not for version:
$(document).ready(function() { var deviceAgent = navigator.userAgent.toLowerCase(); var agentID = deviceAgent.match(/(iphone|ipod|ipad)/); if (agentID) { ... do something here } });
How can I add only iOS 8 detection inside this, so I can just create the html class "ios-8" "no-ios8" or the equivalent.
source share