Skip to content

Commit

Permalink
add basic instructions with experimental cookie
Browse files Browse the repository at this point in the history
  • Loading branch information
wleightond committed Aug 2, 2024
1 parent 43080f2 commit edaa8ee
Showing 1 changed file with 9 additions and 3 deletions.
12 changes: 9 additions & 3 deletions templates/pwa.html
Original file line number Diff line number Diff line change
Expand Up @@ -87,13 +87,19 @@
</style>
</head>
<body onpageshow="trigger_token()">
<main class="container">
<!-- <h1>Installation instructions:</h1>
<main class="container" hidden>
<h1>Installation instructions:</h1>
<ol>
<li>Click Share</li>
<li>Click Add to Home Screen</li>
<li>Click OK</li>
</ol> -->
</ol>
</main>
<script>
if (!(document.cookie === 'instructions_shown=true')) {
document.getElementsByClassName('container')[0].removeAttribute('hidden');
document.cookie = 'instructions_shown=true';
}
</script>
</body>
</html>

0 comments on commit edaa8ee

Please sign in to comment.