html5 and css3 – exploring mobile possibilities - frontend conference zürich
TRANSCRIPT
![Page 1: HTML5 and CSS3 – exploring mobile possibilities - Frontend Conference Zürich](https://reader036.vdocuments.us/reader036/viewer/2022081602/55514f2fb4c905bd1c8b55f5/html5/thumbnails/1.jpg)
HTML5 and CSS3: Exploring Mobile Possibilities
HTML5 and CSS3: Exploring Mobile Possibilities
![Page 2: HTML5 and CSS3 – exploring mobile possibilities - Frontend Conference Zürich](https://reader036.vdocuments.us/reader036/viewer/2022081602/55514f2fb4c905bd1c8b55f5/html5/thumbnails/2.jpg)
![Page 3: HTML5 and CSS3 – exploring mobile possibilities - Frontend Conference Zürich](https://reader036.vdocuments.us/reader036/viewer/2022081602/55514f2fb4c905bd1c8b55f5/html5/thumbnails/3.jpg)
![Page 4: HTML5 and CSS3 – exploring mobile possibilities - Frontend Conference Zürich](https://reader036.vdocuments.us/reader036/viewer/2022081602/55514f2fb4c905bd1c8b55f5/html5/thumbnails/4.jpg)
![Page 5: HTML5 and CSS3 – exploring mobile possibilities - Frontend Conference Zürich](https://reader036.vdocuments.us/reader036/viewer/2022081602/55514f2fb4c905bd1c8b55f5/html5/thumbnails/5.jpg)
Roby on Rails
![Page 6: HTML5 and CSS3 – exploring mobile possibilities - Frontend Conference Zürich](https://reader036.vdocuments.us/reader036/viewer/2022081602/55514f2fb4c905bd1c8b55f5/html5/thumbnails/6.jpg)
Mozilla is a global non-profit dedicated to putting you in control of your online experience and shaping the future of the Web for the public good
![Page 7: HTML5 and CSS3 – exploring mobile possibilities - Frontend Conference Zürich](https://reader036.vdocuments.us/reader036/viewer/2022081602/55514f2fb4c905bd1c8b55f5/html5/thumbnails/7.jpg)
![Page 8: HTML5 and CSS3 – exploring mobile possibilities - Frontend Conference Zürich](https://reader036.vdocuments.us/reader036/viewer/2022081602/55514f2fb4c905bd1c8b55f5/html5/thumbnails/8.jpg)
![Page 9: HTML5 and CSS3 – exploring mobile possibilities - Frontend Conference Zürich](https://reader036.vdocuments.us/reader036/viewer/2022081602/55514f2fb4c905bd1c8b55f5/html5/thumbnails/9.jpg)
CSS Media Queries
![Page 10: HTML5 and CSS3 – exploring mobile possibilities - Frontend Conference Zürich](https://reader036.vdocuments.us/reader036/viewer/2022081602/55514f2fb4c905bd1c8b55f5/html5/thumbnails/10.jpg)
widthheightdevice-widthdevice-heightorientationaspect-ratiodevice-aspect-ratio
colorcolor-indexmonochromeresolutionscangrid
![Page 11: HTML5 and CSS3 – exploring mobile possibilities - Frontend Conference Zürich](https://reader036.vdocuments.us/reader036/viewer/2022081602/55514f2fb4c905bd1c8b55f5/html5/thumbnails/11.jpg)
min-widthmax-widthorientation
![Page 12: HTML5 and CSS3 – exploring mobile possibilities - Frontend Conference Zürich](https://reader036.vdocuments.us/reader036/viewer/2022081602/55514f2fb4c905bd1c8b55f5/html5/thumbnails/12.jpg)
<link rel="stylesheet" href="pretty.css" media="screen and (min-width: 500px)">
![Page 13: HTML5 and CSS3 – exploring mobile possibilities - Frontend Conference Zürich](https://reader036.vdocuments.us/reader036/viewer/2022081602/55514f2fb4c905bd1c8b55f5/html5/thumbnails/13.jpg)
.nav { width: 150px;}
@media screen and (min-width: 500px) { .nav { width: 300px; }}
![Page 14: HTML5 and CSS3 – exploring mobile possibilities - Frontend Conference Zürich](https://reader036.vdocuments.us/reader036/viewer/2022081602/55514f2fb4c905bd1c8b55f5/html5/thumbnails/14.jpg)
@media screen and (min-width: 500px) and (max-width: 1024px) { .nav { width: 200px; }}
![Page 15: HTML5 and CSS3 – exploring mobile possibilities - Frontend Conference Zürich](https://reader036.vdocuments.us/reader036/viewer/2022081602/55514f2fb4c905bd1c8b55f5/html5/thumbnails/15.jpg)
@media screen and (min-width: 100px),@media handheld { .nav { width: 350px; }}
![Page 16: HTML5 and CSS3 – exploring mobile possibilities - Frontend Conference Zürich](https://reader036.vdocuments.us/reader036/viewer/2022081602/55514f2fb4c905bd1c8b55f5/html5/thumbnails/16.jpg)
@media only screen and (min-width: 100px) { .nav { width: 350px; }}
![Page 17: HTML5 and CSS3 – exploring mobile possibilities - Frontend Conference Zürich](https://reader036.vdocuments.us/reader036/viewer/2022081602/55514f2fb4c905bd1c8b55f5/html5/thumbnails/17.jpg)
@media not screen and (min-width: 100px) { .nav { width: 100%; }}
![Page 18: HTML5 and CSS3 – exploring mobile possibilities - Frontend Conference Zürich](https://reader036.vdocuments.us/reader036/viewer/2022081602/55514f2fb4c905bd1c8b55f5/html5/thumbnails/18.jpg)
@media screen and (orientation: landscape) { .nav { float: left; width: 20%; } .main { float: right; width: 80%; }}
![Page 19: HTML5 and CSS3 – exploring mobile possibilities - Frontend Conference Zürich](https://reader036.vdocuments.us/reader036/viewer/2022081602/55514f2fb4c905bd1c8b55f5/html5/thumbnails/19.jpg)
@media screen and (orientation: portrait) { .nav { width: 100%; } .main { width: 100%; }}
![Page 20: HTML5 and CSS3 – exploring mobile possibilities - Frontend Conference Zürich](https://reader036.vdocuments.us/reader036/viewer/2022081602/55514f2fb4c905bd1c8b55f5/html5/thumbnails/20.jpg)
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0">
![Page 21: HTML5 and CSS3 – exploring mobile possibilities - Frontend Conference Zürich](https://reader036.vdocuments.us/reader036/viewer/2022081602/55514f2fb4c905bd1c8b55f5/html5/thumbnails/21.jpg)
![Page 22: HTML5 and CSS3 – exploring mobile possibilities - Frontend Conference Zürich](https://reader036.vdocuments.us/reader036/viewer/2022081602/55514f2fb4c905bd1c8b55f5/html5/thumbnails/22.jpg)
http://mediaqueri.es/
![Page 24: HTML5 and CSS3 – exploring mobile possibilities - Frontend Conference Zürich](https://reader036.vdocuments.us/reader036/viewer/2022081602/55514f2fb4c905bd1c8b55f5/html5/thumbnails/24.jpg)
<div class="flex-container"> <section class="col-1">I am column 1</section> <section class="col-2">I am column 2</section> <section class="col-3">I am column 3</section></div>
![Page 25: HTML5 and CSS3 – exploring mobile possibilities - Frontend Conference Zürich](https://reader036.vdocuments.us/reader036/viewer/2022081602/55514f2fb4c905bd1c8b55f5/html5/thumbnails/25.jpg)
.flex-container { display: -moz-box; display: -ms-box; display: -webkit-box; display: box; -moz-box-orient: horizontal; -ms-box-orient: horizontal; -webkit-box-orient: horizontal; box-orient: horizontal;}
![Page 26: HTML5 and CSS3 – exploring mobile possibilities - Frontend Conference Zürich](https://reader036.vdocuments.us/reader036/viewer/2022081602/55514f2fb4c905bd1c8b55f5/html5/thumbnails/26.jpg)
.col-1 { -moz-box-flex: 1; -ms-box-flex: 1; -webkit-box-flex: 1; box-flex: 1;}
.col-2 { -moz-box-flex: 1; -ms-box-flex: 1; -webkit-box-flex: 1; box-flex: 1;}
.col-3 { -moz-box-flex: 2; -ms-box-flex: 2; -webkit-box-flex: 2; box-flex: 2;}
![Page 27: HTML5 and CSS3 – exploring mobile possibilities - Frontend Conference Zürich](https://reader036.vdocuments.us/reader036/viewer/2022081602/55514f2fb4c905bd1c8b55f5/html5/thumbnails/27.jpg)
.col-1 { -moz-box-ordinal-group: 2; -ms-box-ordinal-group: 2; -webkit-box-ordinal-group: 2; box-ordinal-group: 2;}
.col-2 { -moz-box-ordinal-group: 3; -ms-box-ordinal-group: 3; -webkit-box-ordinal-group: 3; box-ordinal-group: 3;}
.col-3 { -moz-box-ordinal-group: 1; -ms-box-ordinal-group: 1; -webkit-box-ordinal-group: 1; box-ordinal-group: 1;}
![Page 28: HTML5 and CSS3 – exploring mobile possibilities - Frontend Conference Zürich](https://reader036.vdocuments.us/reader036/viewer/2022081602/55514f2fb4c905bd1c8b55f5/html5/thumbnails/28.jpg)
flex- instead of box-
![Page 29: HTML5 and CSS3 – exploring mobile possibilities - Frontend Conference Zürich](https://reader036.vdocuments.us/reader036/viewer/2022081602/55514f2fb4c905bd1c8b55f5/html5/thumbnails/29.jpg)
CSS Transitions
![Page 30: HTML5 and CSS3 – exploring mobile possibilities - Frontend Conference Zürich](https://reader036.vdocuments.us/reader036/viewer/2022081602/55514f2fb4c905bd1c8b55f5/html5/thumbnails/30.jpg)
/* Shorthand version */#hello { display: inline-block; height: 20px; opacity: 0.3; -moz-transition: height 1s ease-out, opacity 1s ease; -ms-transition: height 1s ease-out, opacity 1s ease; -o-transition: height 1s ease-out, opacity 1s ease; -webkit-transition: height 1s ease-out, opacity 1s ease; transition: height 1s ease-out, opacity 1s ease;}
#hello:hover { height: 40px; opacity: 1;}
![Page 31: HTML5 and CSS3 – exploring mobile possibilities - Frontend Conference Zürich](https://reader036.vdocuments.us/reader036/viewer/2022081602/55514f2fb4c905bd1c8b55f5/html5/thumbnails/31.jpg)
/* Shorthand version */.menu-item { position: relative; display: inline-block; border: 1px dashed #000; padding: 10px; background: #ffffa2; height: 20px; opacity: 0.3; text-decoration: none; -moz-transition: all 1s ease; -ms-transition: all 1s ease; -o-transition: all 1s ease; -webkit-transition: all 1s ease; transition: all 1s ease;}
.menu-item:hover { opacity: 1; -moz-transform: scale(2) rotate(30deg) translate(50px); -ms-transform: scale(2) rotate(30deg) translate(50px); -o-transform: scale(2) rotate(30deg) translate(50px); -webkit-transform: scale(1.2) rotate(30deg) translate(50px); transform: scale(2) rotate(30deg) translate(50px);}
![Page 33: HTML5 and CSS3 – exploring mobile possibilities - Frontend Conference Zürich](https://reader036.vdocuments.us/reader036/viewer/2022081602/55514f2fb4c905bd1c8b55f5/html5/thumbnails/33.jpg)
.love-me { -webkit-transform: translate3d(0, 0, 0);}
![Page 34: HTML5 and CSS3 – exploring mobile possibilities - Frontend Conference Zürich](https://reader036.vdocuments.us/reader036/viewer/2022081602/55514f2fb4c905bd1c8b55f5/html5/thumbnails/34.jpg)
CSS Animations
![Page 35: HTML5 and CSS3 – exploring mobile possibilities - Frontend Conference Zürich](https://reader036.vdocuments.us/reader036/viewer/2022081602/55514f2fb4c905bd1c8b55f5/html5/thumbnails/35.jpg)
.animation-container { height: 60px; padding: 10px; -moz-animation-name: movearound; -moz-animation-duration: 4s; -moz-animation-iteration-count: infinite; -moz-animation-direction: normal; -moz-animation-timing-function: ease; -webkit-animation-name: movearound; -webkit-animation-duration: 4s; -webkit-animation-iteration-count: infinite; -webkit-animation-direction: normal; -webkit-animation-timing-function: ease;}
@-moz-keyframes movearound { from { width: 200px; background: #f00; opacity: 0.5; -moz-transform: scale(0.5) rotate(15deg); } to { width: 400px; background: #ffffa2; opacity: 1; -moz-transform: scale(1) rotate(0deg); }}
![Page 36: HTML5 and CSS3 – exploring mobile possibilities - Frontend Conference Zürich](https://reader036.vdocuments.us/reader036/viewer/2022081602/55514f2fb4c905bd1c8b55f5/html5/thumbnails/36.jpg)
@-webkit-keyframes movearound { from { width: 200px; background: #f00; opacity: 0.5; -webkit-transform: scale(0.5) rotate(15deg); } to { width: 400px; background: #ffffa2; opacity: 1; -webkit-transform: scale(1) rotate(0deg); }}
![Page 37: HTML5 and CSS3 – exploring mobile possibilities - Frontend Conference Zürich](https://reader036.vdocuments.us/reader036/viewer/2022081602/55514f2fb4c905bd1c8b55f5/html5/thumbnails/37.jpg)
CSS box-shadow and text-shadow
![Page 38: HTML5 and CSS3 – exploring mobile possibilities - Frontend Conference Zürich](https://reader036.vdocuments.us/reader036/viewer/2022081602/55514f2fb4c905bd1c8b55f5/html5/thumbnails/38.jpg)
![Page 39: HTML5 and CSS3 – exploring mobile possibilities - Frontend Conference Zürich](https://reader036.vdocuments.us/reader036/viewer/2022081602/55514f2fb4c905bd1c8b55f5/html5/thumbnails/39.jpg)
![Page 40: HTML5 and CSS3 – exploring mobile possibilities - Frontend Conference Zürich](https://reader036.vdocuments.us/reader036/viewer/2022081602/55514f2fb4c905bd1c8b55f5/html5/thumbnails/40.jpg)
text-overflow: ellipsis
![Page 42: HTML5 and CSS3 – exploring mobile possibilities - Frontend Conference Zürich](https://reader036.vdocuments.us/reader036/viewer/2022081602/55514f2fb4c905bd1c8b55f5/html5/thumbnails/42.jpg)
![Page 43: HTML5 and CSS3 – exploring mobile possibilities - Frontend Conference Zürich](https://reader036.vdocuments.us/reader036/viewer/2022081602/55514f2fb4c905bd1c8b55f5/html5/thumbnails/43.jpg)
HTML5 Forms
![Page 44: HTML5 and CSS3 – exploring mobile possibilities - Frontend Conference Zürich](https://reader036.vdocuments.us/reader036/viewer/2022081602/55514f2fb4c905bd1c8b55f5/html5/thumbnails/44.jpg)
<input type="color">
<input type="date">
<input type="datetime">
<input type="datetime-local">
<input type="email">
<input type="month">
<input type="number">
<input type="range">
<input type="search" results="5" autosave="saved-searches">
<input type="tel">
<input type="time">
<input type="url">
<input type="week">
New form types
![Page 45: HTML5 and CSS3 – exploring mobile possibilities - Frontend Conference Zürich](https://reader036.vdocuments.us/reader036/viewer/2022081602/55514f2fb4c905bd1c8b55f5/html5/thumbnails/45.jpg)
![Page 46: HTML5 and CSS3 – exploring mobile possibilities - Frontend Conference Zürich](https://reader036.vdocuments.us/reader036/viewer/2022081602/55514f2fb4c905bd1c8b55f5/html5/thumbnails/46.jpg)
![Page 47: HTML5 and CSS3 – exploring mobile possibilities - Frontend Conference Zürich](https://reader036.vdocuments.us/reader036/viewer/2022081602/55514f2fb4c905bd1c8b55f5/html5/thumbnails/47.jpg)
![Page 48: HTML5 and CSS3 – exploring mobile possibilities - Frontend Conference Zürich](https://reader036.vdocuments.us/reader036/viewer/2022081602/55514f2fb4c905bd1c8b55f5/html5/thumbnails/48.jpg)
![Page 49: HTML5 and CSS3 – exploring mobile possibilities - Frontend Conference Zürich](https://reader036.vdocuments.us/reader036/viewer/2022081602/55514f2fb4c905bd1c8b55f5/html5/thumbnails/49.jpg)
![Page 50: HTML5 and CSS3 – exploring mobile possibilities - Frontend Conference Zürich](https://reader036.vdocuments.us/reader036/viewer/2022081602/55514f2fb4c905bd1c8b55f5/html5/thumbnails/50.jpg)
<input type="text" autocomplete="off">
<input type="text" autofocus>
<input type="submit" formaction="http://example.org/save" value="Save">
<input type="submit" formenctype="application/x-www-form-urlencoded" value="Save with enctype">
<input type="submit" formmethod="POST" value="Send as POST">
<input type="submit" formnovalidate value="Don't validate">
<input type="submit" formtarget="_blank" value="Post to new tab/window">
New form attributes
![Page 51: HTML5 and CSS3 – exploring mobile possibilities - Frontend Conference Zürich](https://reader036.vdocuments.us/reader036/viewer/2022081602/55514f2fb4c905bd1c8b55f5/html5/thumbnails/51.jpg)
<input type="text" list="data-list">
<input type="range" max="95">
<input type="range" min="2">
<input type="file" multiple>
<input type="text" readonly>
<input type="text" required>
<input type="text" pattern="[A-Z]*">
<input type="text" placeholder="E.g. Robocop">
<input type="text" spellcheck="true">
<input type="number" step="5">
![Page 52: HTML5 and CSS3 – exploring mobile possibilities - Frontend Conference Zürich](https://reader036.vdocuments.us/reader036/viewer/2022081602/55514f2fb4c905bd1c8b55f5/html5/thumbnails/52.jpg)
<input type="text" list="data-list">
<datalist id="data-list"> <option value="Hugo Reyes"> <option value="Jack Shephard"> <option value="James 'Sawyer' Ford"> <option value="John Locke"> <option value="Sayid Jarrah"></datalist>
New form elements
![Page 53: HTML5 and CSS3 – exploring mobile possibilities - Frontend Conference Zürich](https://reader036.vdocuments.us/reader036/viewer/2022081602/55514f2fb4c905bd1c8b55f5/html5/thumbnails/53.jpg)
<keygen></keygen>
<meter min="0" max="10" value="7"></meter>
<input type="range" id="range"><output for="range" id="output"></output>
<progress max="100" value="70">70%</progress>
![Page 54: HTML5 and CSS3 – exploring mobile possibilities - Frontend Conference Zürich](https://reader036.vdocuments.us/reader036/viewer/2022081602/55514f2fb4c905bd1c8b55f5/html5/thumbnails/54.jpg)
<input type="range" id="range"><output for="range" id="output"></output>
<script> (function () { var theForm = document.getElementById("the-form"); if ("oninput" in theForm) { theForm.addEventListener("input", function () { output.value = range.value; }, false); } })();</script>
![Page 55: HTML5 and CSS3 – exploring mobile possibilities - Frontend Conference Zürich](https://reader036.vdocuments.us/reader036/viewer/2022081602/55514f2fb4c905bd1c8b55f5/html5/thumbnails/55.jpg)
![Page 56: HTML5 and CSS3 – exploring mobile possibilities - Frontend Conference Zürich](https://reader036.vdocuments.us/reader036/viewer/2022081602/55514f2fb4c905bd1c8b55f5/html5/thumbnails/56.jpg)
http://www.quirksmode.org/html5/inputs.html
http://www.quirksmode.org/html5/inputs_mobile.html
http://wufoo.com/html5/
![Page 57: HTML5 and CSS3 – exploring mobile possibilities - Frontend Conference Zürich](https://reader036.vdocuments.us/reader036/viewer/2022081602/55514f2fb4c905bd1c8b55f5/html5/thumbnails/57.jpg)
Link protocols
![Page 58: HTML5 and CSS3 – exploring mobile possibilities - Frontend Conference Zürich](https://reader036.vdocuments.us/reader036/viewer/2022081602/55514f2fb4c905bd1c8b55f5/html5/thumbnails/58.jpg)
<a href="tel:+441111234567">tel: link</a>
<a href="sms:+441111234567">sms: link</a>
<a href="sms:+441111234567?body=Text%20me"> sms: with body</a>
<a href="sms:+441111234567,+441111678901"> sms: with multiple numbers</a>
<a href="sms:+441111234567,+441111678901?body=Text%20me"> sms: with multiple numbers + body</a>
#browserlove
![Page 59: HTML5 and CSS3 – exploring mobile possibilities - Frontend Conference Zürich](https://reader036.vdocuments.us/reader036/viewer/2022081602/55514f2fb4c905bd1c8b55f5/html5/thumbnails/59.jpg)
JavaScript on mobile
![Page 60: HTML5 and CSS3 – exploring mobile possibilities - Frontend Conference Zürich](https://reader036.vdocuments.us/reader036/viewer/2022081602/55514f2fb4c905bd1c8b55f5/html5/thumbnails/60.jpg)
Web Storage
![Page 61: HTML5 and CSS3 – exploring mobile possibilities - Frontend Conference Zürich](https://reader036.vdocuments.us/reader036/viewer/2022081602/55514f2fb4c905bd1c8b55f5/html5/thumbnails/61.jpg)
![Page 62: HTML5 and CSS3 – exploring mobile possibilities - Frontend Conference Zürich](https://reader036.vdocuments.us/reader036/viewer/2022081602/55514f2fb4c905bd1c8b55f5/html5/thumbnails/62.jpg)
sessionStorage.setItem("Charming", "Piers Morgan");console.log(sessionStorage.getItem("Charming"));
![Page 63: HTML5 and CSS3 – exploring mobile possibilities - Frontend Conference Zürich](https://reader036.vdocuments.us/reader036/viewer/2022081602/55514f2fb4c905bd1c8b55f5/html5/thumbnails/63.jpg)
localStorage.setItem("Job", "Show host");
![Page 64: HTML5 and CSS3 – exploring mobile possibilities - Frontend Conference Zürich](https://reader036.vdocuments.us/reader036/viewer/2022081602/55514f2fb4c905bd1c8b55f5/html5/thumbnails/64.jpg)
var piersMorgan = { "Transportation" : "Segway", "Damage" : "Three broken ribs"};
localStorage.setItem("piersMorgan", JSON.stringify(piersMorgan));
console.log(typeof JSON.parse(localStorage.getItem("piersMorgan")));
![Page 65: HTML5 and CSS3 – exploring mobile possibilities - Frontend Conference Zürich](https://reader036.vdocuments.us/reader036/viewer/2022081602/55514f2fb4c905bd1c8b55f5/html5/thumbnails/65.jpg)
IndexedDBWeb SQL
![Page 66: HTML5 and CSS3 – exploring mobile possibilities - Frontend Conference Zürich](https://reader036.vdocuments.us/reader036/viewer/2022081602/55514f2fb4c905bd1c8b55f5/html5/thumbnails/66.jpg)
Geolocation
![Page 67: HTML5 and CSS3 – exploring mobile possibilities - Frontend Conference Zürich](https://reader036.vdocuments.us/reader036/viewer/2022081602/55514f2fb4c905bd1c8b55f5/html5/thumbnails/67.jpg)
if (navigator.geolocation) { navigator.geolocation.getCurrentPosition(function (position) { alert(position.coords.latitude + ", " + position.coords.longitude); }); }
![Page 68: HTML5 and CSS3 – exploring mobile possibilities - Frontend Conference Zürich](https://reader036.vdocuments.us/reader036/viewer/2022081602/55514f2fb4c905bd1c8b55f5/html5/thumbnails/68.jpg)
![Page 69: HTML5 and CSS3 – exploring mobile possibilities - Frontend Conference Zürich](https://reader036.vdocuments.us/reader036/viewer/2022081602/55514f2fb4c905bd1c8b55f5/html5/thumbnails/69.jpg)
![Page 70: HTML5 and CSS3 – exploring mobile possibilities - Frontend Conference Zürich](https://reader036.vdocuments.us/reader036/viewer/2022081602/55514f2fb4c905bd1c8b55f5/html5/thumbnails/70.jpg)
Offline Web Applications
![Page 71: HTML5 and CSS3 – exploring mobile possibilities - Frontend Conference Zürich](https://reader036.vdocuments.us/reader036/viewer/2022081602/55514f2fb4c905bd1c8b55f5/html5/thumbnails/71.jpg)
// Poll the navigator.onLine propertysetInterval(function () { console.log(navigator.onLine);}, 1000);
![Page 72: HTML5 and CSS3 – exploring mobile possibilities - Frontend Conference Zürich](https://reader036.vdocuments.us/reader036/viewer/2022081602/55514f2fb4c905bd1c8b55f5/html5/thumbnails/72.jpg)
<!DOCTYPE html><html manifest="offline.appcache"><head>...
![Page 73: HTML5 and CSS3 – exploring mobile possibilities - Frontend Conference Zürich](https://reader036.vdocuments.us/reader036/viewer/2022081602/55514f2fb4c905bd1c8b55f5/html5/thumbnails/73.jpg)
CACHE MANIFEST
# VERSION 10
CACHE:offline.htmlbase.css
FALLBACK:online.css offline.css
NETWORK:/live-updates
![Page 74: HTML5 and CSS3 – exploring mobile possibilities - Frontend Conference Zürich](https://reader036.vdocuments.us/reader036/viewer/2022081602/55514f2fb4c905bd1c8b55f5/html5/thumbnails/74.jpg)
History API
![Page 75: HTML5 and CSS3 – exploring mobile possibilities - Frontend Conference Zürich](https://reader036.vdocuments.us/reader036/viewer/2022081602/55514f2fb4c905bd1c8b55f5/html5/thumbnails/75.jpg)
window.history.pushState(state, title, url);
![Page 76: HTML5 and CSS3 – exploring mobile possibilities - Frontend Conference Zürich](https://reader036.vdocuments.us/reader036/viewer/2022081602/55514f2fb4c905bd1c8b55f5/html5/thumbnails/76.jpg)
var url = "http://robertnyman.com",title = "My blog",state = { address : url};
window.history.pushState(state, title, url);
![Page 77: HTML5 and CSS3 – exploring mobile possibilities - Frontend Conference Zürich](https://reader036.vdocuments.us/reader036/viewer/2022081602/55514f2fb4c905bd1c8b55f5/html5/thumbnails/77.jpg)
![Page 78: HTML5 and CSS3 – exploring mobile possibilities - Frontend Conference Zürich](https://reader036.vdocuments.us/reader036/viewer/2022081602/55514f2fb4c905bd1c8b55f5/html5/thumbnails/78.jpg)
Mobile Perf
![Page 79: HTML5 and CSS3 – exploring mobile possibilities - Frontend Conference Zürich](https://reader036.vdocuments.us/reader036/viewer/2022081602/55514f2fb4c905bd1c8b55f5/html5/thumbnails/79.jpg)
weinre
![Page 81: HTML5 and CSS3 – exploring mobile possibilities - Frontend Conference Zürich](https://reader036.vdocuments.us/reader036/viewer/2022081602/55514f2fb4c905bd1c8b55f5/html5/thumbnails/81.jpg)
![Page 82: HTML5 and CSS3 – exploring mobile possibilities - Frontend Conference Zürich](https://reader036.vdocuments.us/reader036/viewer/2022081602/55514f2fb4c905bd1c8b55f5/html5/thumbnails/82.jpg)
position: fixed
overflow: scroll
-webkit-overflow-scrolling: touch
Web Workers
![Page 83: HTML5 and CSS3 – exploring mobile possibilities - Frontend Conference Zürich](https://reader036.vdocuments.us/reader036/viewer/2022081602/55514f2fb4c905bd1c8b55f5/html5/thumbnails/83.jpg)
![Page 84: HTML5 and CSS3 – exploring mobile possibilities - Frontend Conference Zürich](https://reader036.vdocuments.us/reader036/viewer/2022081602/55514f2fb4c905bd1c8b55f5/html5/thumbnails/84.jpg)
![Page 85: HTML5 and CSS3 – exploring mobile possibilities - Frontend Conference Zürich](https://reader036.vdocuments.us/reader036/viewer/2022081602/55514f2fb4c905bd1c8b55f5/html5/thumbnails/85.jpg)
![Page 86: HTML5 and CSS3 – exploring mobile possibilities - Frontend Conference Zürich](https://reader036.vdocuments.us/reader036/viewer/2022081602/55514f2fb4c905bd1c8b55f5/html5/thumbnails/86.jpg)
![Page 87: HTML5 and CSS3 – exploring mobile possibilities - Frontend Conference Zürich](https://reader036.vdocuments.us/reader036/viewer/2022081602/55514f2fb4c905bd1c8b55f5/html5/thumbnails/87.jpg)
Robert [email protected]: @robertnyman
robertnyman.com/speaking/robertnyman.com/html5/robertnyman.com/css3/