You are here

README.txt in Modernizr 8

Same filename and directory in other branches
  1. 7.3 README.txt
  2. 7.2 README.txt
Non-displayable characters.

File

README.txt
View source
  1. Modernizr for Drupal
  2. ====================
  3. This module implements Modernizr, the client-side feature detection
  4. library. Modernizr allows you to avoid user-agent sniffing on the
  5. server, and rely on the honesty of the browsers that visit your
  6. website by detecting each individual feature that they support.
  7. Modernizr will inject yes/no classes into your tag for each
  8. test, so that you can write conditional rules based on the results:
  9. .multiplebgs div p {
  10. /* properties for browsers that
  11. support multiple backgrounds */
  12. }
  13. .no-multiplebgs div p {
  14. /* optional fallback properties
  15. for browsers that don't */
  16. }
  17. Modernizr v2 optionally includes a script loader which can load
  18. additional resources based on the outcome of specific Modernizr
  19. tests you're interested in:
  20. Modernizr.load({
  21. test : Modernizr.geolocation,
  22. yep : 'normal.js',
  23. nope : ['polyfill.js', 'wrapper.js']
  24. });
  25. The 3.x branch of the Drupal module integrates Modernizr.load()
  26. so it can be used by themes/modules that support HTML5/CSS3.
  27. Documentation
  28. =============
  29. Read about Modernizr: http://www.modernizr.com/docs/
  30. Module documentation: http://drupal.org/node/1913744
  31. Installation & Usage
  32. ====================
  33. 1. Install module
  34. 2. Build Modernizr at /admin/config/development/modernizr
  35. 3. Place your custom build inside sites/all/libraries/modernizr
  36. Credits
  37. =======
  38. Project page: http://drupal.org/project/modernizr
  39. Library page: http://modernizr.com
  40. Module originally written by:
  41. Tamás Demeter-Haludka - http://drupal.org/user/372872
  42. Maintainers:
  43. Chris Ruppel - http://drupal.org/user/411999