-
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.
- Loading branch information
Showing
10 changed files
with
192 additions
and
38 deletions.
There are no files selected for viewing
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
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,6 +1,20 @@ | ||
/*! | ||
{ | ||
"name": "IE User Data API", | ||
"property": "userdata", | ||
"tags": ["storage"], | ||
"authors": ["@stereobooster"], | ||
"notes": [{ | ||
"name": "MSDN Documentation", | ||
"href": "http://msdn.microsoft.com/en-us/library/ms531424(v=vs.85).aspx" | ||
}] | ||
} | ||
!*/ | ||
/* DOC | ||
Detects support for IE userData for persisting data, an API similar to localStorage but supported since IE5. | ||
*/ | ||
define(['Modernizr', 'createElement'], function( Modernizr, createElement ) { | ||
// test if IE userdata supported | ||
// msdn.microsoft.com/en-us/library/ms531424(v=vs.85).aspx | ||
// test by @stereobooster | ||
Modernizr.addTest('userdata', !!createElement('div').addBehavior); | ||
}); |
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,6 +1,21 @@ | ||
/*! | ||
{ | ||
"name": "Vibration API", | ||
"property": "vibrate", | ||
"notes": [{ | ||
"name": "MDN documentation", | ||
"href": "https://developer.mozilla.org/en/DOM/window.navigator.mozVibrate" | ||
},{ | ||
"name": "W3C spec", | ||
"href": "http://www.w3.org/TR/vibration/" | ||
}] | ||
} | ||
!*/ | ||
/* DOC | ||
Detects support for the API that provides access to the vibration mechanism of the hosting device, to provide tactile feedback. | ||
*/ | ||
define(['Modernizr', 'prefixed'], function( Modernizr, prefixed ) { | ||
// Vibration API | ||
// http://www.w3.org/TR/vibration/ | ||
// https://developer.mozilla.org/en/DOM/window.navigator.mozVibrate | ||
Modernizr.addTest('vibrate', !!prefixed('vibrate', navigator)); | ||
}); |
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
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
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,26 @@ | ||
/*! | ||
{ | ||
"name": "Web Intents", | ||
"property": "webintents", | ||
"authors": ["Eric Bidelman"], | ||
"notes": [{ | ||
"Web Intents project site", | ||
"http://webintents.org/" | ||
}], | ||
"polyfills": [{ | ||
"name": "Web Intents JavaScript shim", | ||
"href": "http://webintents.org/#javascriptshim" | ||
}] | ||
} | ||
!*/ | ||
/* DOC | ||
Detects native support for the Web Intents APIs for service discovery and inter-application communication. | ||
Chrome added support for this in v19, but [removed it again in v24](http://lists.w3.org/Archives/Public/public-web-intents/2012Nov/0000.html) because of "a number of areas for | ||
development in both the API and specific user experience in Chrome". No other browsers currently support it, however a [JavaScript shim](http://webintents.org/#javascriptshim) is available. | ||
*/ | ||
define(['Modernizr', 'prefixed'], function( Modernizr, prefixed ) { | ||
// Tests for the ability to use Web Intents (http://webintents.org). | ||
// By Eric Bidelman | ||
Modernizr.addTest('webintents', !!prefixed('startActivity', navigator)); | ||
}); |
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
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
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
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