You are here

README.txt in Modernizr 7.2

Same filename and directory in other branches
  1. 8 README.txt
  2. 7.3 README.txt
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 <html> 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 aims to integrate Modernizr.load()
so it is available to themes/modules that support HTML5/CSS3 features.

For more information, visit: http://www.modernizr.com/docs/


Drupal components
=================

The code incudes an optional submodule (modernizr_forceredirect) that
was for the 1.x version of modernizr.js and is no longer needed for v2.
We strongly recommend using the latest version of Modernizr, and can
only support the latest version of the JS library. The _forceredirect
module will likely be removed for 3.x release.


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

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 aims to integrate Modernizr.load()
  26. so it is available to themes/modules that support HTML5/CSS3 features.
  27. For more information, visit: http://www.modernizr.com/docs/
  28. Drupal components
  29. =================
  30. The code incudes an optional submodule (modernizr_forceredirect) that
  31. was for the 1.x version of modernizr.js and is no longer needed for v2.
  32. We strongly recommend using the latest version of Modernizr, and can
  33. only support the latest version of the JS library. The _forceredirect
  34. module will likely be removed for 3.x release.
  35. Credits
  36. =======
  37. Project page: http://drupal.org/project/modernizr
  38. Library page: http://modernizr.com
  39. Module originally written by:
  40. Tamás Demeter-Haludka - http://drupal.org/user/372872