Detect iOS
<script> var iOS = ( navigator.userAgent.match(/(iPad|iPhone|iPod)/g) ? true : false ); if (iOS = true){ //whatever } </script>