I need a simple script written to quickly detect the presence of an accelerometer on mobile devices and redirect the visitor to a page based on the output.
It appears to me that the DeviceOrientationEvent has the best mobile web browser compatibility for this project:
[login to view URL]
How I imagine it working:
On load --> detect orientation
Delay 100 milliseconds
Detect orientation again --> if same as original value, redirect to page URL "A" --> if different from original value, redirect to page URL "B"
Resources:[login to view URL]
Hello Sir/Madam,
Thanks for project post. here we checked the posted details and review it, here we need some more clarification in it, So Please message us to clear our doubts and start work on it.
Thanks