More Related Content Similar to いまさら聞けないHTML5概要 Similar to いまさら聞けないHTML5概要 (20) More from yoshikawa_t (11) いまさら聞けないHTML5概要2. Who?
html5j 代表/html5j ビギナー部 副部⻑⾧長
Google Developer Experts (Chrome)
HTML5 Experts.jp エキスパートNo.3
Web先端技術味⾒見見部 (顧問)/⽇日本
jQuery Mobileユーザー会 (管理理⼈人)/
Sublime Text 2 Japan Users Group (管
理理⼈人)などなど
Blog: http://d.hatena.ne.jp/pikotea/
吉川 徹 / Toru Yoshikawa
@yoshikawa_̲t
19. Offline & Storage
• Application Cache … オフラインアプリケーション
• Web Storage … 簡易易ローカルストレージ
• Indexed Database … KVS型のローカルデータベース
• File APIs … ファイルの読み書き
• File System API … アプリから利利⽤用できるファイル領領
域
• online/offline events … オン/オフライン状態の把握
23. Offline & Storage
Application
Cache
10 3.5
4
(3.2)
4
(2.1)
10.6
Web Storage 8 3.5
4
(3.2)
4
(2.1)
10.5
Indexed Database 10* 10
7.1
(8*)
23
(4.4)
15
File APIs 10 3.6
6
(6.1)
13
(4.4)
11.1
File System API - - -
13
(4.4)
15
online/offline
events
9 3.5*
5
(4.3)
14
(2.3)
15
括弧の表記はモバイル(Safari " iOS、Chrome " Android)
*表記は実装が不完全または、実装古い可能性
24. Multimedia
• video/audio … 動画/⾳音楽再⽣生
• WebVTT … 字幕・トラック情報を追加
• Web Audio API … ⾳音声処理理・合成
• HTML Media Capture … メディアの取込み
(WebRTCのgetUserMediaへ移⾏行行しつつあります)
25. Demo
• Blowing apart fragments of video
• Using WebSRT to create video captions
• HTML5 Wow Visualizer
• Soundtrap
Multimedia
31. Graphics, 3D & Effects
• Canvas … 2Dグラフィックス
• WebGL … 3Dグラフィックス
• SVG … ベクターグラフィックス
34. Graphics, 3D & Effects
Canvas 9 2
3.1
(3.2)
4
(3)
9.6
WebGL 11 4*
5.1*
(8)
18
(4.4)
12*
SVG 9 3
3.2
(3.2)
4
(4.4)
9.6
括弧の表記はモバイル(Safari " iOS、Chrome " Android)
*表記は実装が不完全または、実装古い可能性
35. Realtime / Connectivity
• WebSocket … リアルタイム双⽅方向通信
• Server-‐‑‒Sent Events … サーバープッシュ可能な通信(ロ
ングポーリング/Cometを仕様化)
• Web Messaging … Webページ間のメッセージ交換
• XMLHttpRequest(Level2) … クロスドメイン通信やバイ
ナリデータが送れるように
• Notifications … デスクトップに通知
• WebRTC … ⾳音声/動画でリアルタイムコミュニケーショ
ンを⾏行行う
40. Realtime / Connectivity
WebSocket 10 11
7
(6.1)
16
(4.4)
12.1
Server-Sent
Events
- 6
5
(4.1)
6
(4.4)
11
Web Messaging
(Cross-document)
8* 3
4
(3.2)
4
(2.1)
9.6
XMLHttpRequest
(Level2)
10 4
5
(5.1)
7
(3)
12
Web
Notifications
- 22
6
(-)
22
(4.4)
25
WebRTC
(P2P)
- 22 -
23
(4.4)
18
括弧の表記はモバイル(Safari " iOS、Chrome " Android)
*表記は実装が不完全または、実装古い可能性
41. Device Access
• Geolocation API … GPS情報を取得
• Web Speech API… ⾳音声⼊入⼒力力
• Device Orientation …デバイスの向きや傾きを取得
• Contacts API … アドレス帳へのアクセス
• Calendar API … カレンダー情報の取得
• Battery Status API … バッテリーの状態を取得
• Network Information API … 通信環境の情報を取得
• USB, Bluetooth など
43. Gamepad API
Doodle Pacman
https://www.google.com/doodles/30th-‐‑‒anniversary-‐‑‒of-‐‑‒pac-‐‑‒man
45. Device Access
Geolocation API 9 3.5
5
(3.2)
5
(2.1)
10.6
Web Speech API - -
7*
(7.1*)
31*
(4.4*)
-
Device
Orientation
11 6
-
(4.3)
7
(3)
15
Battery Status
API
- 10* -
38
(4.4)
25
Network
Information API
- 12 -
-
(2.2*)
-
括弧の表記はモバイル(Safari " iOS、Chrome " Android)
*表記は実装が不完全または、実装古い可能性
46. Styling (CSS3)
• CSS3 Selectors … :first-‐‑‒child/:nth-‐‑‒child(odd)など、便便利利
な擬似クラスなどが増えた
• border-‐‑‒radius … ⾓角が丸く!
• text-‐‑‒shadow/box-‐‑‒shadow … 影がつく!
• gradient … グラデーション
• Webfonts … 外部フォントを扱えるように
• Transforms … 変形
• Transitions/Animations … CSSだけでアニメーションが可能
48. Styling (CSS3)
CSS3 selectors 9 3.5
3.2
(3.2)
4
(2.1)
9.6
CSS3 Border-radius 9 3
3.1
(3.2)
4
(2.1)
10.5
CSS Gradients 10 3.6
5.1
(5.1)
10
(4)
11.6
@font-face Web fonts 9 3.5
3.2
(4.3)
4
(4)
10.1
CSS3 Transforms 9 3.5
3.1
(3.2)
4
(2.1)
10.5
CSS3 Transitions 10 4
3.1
(3.2)
4
(2.1)
10.5
CSS3 Animation 10 5
4
(3.2)
4
(4)
12
括弧の表記はモバイル(Safari " iOS、Chrome " Android)
*表記は実装が不完全または、実装古い可能性
52. 従来のサードパーティ製
コンポーネントを読み込む場合
…
<link rel="stylesheet" src="xxx.css">
…
<div class="xxx">
<div class="xxx-yyy"></div>
<div class="xxx-yyy"></div>
</div class="xxx">
…
<script src="jquery.ui.xxx.js">
依存性を気にしながら様々なファイルを読み込む
ライブラリは名前が被らないようなclassを付けて作成する必要が
ある