mm
ef
ef
mm
ef
ef
ef
mm
ef+mm
ef
mm
ef
questions
mm
/* Tablets with a 600px width (in portrait mode) */
@media only screen and (min-width: 600px) and (orientation:portrait) {
body {
font-size: 1.575em;
}
ef
Responsive application design requires different interfaces for different screen sizes.
mm
Best piece of advice from this whole talk!
mm
ef
(function($) {
// ...
var barVisible = $('#word-bar').is(':visible');
var listingsVisible = $('#listings').is(':visible');
// ...
}(jQuery));
ef
(function($) {
// ...
var supportsOrientationChange = "onorientationchange" in window;
var orientationEvent = supportsOrientationChange ? "orientationchange" : "resize";
// Reset barVisible on orientation changes.
var dispatch = _.clone(Backbone.Events);
window.addEventListener(
orientationEvent,
function() {
barVisible = $('#word-bar').is(':visible');
listingsVisible = $('#listings').is(':visible');
dispatch.trigger('orientationChange');
},
false
);
// ...
}(jQuery));
ef
mm
ef
ef
mm