Mais conteúdo relacionado
Semelhante a Progressive Web Apps: o melhor da Web appficada (20)
Progressive Web Apps: o melhor da Web appficada
- 48. HW
Quagga.init({
inputStream : {
name : "Live",
type : "LiveStream"
},
decoder : {
readers : ["code_128_reader"]
}
}, function() {
Quagga.start();
});
Quagga.onDetected(function(result) {
var code = result.codeResult.code;
alert('Código: ' + code);
});
QuaggaJS
- 57. this.onfetch = function(event) {
event.respondWith(
new Response("<h1>Página offline!</h1>")
);
};
SERVICE
WORKERS
this.oninstall = function(event) {
console.log('instalou');
};
- 72. INSTALÁVEL Web Manifest
{
"short_name": "Shopping",
"name": "O Shopping",
"icons": [
{
"src": "img/icon.png",
"sizes": "192x192",
"type": "image/png"
}
],
"start_url": "index.html",
"orientation": "portrait",
}
- 73. INSTALÁVEL Web Manifest
{
"short_name": "Shopping",
"name": "O Shopping",
"icons": [
{
"src": "img/icon.png",
"sizes": "192x192",
"type": "image/png"
}
],
"start_url": "index.html",
"orientation": "portrait",
"display": "standalone",
}
- 74. INSTALÁVEL Web Manifest
{
"short_name": "Shopping",
"name": "O Shopping",
"icons": [
{
"src": "img/icon.png",
"sizes": "192x192",
"type": "image/png"
}
],
"start_url": "index.html",
"orientation": "portrait",
"display": "standalone",
"theme_color": "#F77F00",
"background_color": "#FFB400"
}