T3LAB via Sario Bassanelli, 9/11, > Bologna Firefox OS WORKSHOP Wednesday 17th September 2014 > 10:00 - 18:00 Register now! www.t3lab.it/eventi WORKSHOP Agenda > Speakers > 10:00 Welcome! 10:15 Conference Time Inside Firefox OS Developing on Firefox OS for newbie Playing with Sensors in Open Web Apps 14:00 Coding Time organized by sponsored by Francesco Iovine (Mozillian) Daniele Scasciafratte (Mozillian) Luca Greco (Mozillian)
One of the main weaknesses of web applications is that browsers can access a limited set of device services, such as geolocation, device orientation etc. In this talk I will explore how the W3C and browser vendors are working together to enable the development of Open Web Apps that can access device hardware and sensors through Javascript. I will also show the code of example applications you can try directly on Firefox for your mobile devices.
This document is posted to help you gain knowledge. Please leave a comment to let me know what you think about it! Share it to your friends and learn new things together.
Transcript
T3LAB via Sario Bassanelli, 9/11, > Bologna
Firefox OS WORKSHOPWednesday 17th September 2014 > 10:00 - 18:00
navigator.vibrate(1000);// or alternativelynavigator.vibrate([1000]);
navigator.vibrate([50, 100, 150]);
navigator.vibrate(0);// or alternativelynavigator.vibrate([]);
Vibration API
BATTERY
navigator.battery.charging // true or falsenavigator.battery.level // from 0 to 1.0navigator.battery.chargingTime // seconds navigator.battery.dischargingTime // seconds
Photoshttps://www.flickr.com/photos/phototomcat/9658315475/thanks to Markus Leutwyler (markusleutwyler.com)http://instagram.com/ar_krayon (football table)