1
0
Fork 0

tried getting pwa to work

Signed-off-by: OmegaRogue <thatomegarogue@gmail.com>
master
OmegaRogue 2020-04-04 12:18:33 +02:00
parent 65d3539383
commit 507327f9a1
3 changed files with 32 additions and 2 deletions

19
css/pwa.css Normal file
View File

@ -0,0 +1,19 @@
.hidden {
display: none !important;
}
#installContainer {
position: absolute;
bottom: 1em;
display: flex;
justify-content: center;
width: 100%;
}
#installContainer button {
background-color: inherit;
border: 1px solid white;
color: white;
font-size: 1em;
padding: 0.75em;
}

View File

@ -6,6 +6,7 @@
<link rel="stylesheet" href="css/spectre.min.css"> <link rel="stylesheet" href="css/spectre.min.css">
<link rel="stylesheet" href="css/spectre-exp.min.css"> <link rel="stylesheet" href="css/spectre-exp.min.css">
<link rel="stylesheet" href="css/spectre-icons.min.css"> <link rel="stylesheet" href="css/spectre-icons.min.css">
<link rel="stylesheet" href="css/pwa.css">
<link rel="apple-touch-icon" sizes="180x180" href="/apple-touch-icon.png"> <link rel="apple-touch-icon" sizes="180x180" href="/apple-touch-icon.png">
<link rel="icon" type="image/png" sizes="32x32" href="/favicon-32x32.png"> <link rel="icon" type="image/png" sizes="32x32" href="/favicon-32x32.png">
<link rel="icon" type="image/png" sizes="16x16" href="/favicon-16x16.png"> <link rel="icon" type="image/png" sizes="16x16" href="/favicon-16x16.png">
@ -62,8 +63,19 @@
<button class="btn btn-primary input-group-btn">Search</button> <button class="btn btn-primary input-group-btn">Search</button>
</div> </div>
</section>--> </section>-->
<p id="requireHTTPS" class="hidden">
<b>STOP!</b> This page <b>must</b> be served over HTTPS.
Please <a>reload this page via HTTPS</a>.
</p>
</header> </header>
<!-- Install button, hidden by default -->
<div id="installContainer" class="hidden">
<button id="butInstall" type="button">
Install
</button>
</div>
<div class="container" style="padding-top:4px"> <div class="container" style="padding-top:4px">
<p><b>Note:</b> If you have a version of Bangle.js firmware before 2v04, please update to the <a href="https://www.espruino.com/Bangle.js#firmware-updates" target="_blank">latest firmware</a> or <p><b>Note:</b> If you have a version of Bangle.js firmware before 2v04, please update to the <a href="https://www.espruino.com/Bangle.js#firmware-updates" target="_blank">latest firmware</a> or
<a href="https://banglejs.com/oldapps/">use the legacy app loader</a>. <a href="https://banglejs.com/oldapps/">use the legacy app loader</a>.

View File

@ -17,6 +17,5 @@
"theme_color": "#5755d9", "theme_color": "#5755d9",
"background_color": "#5755d9", "background_color": "#5755d9",
"display": "standalone", "display": "standalone",
"start_url": "/", "start_url": "https://omegavoid.github.io/"
"scope": "/"
} }