function iOSversion() {
      if (/iP(hone|od|ad)/.test(navigator.platform)) {
        // supports iOS 2.0 and later: <https://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),
        ];
      }
    }
// detect ios 12 to add css fixes
detect ios 12 to add css fixes
detect ios 12 to add css fixes
function iOSversion() {
      if (/iP(hone|od|ad)/.test(navigator.platform)) {
        var v = navigator.appVersion.match(/OS (\d+)_(\d+)_?(\d+)?/);
        return [
          parseInt(v[1], 10),
          parseInt(v[2], 10),
          parseInt(v[3] || 0, 10),
        ];
      }
    }
function iOSversion ( ) { if ( / iP(hone|od|ad) / . test ( navigator . platform ) ) { var v = navigator . appVersion . match ( / OS (\d+)_(\d+)_?(\d+)? / ) ; return [ parseInt ( v [ 1 ] , 10 ) , parseInt ( v [ 2 ] , 10 ) , parseInt ( v [ 3 ] || 0 , 10 ) , ] ; } }
detect ios 12 to add css fixes
detect ios 12 to add css fixes
// supports iOS 2.0 and later: <https://bit.ly/TJjs1V>