Mais conteúdo relacionado
Semelhante a Développement Web sur iPhone (iPhone+iPad DevCamp Québec) (20)
Développement Web sur iPhone (iPhone+iPad DevCamp Québec)
- 1. 31 mars 2010 - iPhone + iPad DevCamp Qc
Développement Web sur iPhone
HTML, CSS et Javascript
Rémi Prévost, iXmédia inc.
BY-NC-SA
- 10. HTML No Flash, LOL.
CSS
Javascript
Flash
- 18. HTML › Nouveaux éléments
video
<video src="lipdub-ixmedia.mp4"
width="320" height="240"
controls preload>
</video>
- 19. HTML › Nouveaux éléments
video
<video src="lipdub-ixmedia.mp4"
width="320" height="240"
controls preload>
</video>
- 20. HTML › Nouveaux éléments
video
<video src="lipdub-ixmedia.mp4"
width="320" height="240"
controls preload>
</video>
- 24. HTML › Nouveaux attributs
placeholder
<input placeholder="Recherche…" />
- 25. HTML › Nouveaux attributs
placeholder
<input placeholder="Recherche…" />
- 26. HTML › Nouveaux attributs
placeholder
<input placeholder="Recherche…" />
- 32. HTML › Nouveaux types de champs
email et number
<input type="email" /> <input type="number" />
- 33. HTML › Nouveaux types de champs
email et number
<input type="email" /> <input type="number" />
- 35. HTML
Meta-données
viewport
format-detection
apple-touch-icon
apple-touch-startup-image
apple-mobile-web-app-capable
apple-mobile-web-app-status-bar-style
- 39. HTML › Méta-données iPhone
viewport
<meta name="viewport"
content="width=320" />
<meta name="viewport"
content="width=device-width" />
- 40. HTML › Méta-données iPhone
viewport
<meta name="viewport"
content="width=320" />
<meta name="viewport"
content="width=device-width" />
<meta name="viewport"
content="user-scalable=0" />
- 42. HTML › Méta-données iPhone
format-detection
<meta name="format-detection" content="telephone=no" />
- 43. HTML › Méta-données iPhone
format-detection
<meta name="format-detection" content="telephone=no" />
- 44. HTML › Méta-données iPhone
format-detection
<meta name="format-detection" content="telephone=no" />
- 45. HTML › Méta-données iPhone
format-detection
<meta name="format-detection" content="telephone=no" />
- 47. HTML › Méta-données iPhone
apple-touch-icon
<link rel="apple-touch-icon"
href="/icone-carre.png" />
- 48. HTML › Méta-données iPhone
apple-touch-icon
<link rel="apple-touch-icon"
href="/icone-carre.png" />
<link rel="apple-touch-icon-precomposed"
href="/icone-deja-arrangee.png" />
- 49. HTML › Méta-données iPhone
apple-touch-icon
<link rel="apple-touch-icon"
href="/icone-carre.png" />
<link rel="apple-touch-icon-precomposed"
href="/icone-deja-arrangee.png" />
- 50. HTML › Méta-données iPhone
apple-touch-icon
<link rel="apple-touch-icon"
href="/icone-carre.png" />
<link rel="apple-touch-icon-precomposed"
href="/icone-deja-arrangee.png" />
- 52. HTML › Méta-données iPhone
apple-touch-startup-image
<meta name="apple-touch-startup-image"
content="/welcome.png" />
- 53. HTML › Méta-données iPhone
apple-touch-startup-image
<meta name="apple-touch-startup-image"
content="/welcome.png" />
- 55. HTML › Méta-données iPhone
apple-mobile-web-app-capable
<meta name="apple-mobile-web-app-capable"
content="yes" />
- 56. HTML › Méta-données iPhone
apple-mobile-web-app-capable
<meta name="apple-mobile-web-app-capable"
content="yes" />
- 58. HTML › Méta-données iPhone
apple-mobile-web-status-bar-style
<meta name="apple-mobile-web-app-status-bar-style"
content="black-translucent" />
- 59. HTML › Méta-données iPhone
apple-mobile-web-status-bar-style
<meta name="apple-mobile-web-app-status-bar-style"
content="black-translucent" />
- 63. CSS
-webkit-transform
-webkit-transform: rotate(90deg) scale(1.5);
- 64. CSS
-webkit-box-shadow
-webkit-box-shadow: 9px 9px 30px rgba(255,0,255,0.9);
- 65. CSS
-webkit-box-shadow
-webkit-box-shadow: 9px 9px 30px rgba(255,0,255,0.9);
Source : ledevoir.com
- 66. CSS
text-shadow
text-shadow: 15px 15px 2px #ffff66;
OMG
- 67. CSS
@font-face
@font-face {
font-family: 'Megalopolis';
src: url('Megalopolis.svg#MegalopolisExtra')
format('svg');
}
h1 {
font-family: 'Megalopolis';
}
- 85. Javascript
Nouveaux événements
onorientationchange
window.onorientationchange = function() {
alert(window.orientation); // 0, 90, -90 ou 180
};
- 86. Javascript
Nouveaux événements
onorientationchange
window.onorientationchange = function() {
alert(window.orientation); // 0, 90, -90 ou 180
};
- 87. Javascript
Nouveaux événements
onorientationchange
window.onorientationchange = function() {
alert(window.orientation); // 0, 90, -90 ou 180
};
- 97. Javascript
Géolocalisation :
obtenir la position
navigator
.geolocation
.getCurrentPosition(function(p) {
alert(p.coords.latitude+', '+p.coords.longitude);
});
- 99. Javascript
Géolocalisation : surveiller
le changement de position
navigator
.geolocation
.watchPosition(function(p) {
alert(p.coords.latitude+', '+p.coords.longitude);
});
- 101. Javascript
Stockage : sauvegarder
des données en local
localStorage.setItem('foo', 'bar');
localStorage.getItem('foo'); // 'bar'
localStorage['foo'] = 'bar';
localStorage['foo']; // 'bar'
localStorage.clear();
- 104. Javascript
Canvas : créer
des éléments graphiques
- 105. Javascript
Canvas : créer
des éléments graphiques
<canvas id="toile" width="500" height="500" />
- 106. Javascript
Canvas : créer
des éléments graphiques
<canvas id="toile" width="500" height="500" />
c = document.getElementById('toile').getContext('2d');
c.fillStyle = "#f00";
c.fillRect(10,10,100,100);
- 107. Javascript
Canvas : créer
des éléments graphiques