Más contenido relacionado
La actualidad más candente (10)
Similar a A HTML5 platform demókon keresztül (20)
A HTML5 platform demókon keresztül
- 3. Canvas
var canvas = document.getElementById('rajztabla');
var ctx = canvas.getContext('2d');
ctx.fillStyle = 'rgba( 0, 255, 0, 0.5 )';
ctx.translate(300, 250);
for (var i = 0; i < 10; i++) {
ctx.rotate(0.2 * Math.PI);
ctx.fillRect(20, 0, 200, 100);
}
PAGE 3
- 7. Audio
<audio id="player" controls src='zene.mp3'>
</audio>
document.getElementById('player').volume = 0.5;
document.getElementById('player').play();
document.getElementById('player').pause();
document.getElementById('player').currentTime = 0;
PAGE 7
- 10. Van-e local storage?
function supports_html5_storage() {
try {
return 'localStorage' in window
&& window['localStorage'] !== null;
}
catch (e) {
return false; }
}
PAGE 10
- 13. © 2010 Microsoft Corporation. All rights reserved. Microsoft, Windows, Internet Explorer and other product names are or may be registered trademarks and/or trademarks in the U.S. and/or other countries.
The information herein is for informational purposes only and represents the current view of Microsoft Corporation as of the date of this presentation. Because Microsoft must respond to changing market
conditions, it should not be interpreted to be a commitment on the part of Microsoft, and Microsoft cannot guarantee the accuracy of any information provided after the date of this presentation.
MICROSOFT MAKES NO WARRANTIES, EXPRESS, IMPLIED OR STATUTORY, AS TO THE INFORMATION IN THIS PRESENTATION.
Thank you.