simple-pwa/index.html
2023-06-15 16:37:25 +02:00

85 lines
1.9 KiB
HTML

<!DOCTYPE html>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
<meta charset="utf-8" />
<meta name="viewport" content="width=device-width" />
<meta name="mobile-web-app-capable" content="yes" />
<meta http-equiv="X-UA-Compatible" content="IE=edge" />
<meta name="theme-color" content="#8d2382" />
<link rel="icon" type="image/x-icon" href="favicon.ico" />
<link rel="manifest" href="manifest.webmanifest" />
<title>Simple PWA</title>
<style type="text/css">
html,
body {
height: 100%;
width: 80%;
margin: 0;
display: flex;
flex-direction: column;
margin-left: auto;
margin-right: auto;
font-family: sans-serif;
}
h1,
div.controls {
text-align: center;
}
#api_id {
font-family: monospace;
text-align: center;
display: inline-block;
width: 5em;
}
#offline {
border: 1px solid red;
background-color: rgba(255, 0, 0, 0.1);
padding: 5px;
text-align: center;
color: red;
margin-top: 10px;
margin-bottom: 10px;
visibility: hidden;
}
#loading {
text-align: center;
visibility: hidden;
}
pre {
display: flex;
margin-left: auto;
margin-right: auto;
}
</style>
<script type="text/javascript" src="app.js"></script>
</head>
<body>
<h1>Simple PWA</h1>
<div class="controls">
<button onClick="previous()">&lt;</button>
<span id="api_id"></span>
<button onClick="next()">&gt;</button>
</div>
<div id="offline">
You're currently offline. The data below may differ from the current
online version.
</div>
<div id="loading">loading...</div>
<pre id="result"></pre>
</body>
</html>