The Gallery is deprecated. No new Gallery components may be submitted, and modifying existing components is disabled. For more information please read the Gallery Deprecation blog post. This is a static snapshot of the Gallery for archive purposes.
See 1 more by this user. Created: 04/21/10
Last CDN Push: 05/19/10
Build Tag: gallery-2010.05.19-19-08
Project: YUI 3
License: YUI BSD
YUI Version: 3.1.0
Free for use.
This is a wrapper for Modernizr library that is used to detect support for many HTML5 & CSS3 features on a browser. More documentation here - http://www.modernizr.com/docs/ Please note that the module does not add the Modernizr object to the global namespace. Instead it will be local to the YUI instance.
<script src="http://yui.yahooapis.com/3.1.0/build/yui/yui-min.js"></script>
YUI({
//Last Gallery Build of this module
gallery: 'gallery-2010.05.19-19-08'
}).use('gallery-modernizr', function(Y) {
if ( Y.Modernizr.canvas) {
// canvas is supported, do something with it
} else {
// canvas not supported
}
});
Subject | Author | Date |
---|---|---|
Bug when used in Chrome | Ivan Dramaliev | 07/23/10 |
Re: Bug when used in Chrome | Paul Irish | 07/23/10 |
Re: Bug when used in Chrome | Ivan Dramaliev | 07/23/10 |
Re: Bug when used in Chrome | Ivan Dramaliev | 07/23/10 |
All code on this site is licensed under the BSD License unless stated otherwise.