Pradhap Nirmal Natarajan![]()
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 |
© 2006-2013 Yahoo! Inc. All rights reserved.
All code on this site is licensed under the BSD License unless stated otherwise.
About This Site · Security Contact Info