Upgrade to Pro
— share decks privately, control downloads, hide ads and more …
Speaker Deck
Features
Speaker Deck
PRO
Sign in
Sign up for free
Search
Search
Explorando as APIs do HTML5
Search
Raphael Amorim
May 07, 2014
Programming
0
110
Explorando as APIs do HTML5
Raphael Amorim
May 07, 2014
Tweet
Share
More Decks by Raphael Amorim
See All by Raphael Amorim
Rust 101 for Web
raphamorim
0
110
Writing Your Own React Renderer
raphamorim
4
230
the new react
raphamorim
1
98
Composition on High-Order Components
raphamorim
0
79
Understanding React
raphamorim
1
200
Making for Web with WebAssembly
raphamorim
4
650
Scratching React Fiber
raphamorim
3
480
Understanding Memory Behavior on NodeJS
raphamorim
1
260
Using Canvas Components
raphamorim
0
190
Other Decks in Programming
See All in Programming
Node.js v22 で変わること
yosuke_furukawa
PRO
3
990
ONE WEDGE_company_guide
1wedge_one
0
450
Tailwind CSSを本気でカスタマイズする方法
fsubal
13
5.1k
単体テストを書かない技術 #phpcon_odawara
o0h
PRO
26
8.2k
雑に思考を整理する技術と効能
konifar
58
29k
What We Can Learn From OSS
inouehi
0
420
"config" ってなんだ? / What is "config"?
okashoi
0
240
スクラムガイドのスプリントレトロスペクティブを改めて読みかえしてみた / Re-reading the Sprint Retrospective Section in the Scrum Guide
mackey0225
3
410
効率化に挑戦してみたらモバイル開発が少し快適になった話
ryunakayama
0
130
Fragment Composition of GraphQL
quramy
3
330
コードレビューで学ぶ!Kotlinオブジェクト指向デザインパターン
akkie76
2
200
Semantic search with Django and pgvector
pauloxnet
0
240
Featured
See All Featured
Creating an realtime collaboration tool: Agile Flush - .NET Oxford
marcduiker
14
1.5k
5 minutes of I Can Smell Your CMS
philhawksworth
199
19k
The MySQL Ecosystem @ GitHub 2015
samlambert
243
12k
Debugging Ruby Performance
tmm1
70
11k
Documentation Writing (for coders)
carmenintech
60
3.9k
Why You Should Never Use an ORM
jnunemaker
PRO
51
8.6k
Fashionably flexible responsive web design (full day workshop)
malarkey
398
65k
Visualization
eitanlees
136
14k
How GitHub (no longer) Works
holman
304
140k
Put a Button on it: Removing Barriers to Going Fast.
kastner
58
3k
How To Stay Up To Date on Web Technology
chriscoyier
782
250k
Clear Off the Table
cherdarchuk
84
310k
Transcript
Explorando as APIs do HTML5
None
! Write Code Every ! Single Day
API's do HTML5 ?
None
Web Speech API
Comportamento
Comportamento
Exemplos + raphamorim.com/sound-hunter/ + google.com/intl/pt/chrome/demos/ speech.html
Vibration API
Comportamento navigator.vibrate(time) if (navigator.vibrate) navigator.vibrate(500) ! ! navigator.vibrate([500, 1000, 2000])
! Fullscreen API
Comportamento ! document.querySelector(‘html’).requestFullscreen() document.exitFullscreen()
Comportamento Mas como saber o status da API? var fullscreenElement
= document.fullscreenElement var fullscreenEnabled = document.fullscreenEnabled
Comportamento Awesome!! Mas e quanto os eventos da API? fullscreenchange
fullscreenerror
Comportamento ::fullscreen & ::backdrop
Exemplos + demo.hongkiat.com/html5- fullscreen-api/index.html
None
None
None
Geolocation
Comportamento if (navigator.geolocation) navigator.geolocation.getCurrentPosition(showPosition) function showPosition(position) ! var latitude =
position.coords.latitude; ! var longitude = position.coords.longitude;
Comportamento position.coords.latitude position.coords.longitude altitude speed altitudeAccuracy timestamp accuracy heading
Suporte
Exemplos + html5demos.com/geo
…E isso é tudo pessoal :) raphamorim