From 7cc7910df63d19e7ebc67bb1156437f0559712d7 Mon Sep 17 00:00:00 2001 From: Lars Henrik Mai Date: Sun, 21 Sep 2014 12:25:47 +0200 Subject: add foundation via bower --- .../feature-detects/event-deviceorientation-motion.js | 11 +++++++++++ 1 file changed, 11 insertions(+) create mode 100644 source/bower_components/modernizr/feature-detects/event-deviceorientation-motion.js (limited to 'source/bower_components/modernizr/feature-detects/event-deviceorientation-motion.js') diff --git a/source/bower_components/modernizr/feature-detects/event-deviceorientation-motion.js b/source/bower_components/modernizr/feature-detects/event-deviceorientation-motion.js new file mode 100644 index 0000000..644e671 --- /dev/null +++ b/source/bower_components/modernizr/feature-detects/event-deviceorientation-motion.js @@ -0,0 +1,11 @@ +//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 + + +//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) ); -- cgit v1.2.1