README.txt in Modernizr 7.3
Same filename and directory in other branches
Non-displayable characters.
File
README.txtView source
- Modernizr for Drupal
- ====================
-
- This module implements Modernizr, the client-side feature detection
- library. Modernizr allows you to avoid user-agent sniffing on the
- server, and rely on the honesty of the browsers that visit your
- website by detecting each individual feature that they support.
-
- Modernizr will inject yes/no classes into your tag for each
- test, so that you can write conditional rules based on the results:
-
- .multiplebgs div p {
- /* properties for browsers that
- support multiple backgrounds */
- }
- .no-multiplebgs div p {
- /* optional fallback properties
- for browsers that don't */
- }
-
- Modernizr v2 optionally includes a script loader which can load
- additional resources based on the outcome of specific Modernizr
- tests you're interested in:
-
- Modernizr.load({
- test : Modernizr.geolocation,
- yep : 'normal.js',
- nope : ['polyfill.js', 'wrapper.js']
- });
-
- The 3.x branch of the Drupal module integrates Modernizr.load()
- so it can be used by themes/modules that support HTML5/CSS3.
-
- Documentation
- =============
-
- Read about Modernizr: http://www.modernizr.com/docs/
- Module documentation: http://drupal.org/node/1913744
-
- Installation & Usage
- ====================
-
- 1. Install module
- 2. Build Modernizr at /admin/config/development/modernizr
- 3. Place your custom build inside sites/all/libraries/modernizr
-
- Credits
- =======
-
- Project page: http://drupal.org/project/modernizr
- Library page: http://modernizr.com
-
- Module originally written by:
- Tamás Demeter-Haludka - http://drupal.org/user/372872
-
- Maintainers:
- Chris Ruppel - http://drupal.org/user/411999