jcheroske/meteor-modernizr-touch

Modernizr with just the touch tests.

★ 0Forks 0JavaScriptGitHub ↗Compare

README

Modernizr touchevents

Modernizr build that only tests for the presence of touchscreen events support.

Installation

$ meteor add jcheroske:modernizr-touch

Usage

If the client is touch-event savvy, the <html> tag will have a touchevents class added:

<html class="touchevents">
  ...
</html>

If the client is not a touchscreen device, a no-touchevents class will be added instead:

<html class="no-touchevents">
  ...
</html>

Contributors

jcheroske

Issues