December 13, 2014 · Public
HTML5 now gives you access to the ambient light sensors on smartphones & notebooks. It is currently supported in Firefox.
if (event.value < 50)
console.log('Hey! It\'s dark in here!');
How would you incorporate this feature into your web apps?