YUILibrary - Open source JavaScript and CSS for building richly interactive software.
Fork YUI on GitHub
  • Home
  • Gallery
  • Forums
  • YUI 2
  • YUI 3
  • YUI Labs
  • YUI Compressor
  • More
  • Gallery Forums
  • Gallery Stats
  • Gallery Calendar
  • Register
  • Login

Modules

  • Home
  • Featured
  • Popular
  • New
  • All

Documentation

  • FAQ
  • Developer FAQ
  • Developer Guide
  • Module Setup

Tag Cloud

jacobfogg jsonp yui2 skinnable widget slideshow event io overlay tivac animation apipkin plugin ajax port jafl davglass form nzakas adam foxxtrot caridy lsmith ericf node rgrove

Context Navigation

    YUI Library is not responsible for bugs or support with this module. It is available as a free service. For support please contact the module owner with the provided links.

    Modernizr (gallery-modernizr) on cdn

    Last Updated: 04/21/10
    + 2 -

    Pradhap Nirmal Natarajan

    YUI Contributor

    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.

    • Tags:
    • prathapnirmal
    • Download
    • Docs
    • Homepage
    • Bugs
    • Source
    • Example
    • Forum
    • History

    Code Sample

    <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
        }
     
    });

    Forum Posts

    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
    YUI Projects
    • All YUI Downloads
    • YUI 2
    • YUI 3
    • YUI Doc
    • YUI Compressor
    • YUILibrary.com
    • YUI Build Tool
    • YUI PHP Loader
    YUI Labs
    • All YUI Labs Projects
    • Yeti
    Pages & Links
    • All YUI Downloads
    • Git FAQ
    • Graded Browser Support
    • Contribute to YUI
    • Forum Stats
    • Gallery Stats
    • YUI Calendar
    Contribute
    • Submit a Bug
    • Request a Feature
    • Write Code
    • Meet the Team
    Follow YUI
    • on GitHub
    • on Twitter
    • on FriendFeed
    • on Facebook
    • on IRC
    • YUI Blog
    • YUI Theater
    • YUI Forums

    © 2010 YUI Library - Site Credits