Lead Full Stack Dev
@mordacem
Research Analyst
@berginbrit
25 - 90%
10 - 25%
5 - 10%
3 - 5%
2 - 3%
1 - 2%
0 - 1%
text
┏┓
┃┃ ╱╲ in this
┃╱╱╲ ╲ house
╱╱ ╭╮ ╲ ╲ we
▔▏┗┛▕▔ say
╱▔▔▔▔▔▔▔▔▔╲
╱╱┏┳┓╭╮┏┳┓ ╲╲
▔▏┗┻┛┃┃┗┻┛▕▔
PWA
<!DOCTYPE html>
<html>
<head>
<link rel="manifest" href="./manifest.webmanifest" />
</head>
<body>
<script>
if ("serviceWorker" in navigator) {
window.addEventListener("load", () => {
navigator.serviceWorker.register("/service-worker.js");
});
}
</script>
</body>
</html>index.html
VPIA
1. Logo
2. Title
{
"short_name": "VPIA",
"name" : "Virtual Platform for Indigenous Art",
"icons": [
{
"src": "./assets/images/logo.png",
"sizes": "192x192",
"type": "image/png"
},
{
"src":"./assets/images/logo.png",
"sizes":"512x512",
"type":"image/png"
}
],
"start_url": "/",
"display": "standalone",
"theme_color": "#000000",
"background_color": "#ffffff"
}manifest.webmanifest
importScripts(
"https://storage.googleapis.com/workbox-cdn/releases/4.3.1/workbox-sw.js"
);
if (workbox) {
// Precache routes to website so it is served even if user offline
workbox.precaching.precacheAndRoute([
{ url: "/" },
{ url: "/#/landing" },
{ url: "/#/about" },
{ url: "/#/results" }
]);
// Example of creating cache for JS and CSS files
workbox.routing.registerRoute(
/\.(?:js|css)$/,
new workbox.strategies.NetworkFirst({
cacheName: "static-resources"
})
);
// Add more caches if needed.
} else { console.log("Workbox failed to load."); }service-worker.js