Browse Source

Add PWA manifest

master
Kenneth Bruen 2 years ago
parent
commit
29d0671282
Signed by: kbruen
GPG Key ID: C1980A470C3EE5B1
  1. 2
      index.html
  2. 17
      manifest.json
  3. 2
      train.html
  4. 2
      view-train.html

2
index.html

@ -6,6 +6,8 @@
<meta name="viewport" content="width=device-width, initial-scale=1.0"> <meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>InfoTren</title> <title>InfoTren</title>
<link rel="manifest" href="/manifest.json">
<link rel="stylesheet" href="/base.css"> <link rel="stylesheet" href="/base.css">
<script src="/items.js"></script> <script src="/items.js"></script>

17
manifest.json

@ -0,0 +1,17 @@
{
"name": "Info Tren: Romanian Railways",
"short_name": "Info Tren",
"theme_color": "#0000ff",
"background_color": "#ffffff",
"display": "minimal-ui",
"scope": "/",
"start_url": "/",
"shortcuts": [
{
"name": "My train",
"short_name": "My train",
"description": "Find information about a train",
"url": "/train.html"
}
]
}

2
train.html

@ -6,6 +6,8 @@
<meta name="viewport" content="width=device-width, initial-scale=1.0"> <meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Train - InfoTren</title> <title>Train - InfoTren</title>
<link rel="manifest" href="/manifest.json">
<link rel="stylesheet" href="/base.css"> <link rel="stylesheet" href="/base.css">
<script src="/back.js"></script> <script src="/back.js"></script>

2
view-train.html

@ -6,6 +6,8 @@
<meta name="viewport" content="width=device-width, initial-scale=1.0"> <meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>View Train - InfoTren</title> <title>View Train - InfoTren</title>
<link rel="manifest" href="/manifest.json">
<link rel="stylesheet" href="/base.css"> <link rel="stylesheet" href="/base.css">
<link rel="stylesheet" href="view-train.css"> <link rel="stylesheet" href="view-train.css">

Loading…
Cancel
Save