-
-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.html
217 lines (212 loc) · 8.49 KB
/
index.html
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
<!DOCTYPE html>
<html lang="en" dir="ltr">
<head>
<meta charset="UTF-8" />
<meta
name="viewport"
content="width=device-width, initial-scale=1.0, viewport-fit=cover"
/>
<meta http-equiv="X-UA-Compatible" content="ie=edge" />
<meta name="theme-color" content="#ffffff" />
<meta
name="description"
content="Ephemeral is an app for writing down words and their translations, as you encounter them."
/>
<title>Ephemeral</title>
<link rel="manifest" href="/assets/manifest.json" />
<link
rel="preload"
href="/assets/fonts/phantom-sans-v5-variable.woff2"
as="font"
type="font/woff2"
crossorigin="anonymous"
/>
</head>
<body>
<div
class="min-vh-100 flex flex-column bg-color-bg color-text f-phantomsans elm-root"
>
<header
class="navigation-header bg-color-lighter color-text-faint bb lh-title"
>
<a href="#main" class="pa3 tc near-white bg-blue skip-link"
>Skip to content.</a
>
<nav class="navigation-container">
<div class="navigation-title-about flex items-center mw7">
<div class="navigation-back-button"></div>
<div class="w-100 navigation-title">
<a href="/" class="f3 fw7 link color-accent tc navigation-home"
>Ephemeral</a
>
</div>
<div class="navigation-about">
<a href="/about" class="dib link lh-solid v-mid color-text"
><svg
fill="none"
stroke="currentColor"
stroke-linecap="round"
stroke-linejoin="round"
stroke-width="2"
viewBox="0 0 24 24"
height="20"
width="20"
focusable="false"
aria-label="Info"
role="img"
>
<circle cx="12" cy="12" r="10"></circle>
<line x1="12" y1="16" x2="12" y2="12"></line>
<line x1="12" y1="8" x2="12" y2="8"></line></svg
></a>
</div>
</div>
<div class="navigation-bar bg-color-lighter lh-solid">
<div class="navigation-bar-flex">
<a
href="/"
class="db f5 f4-ns link color-accent"
aria-current="page"
><svg
fill="none"
stroke="currentColor"
stroke-linecap="round"
stroke-linejoin="round"
stroke-width="2"
viewBox="0 0 24 24"
height="20"
width="20"
focusable="false"
aria-hidden="true"
>
<path
d="M16 4h2a2 2 0 0 1 2 2v14a2 2 0 0 1-2 2H6a2 2 0 0 1-2-2V6a2 2 0 0 1 2-2h2"
></path>
<rect x="8" y="2" width="8" height="4" rx="1" ry="1"></rect>
</svg>
<div>Entries</div></a
><a href="/map" class="db f5 f4-ns link color-text"
><svg
fill="none"
stroke="currentColor"
stroke-linecap="round"
stroke-linejoin="round"
stroke-width="2"
viewBox="0 0 24 24"
height="20"
width="20"
focusable="false"
aria-hidden="true"
>
<polygon
points="1 6 1 22 8 18 16 22 23 18 23 2 16 6 8 2 1 6"
></polygon>
<line x1="8" y1="2" x2="8" y2="18"></line>
<line x1="16" y1="6" x2="16" y2="22"></line>
</svg>
<div>Map</div></a
><a href="/data" class="db f5 f4-ns link color-text"
><svg
fill="none"
stroke="currentColor"
stroke-linecap="round"
stroke-linejoin="round"
stroke-width="2"
viewBox="0 0 24 24"
height="20"
width="20"
focusable="false"
aria-hidden="true"
>
<polyline points="21 8 21 21 3 21 3 8"></polyline>
<rect x="1" y="3" width="22" height="5"></rect>
<line x1="10" y1="12" x2="14" y2="12"></line>
</svg>
<div>Data</div></a
><a href="/settings" class="db f5 f4-ns link color-text"
><svg
fill="none"
stroke="currentColor"
stroke-linecap="round"
stroke-linejoin="round"
stroke-width="2"
viewBox="0 0 24 24"
height="20"
width="20"
focusable="false"
aria-hidden="true"
>
<circle cx="12" cy="12" r="3"></circle>
<path
d="M19.4 15a1.65 1.65 0 0 0 .33 1.82l.06.06a2 2 0 0 1 0 2.83 2 2 0 0 1-2.83 0l-.06-.06a1.65 1.65 0 0 0-1.82-.33 1.65 1.65 0 0 0-1 1.51V21a2 2 0 0 1-2 2 2 2 0 0 1-2-2v-.09A1.65 1.65 0 0 0 9 19.4a1.65 1.65 0 0 0-1.82.33l-.06.06a2 2 0 0 1-2.83 0 2 2 0 0 1 0-2.83l.06-.06a1.65 1.65 0 0 0 .33-1.82 1.65 1.65 0 0 0-1.51-1H3a2 2 0 0 1-2-2 2 2 0 0 1 2-2h.09A1.65 1.65 0 0 0 4.6 9a1.65 1.65 0 0 0-.33-1.82l-.06-.06a2 2 0 0 1 0-2.83 2 2 0 0 1 2.83 0l.06.06a1.65 1.65 0 0 0 1.82.33H9a1.65 1.65 0 0 0 1-1.51V3a2 2 0 0 1 2-2 2 2 0 0 1 2 2v.09a1.65 1.65 0 0 0 1 1.51 1.65 1.65 0 0 0 1.82-.33l.06-.06a2 2 0 0 1 2.83 0 2 2 0 0 1 0 2.83l-.06.06a1.65 1.65 0 0 0-.33 1.82V9a1.65 1.65 0 0 0 1.51 1H21a2 2 0 0 1 2 2 2 2 0 0 1-2 2h-.09a1.65 1.65 0 0 0-1.51 1z"
></path>
</svg>
<div>Settings</div></a
>
</div>
</div>
</nav>
</header>
<main id="main" class="flex flex-column flex-auto" tabindex="-1">
<div>
<div class="mw7 center">
<noscript>
<div class="vs4 vs5-ns">
<div class="vs3">
<h1 class="mv0 f2 f1-ns lh-title fw7">Ephemeral</h1>
<p class="mv0 f-paragraph f4-ns lh-copy measure">
Ephemeral is a web app for writing down words and their
translations, as you encounter them. It works offline and
everything is stored locally, on your device.
</p>
</div>
<div class="vs3">
<h2 class="mv0 f3 f2-ns lh-title fw7">
Add to Home Screen
</h2>
<p class="mv0 f-paragraph f4-ns lh-copy measure measure">
You can add Ephemeral to your home screen for quicker access
and standalone use. It will always be available offline
through your web browser.
</p>
</div>
<div class="vs3">
<h2 class="mv0 f3 f2-ns lh-title fw7">
Javascript is turned off :(
</h2>
<p class="mv0 f-paragraph f4-ns lh-copy measure">
Sorry, Ephemeral requires Javascript to run. This is because
it does everything on the client, after the initial hand-off
from the server. I don't want to have people's data, and a
server-only version (one that can work without client
Javascript) would need that to be effective.
</p>
</div>
</div>
</noscript>
</div>
</div>
</main>
</div>
<script>
// Check that service workers are registered
if ('serviceWorker' in navigator) {
// Use the window load event to keep the page load performant
window.addEventListener('load', () => {
navigator.serviceWorker
.register('/sw.js')
.then(registration => {
console.log('SW registered: ', registration);
})
.catch(registrationError => {
console.log('SW registration failed: ', registrationError);
});
});
// Log if the app was installed
window.addEventListener('appinstalled', evt => {
app.logEvent('a2hs', 'installed');
});
}
</script>
</body>
</html>