1 min readJul 31, 2019
#1 the IOS version check
$(function(){const ver = iOSversion();if (ver[0] >= 12) {alert('11 or later')$('.register-box .policy').css({'-webkit-overflow-scrolling': 'touch'});}/* else{$('.register-box .policy').css({'-webkit-overflow-scrolling': 'touch'});} */});function iOSversion() {if (/iP(hone|od|ad)/.test(navigator.platform)) {// supports iOS 2.0 and later: <http://bit.ly/TJjs1V>var v = (navigator.appVersion).match(/OS (\d+)_(\d+)_?(\d+)?/);return [parseInt(v[1], 10), parseInt(v[2], 10), parseInt(v[3] || 0, 10)];}}
- 담당자의 아이폰5는 버전 10
- 우리의 아이폰은 12
- 왜 업데이트를 안하지?
- css display:flex 안먹어서 position, left , right으로 값 변경
#ref
https://stackoverflow.com/questions/8348139/detect-ios-version-less-than-5-with-javascript