21. full screen
var body = document.documentElement;
!
if (body.requestFullScreen) {
body.requestFullScreen();
}
22. full screen
var body = document.documentElement;
!
if (body.requestFullScreen) {
body.requestFullScreen();
} else if (body.webkitRequestFullScreen) {
body.webkitRequestFullScreen();
}
23. full screen
var body = document.documentElement;
!
if (body.requestFullScreen) {
body.requestFullScreen();
} else if (body.webkitRequestFullScreen) {
body.webkitRequestFullScreen();
} else if (body.mozRequestFullScreen) {
body.mozRequestFullScreen();
}
60. hi res canvas
var devPxRatio = window.devicePixelRatio;
!
var canvasPxRatio =
document.querySelector("canvas")
.getContext("2d")
.webkitBackingStorePixelRatio;
61. hi res canvas
<canvas width="300" height="200">
</canvas>
devPxRatio = 2
canvasPxRatio = 1
300px
62. hi res canvas
<canvas width="300" height="200">
</canvas>
devPxRatio >= 1
canvasPxRatio = undefined
300px
173. you can reach a good
experience
thank you!
firt.mobi/pmw
Tomorrow
Google Glass talk
#TopConf
firtman@gmail.com
@firt
Pictures)from)freedigitalphotos.net)