summaryrefslogtreecommitdiff
path: root/misc/dist/html/offline-export.html
diff options
context:
space:
mode:
authorFabio Alessandrelli <fabio.alessandrelli@gmail.com>2021-03-18 16:19:09 +0100
committerFabio Alessandrelli <fabio.alessandrelli@gmail.com>2021-04-27 14:44:31 +0200
commit88c060b00d53d1eb81a5f028bb187feb6118d5ff (patch)
tree96647b6a698f2cac3644261a666bf719484480b1 /misc/dist/html/offline-export.html
parent3a0cfd3d85859da22f5b2e0a1c2800f18e9687aa (diff)
[HTML5] Export as Progressive Web App.
Adds possibility to export as a progressive web app. Allows customizing base icons, display mode, orientation and offline page.
Diffstat (limited to 'misc/dist/html/offline-export.html')
-rw-r--r--misc/dist/html/offline-export.html42
1 files changed, 42 insertions, 0 deletions
diff --git a/misc/dist/html/offline-export.html b/misc/dist/html/offline-export.html
new file mode 100644
index 0000000000..41ab42b04b
--- /dev/null
+++ b/misc/dist/html/offline-export.html
@@ -0,0 +1,42 @@
+<!DOCTYPE html>
+<html lang="en">
+<head>
+ <meta charset="utf-8" />
+ <meta http-equiv="X-UA-Compatible" content="IE=edge" />
+ <meta name="viewport" content="width=device-width, initial-scale=1" />
+ <title>You are offline</title>
+ <style>
+ html {
+ background-color: #000000;
+ color: #ffffff;
+ }
+
+ body {
+ font-family: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans", sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol", "Noto Color Emoji";
+ margin: 2rem;
+ }
+
+ p {
+ margin-block: 1rem;
+ }
+
+ button {
+ display: block;
+ padding: 1rem 2rem;
+ margin: 3rem auto 0;
+ }
+ </style>
+</head>
+<body>
+ <h1>You are offline</h1>
+ <p>This application requires an Internet connection to run for the first time.</p>
+ <p>Press the button below to try reloading:</p>
+ <button type="button">Reload</button>
+
+ <script>
+ document.querySelector("button").addEventListener("click", () => {
+ window.location.reload();
+ });
+ </script>
+</body>
+</html>