Exactly like it sounds..
Is there some magical and easy way to say:
if (user agent is iOS) { if (browserRatio >=1.5) { $container.css('min-height', '360px'); } else { $container.css('min-height', '555px'); } }
Found it.
if (navigator.userAgent.match(/(iPod|iPhone|iPad)/)) { if (browserRatio >=1.5) { $container.css('min-height', '360px'); } else { $container.css('min-height', '555px'); } }
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With