-
Notifications
You must be signed in to change notification settings - Fork 3k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
remove my orientation test in favor for shi chuans. rename file tho.
- Loading branch information
Showing
2 changed files
with
9 additions
and
14 deletions.
There are no files selected for viewing
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,11 @@ | ||
// support for orientation and motion events by way of device accelerometers | ||
//By Shi Chuan | ||
//Part of Device Access aspect of HTML5, same category as geolocation | ||
//W3C Editor's Draft at http://dev.w3.org/geo/api/spec-source-orientation.html | ||
//Implementation by iOS Safari at http://goo.gl/fhce3 and http://goo.gl/rLKz8 | ||
|
||
Modernizr.addTest('deviceorientation', 'DeviceOrientationEvent' in window); | ||
|
||
Modernizr.addTest('devicemotion', 'DeviceMotionEvent' in window); | ||
//test for Device Motion Event support, returns boolean value true/false | ||
Modernizr.addTest('devicemotion', ('DeviceMotionEvent' in window) ); | ||
|
||
//test for Device Orientation Event support, returns boolean value true/false | ||
Modernizr.addTest('deviceorientation', ('DeviceOrientationEvent' in window) ); |