Consumir um search do twitter e montar uma lista com os últimos tweets.
$.ajax({
url: 'api_url',
type: 'post',
dataType: 'html',
success: function (data) {
jQuery('#tweets').html(data);
}
});
$.ajax({
url: 'api_url',
type: 'post',
dataType: 'json',
success: function (data) {
var tweets = data.tweets;
$.each(){
$('.template-tweet').clone();
...
});
}
});
<li> de template ficará acessível no DOM por completo mesmo estando com display: none



window.addEventListener('devicelight', function(event) {
console.log(event.value);
// Retorna um inteiro de 0 a 10000 (lux)
});