title: Slide Title subtitle: Subtitle class: image ![Mobile vs desktop users](image.png) --- title: Agenda class: big Things we'll cover: - Bullet1 - Bullet2 - Bullet3 --- title: Today class: nobackground fill ![Many kinds of devices.](image.png) --- title: Big Title Slide class: title-slide --- title: Code Example Media Queries are sweet:
@media screen and (max-width: 640px) { #sidebar { display: none; } }--- title: Once more, with JavaScript
function isSmall() { return window.matchMedia("(min-device-width: ???)").matches; } function hasTouch() { return Modernizr.touch; } function detectFormFactor() { var device = DESKTOP; if (hasTouch()) { device = isSmall() ? PHONE : TABLET; } return device; }