Skip to content

Commit 227a325

Browse files
committed
Add PWA functionality
1 parent ced9c7c commit 227a325

4 files changed

Lines changed: 26 additions & 1 deletion

File tree

assets/icons/icon512_maskable.png

20.2 KB
Loading

assets/icons/icon512_rounded.png

24.1 KB
Loading

index.html

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,10 @@
22
<html lang="en">
33
<head>
44
<meta charSet="utf-8">
5-
<meta name="viewport" content="width=device-width, initial-scale=1">
65
<title>DP100 WebApp</title>
6+
<meta name="viewport" content="width=device-width, initial-scale=1">
7+
<link rel="manifest" href="manifest.json">
8+
<link rel="icon" href="assets/icons/icon512_rounded.png" type="image/png">
79
<link href="https://cdn.jsdelivr.net/npm/uplot@1.6.31/dist/uPlot.min.css" rel="stylesheet">
810
<style>
911
.u-value {

manifest.json

Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,23 @@
1+
{
2+
"name": "DP100 Multimeter",
3+
"short_name": "DP100",
4+
"theme_color": "#2196f3",
5+
"background_color": "#2196f3",
6+
"display": "fullscreen",
7+
"scope": "/DP100-WebApp/",
8+
"start_url": "/DP100-WebApp/",
9+
"icons": [
10+
{
11+
"purpose": "maskable",
12+
"sizes": "512x512",
13+
"src": "assets/icons/icon512_maskable.png",
14+
"type": "image/png"
15+
},
16+
{
17+
"purpose": "any",
18+
"sizes": "512x512",
19+
"src": "assets/icons/icon512_rounded.png",
20+
"type": "image/png"
21+
}
22+
]
23+
}

0 commit comments

Comments
 (0)