|
|
@ -189,7 +189,7 @@ |
|
|
|
|
|
|
|
<div id='nosensors' class='message'> |
|
|
|
<p>Your browser could not connect to phone's sensors.</p> |
|
|
|
<p>You can try using Firefox browser or continue in finger-action mode!</p> |
|
|
|
<p>Please use Android + Firefox browser!</p> |
|
|
|
<div><button id='nosensors' class='message'>OKAY</button></div> |
|
|
|
</div> |
|
|
|
|
|
|
@ -324,7 +324,7 @@ var th_handles = function(e) { |
|
|
|
}; |
|
|
|
|
|
|
|
|
|
|
|
if(window.DeviceOrientationEvent) { |
|
|
|
if(window.DeviceOrientationEvent && iOS()==false) { |
|
|
|
|
|
|
|
window.addEventListener('deviceorientation', do_handles); |
|
|
|
|
|
|
@ -339,7 +339,19 @@ if(window.DeviceOrientationEvent) { |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
//detect ios |
|
|
|
function iOS() { |
|
|
|
return [ |
|
|
|
'iPad Simulator', |
|
|
|
'iPhone Simulator', |
|
|
|
'iPod Simulator', |
|
|
|
'iPad', |
|
|
|
'iPhone', |
|
|
|
'iPod' |
|
|
|
].includes(navigator.platform) |
|
|
|
// iPad on iOS 13 detection |
|
|
|
|| (navigator.userAgent.includes("Mac") && "ontouchend" in document) |
|
|
|
} |
|
|
|
</script> |
|
|
|
|
|
|
|
</html> |
|
|
|