const createElement = (tag,props={}) => Object.assign(document.createElement(tag), props);
function showMessage(text) {
const alert_el = createElement('div', {
textContent: text,
style: `position:fixed;top:20px;left:50%` + `;background:lightgreen;color:navy`
+ `;padding:15px 20px;border-radius:4px;z-index:9999`
});
document.body.append(alert_el);
setTimeout(() => alert_el.remove(), 2000);
}
{
"name": "My PWA",
"start_url": "/",
"display": "standalone",
"icons": [
{
"src": "icon-72.png",
"sizes": "72x72",
"type": "image/png"
},
{
"src": "icon-128.png",
"sizes": "128x128",
"type": "image/png"
},
{
"src": "icon-144.png",
"sizes": "144x144",
"type": "image/png"
},
{
"src": "icon-192.png",
"sizes": "192x192",
"type": "image/png"
},
{
"src": "icon-512.png",
"sizes": "512x512",
"type": "image/png"
}
]
}
Collection of handy SVG tools and utilities
Collection of Image tools and utilities
HTML & CSS
Build