forked from baobabKoodaa/cloudbite
-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.html
284 lines (268 loc) · 18.7 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
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
<html>
<head>
<title>Cloudbite - Bite-sized cloud learning with spaced repetition</title>
<meta name="viewport" content="width=700, initial-scale=0.5" />
<link rel="stylesheet" href="styles.css" />
</head>
<body>
<div id="centered-content">
<!-- Navigation bar -->
<div id="navigation-bar" class="unselectable">
<!-- Deck button -->
<div id="deck" onClick="deckSelectionOpen()" alt="Select deck" title="Select deck">
<svg
class="svg-container"
xmlns="http://www.w3.org/2000/svg"
xmlns:xlink="http://www.w3.org/1999/xlink"
version="1.1"
x="0px"
y="0px"
viewBox="0 0 100 125"
enable-background="new 0 0 100 100"
xml:space="preserve"
fill="none"
stroke="#b7b7a4"
stroke-width="2"
>
<path
d="M96.7,37.1c0.2-1.1-0.2-2.3-1.3-3.1L71.8,14.2c-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,11.5,1.3L94.5,61 C97,60.2,98.3,58.8,98.3,57.3 M98.3,61.6l0-2.3c0,1.5-1.3,2.9-3.8,3.8L39.6,82.3c-3.9,1.4-9,0.8-11.5-1.3L4.6,61.2 c-0.9-0.8-1.3-1.6-1.3-2.4l0-0.4l0,2.7c0,0.8,0.4,1.7,1.3,2.4l23.6,19.8c2.5,2.1,7.6,2.7,11.5,1.3l54.9-19.2 C97,64.5,98.3,63,98.3,61.6"
/>
</svg>
</div>
<!-- Add new card button -->
<div id="add-card-button" onClick="toggleAddCardInput()" alt="Create card" title="Create card">
<svg class="svg-container" xmlns="http://www.w3.org/2000/svg" class="h-6 w-6" fill="none" viewBox="0 0 24 24" stroke="#b7b7a4">
<path
stroke-linecap="round"
stroke-linejoin="round"
stroke-width="2"
d="M11 5H6a2 2 0 00-2 2v11a2 2 0 002 2h11a2 2 0 002-2v-5m-1.414-9.414a2 2 0 112.828 2.828L11.828 15H9v-2.828l8.586-8.586z"
/>
</svg>
</div>
<!-- Warning to prevent issue where people might accidentally bookmark a specific card URL -->
<div class="navigation-item" id="warning-direct-link" style="visibility: hidden">You were linked to<br />this specific card</div>
<!-- User data button-->
<div class="navigation-item" id="navigation-item-user-data" title="User data" alt="User data" onClick="onToggleUserCard()">
<svg class="svg-container" xmlns="http://www.w3.org/2000/svg" class="h-6 w-6" fill="none" viewBox="0 0 24 24" stroke="#b7b7a4">
<path
stroke-linecap="round"
stroke-linejoin="round"
stroke-width="2"
d="M5.121 17.804A13.937 13.937 0 0112 16c2.5 0 4.847.655 6.879 1.804M15 10a3 3 0 11-6 0 3 3 0 016 0zm6 2a9 9 0 11-18 0 9 9 0 0118 0z"
/>
</svg>
</div>
<!-- About (i) button -->
<a href="about.html" target="_blank">
<div class="navigation-item" title="About Cloudbite" alt="About Cloudbite">
<svg
class="svg-container"
xmlns="http://www.w3.org/2000/svg"
class="h-6 w-6"
fill="none"
viewBox="0 0 24 24"
stroke="#b7b7a4"
>
<path
stroke-linecap="round"
stroke-linejoin="round"
stroke-width="2"
d="M13 16h-1v-4h-1m1-4h.01M21 12a9 9 0 11-18 0 9 9 0 0118 0z"
/>
</svg>
</div>
</a>
</div>
<!-- Action bar -->
<div id="action-bar" class="unselectable">
<div class="action-bar-item" id="abi-later" onClick="repeatLater()" alt="I got this (repeat later)">
<svg
class="svg-container"
id="abi-later-svg-container"
xmlns="http://www.w3.org/2000/svg"
class="h-6 w-6"
fill="none"
viewBox="0 0 24 24"
stroke="#b7b7a4"
>
<path
id="abi-later-svg-container-path"
stroke-linecap="round"
stroke-linejoin="round"
stroke-width="2"
d="M9 12l2 2 4-4m6 2a9 9 0 11-18 0 9 9 0 0118 0z"
/>
</svg>
<span class="svg-caption">I got this<br />(repeat later)</span>
</div>
<div class="action-bar-item" id="abi-soon" onClick="repeatSoon()" alt="I need practice (repeat soon)">
<svg
class="svg-container"
id="abi-soon-svg-container"
xmlns="http://www.w3.org/2000/svg"
class="h-6 w-6"
fill="none"
viewBox="0 0 24 24"
stroke="#b7b7a4"
>
<path
id="abi-soon-svg-container-path"
stroke-linecap="round"
stroke-linejoin="round"
stroke-width="2"
d="M10 14l2-2m0 0l2-2m-2 2l-2-2m2 2l2 2m7-2a9 9 0 11-18 0 9 9 0 0118 0z"
/>
</svg>
<span class="svg-caption">I need practice<br />(repeat soon)</span>
</div>
<div class="action-bar-item" id="abi-never" onClick="repeatNever()" alt="Forget this (repeat never)">
<svg
class="svg-container"
id="abi-never-svg-container"
xmlns="http://www.w3.org/2000/svg"
class="h-6 w-6"
fill="none"
viewBox="0 0 24 24"
stroke="#b7b7a4"
>
<path
id="abi-never-svg-container-path"
stroke-linecap="round"
stroke-linejoin="round"
stroke-width="2"
d="M19 7l-.867 12.142A2 2 0 0116.138 21H7.862a2 2 0 01-1.995-1.858L5 7m5 4v6m4-6v6m1-10V4a1 1 0 00-1-1h-4a1 1 0 00-1 1v3M4 7h16"
/>
</svg>
<span class="svg-caption">Forget this<br />(repeat never)</span>
</div>
</div>
<!-- Potemkin card -->
<div id="potemkin-card">
<div id="potemkin-card-inner-container">
<div id="potemkin-card-front-container">
<img src="assets/logo_aws.svg" class="cloud-provider-on-card unselectable" />
<div id="potemkin-card-front"></div>
</div>
</div>
</div>
<!-- Real card -->
<div id="flip-card-outer-container">
<div id="card-left" class="unselectable" onMouseOver="hover(-10)" onMouseOut="hover(0)"></div>
<div id="card-right" class="unselectable" onMouseOver="hover(10)" onMouseOut="hover(0)"></div>
<div id="flip-card-inner-container">
<div id="flip-card-front-container">
<img src="assets/logo_aws.svg" class="cloud-provider-on-card unselectable" />
<div id="flip-card-front"></div>
</div>
<div id="flip-card-back-container">
<div id="flip-card-back"></div>
</div>
</div>
</div>
<!-- User data card -->
<div id="user-data-card">
<div id="user-data-card-close-button" onClick="onToggleUserCard()">
<svg class="svg-container" xmlns="http://www.w3.org/2000/svg" class="h-6 w-6" fill="none" viewBox="0 0 24 24" stroke="#b7b7a4">
<path
stroke-linecap="round"
stroke-linejoin="round"
stroke-width="2"
d="M10 14l2-2m0 0l2-2m-2 2l-2-2m2 2l2 2m7-2a9 9 0 11-18 0 9 9 0 0118 0z"
/>
</svg>
</div>
<div id="user-data-card-text"></div>
</div>
<!-- Deck option AWS -->
<div id="deck-option-aws" class="deck-option" style="visibility: hidden" onClick="deckSelectionClose('aws')">
<svg
xmlns="http://www.w3.org/2000/svg"
xmlns:xlink="http://www.w3.org/1999/xlink"
version="1.1"
x="0px"
y="0px"
viewBox="0 0 100 125"
enable-background="new 0 0 100 100"
xml:space="preserve"
fill="none"
stroke="#e47911"
stroke-width="2"
>
<path
d="M96.7,37.1c0.2-1.1-0.2-2.3-1.3-3.1L71.8,14.2c-1.3-1.1-3.3-1.7-5.4-1.7c-1.2,0-2.3,0.2-3.4,0.5L8.1,32.3 c-1.9,0.7-3.1,1.8-3.3,3.2c-0.2,1.1,0.3,2.3,1.3,3.1l23.6,19.8c1.3,1.1,3.3,1.7,5.4,1.7c1.2,0,2.3-0.2,3.4-0.5l54.9-19.2 C95.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.4l23.6,19.8c2.5,2.1,7.6,2.7,11.5,1.3l54.9-19.2 C97,64.5,98.3,63,98.3,61.6"
/>
</svg>
<img src="assets/logo_aws.svg" class="cloud-provider-on-deck" id="cloud-provider-on-deck-aws" />
</div>
<!-- Deck option Azure -->
<div id="deck-option-azure" class="deck-option coming-soon" style="visibility: hidden" onClick="deckSelectionClose()">
<svg
xmlns="http://www.w3.org/2000/svg"
xmlns:xlink="http://www.w3.org/1999/xlink"
version="1.1"
x="0px"
y="0px"
viewBox="0 0 100 125"
enable-background="new 0 0 100 100"
xml:space="preserve"
fill="none"
stroke="#008AD7"
stroke-width="2"
>
<path
d="M96.7,37.1c0.2-1.1-0.2-2.3-1.3-3.1L71.8,14.2c-1.3-1.1-3.3-1.7-5.4-1.7c-1.2,0-2.3,0.2-3.4,0.5L8.1,32.3 c-1.9,0.7-3.1,1.8-3.3,3.2c-0.2,1.1,0.3,2.3,1.3,3.1l23.6,19.8c1.3,1.1,3.3,1.7,5.4,1.7c1.2,0,2.3-0.2,3.4-0.5l54.9-19.2 C95.2,39.7,96.5,38.5,96.7,37.1 M98.3,41.8l0-2c-0.9,1.3-2.2,2.3-4,3L39.4,62.1c-1.3,0.5-2.8,0.7-4.3,0.7c-2.8,0-5.4-0.8-7.1-2.3 L4.4,40.7c-0.5-0.4-0.9-0.8-1.2-1.3v0.8c0,0,0,0,0,0l0,1c0,0.8,0.4,1.7,1.3,2.4l23.6,19.8c2.5,2.1,7.6,2.7,11.5,1.3l54.9-19.2 C96.9,44.7,98.2,43.3,98.3,41.8 M98.3,47l0-3.1c-0.1,1.4-1.4,2.9-3.8,3.7L39.6,66.8c-3.9,1.4-9,0.8-11.5-1.3L4.6,45.7 c-0.9-0.8-1.3-1.6-1.3-2.4l0-2.9l0,5c0,0,0,0,0,0l0,1c0,0.8,0.4,1.7,1.3,2.4l23.6,19.8c2.5,2.1,7.6,2.7,11.5,1.3l54.9-19.2 C96.9,49.9,98.3,48.4,98.3,47 M98.3,52.1l0,0.7l0-3.9c0,1.5-1.4,2.9-3.8,3.7L39.6,72c-3.9,1.4-9,0.8-11.5-1.3L4.6,50.9 c-0.9-0.8-1.3-1.6-1.3-2.4l0-2.1l0,4.2c0,0,0,0,0,0l0,1c0,0.8,0.4,1.7,1.3,2.4l23.6,19.8c2.5,2.1,7.6,2.7,11.5,1.3l54.9-19.2 C97,55,98.3,53.6,98.3,52.1 M98.3,57.3l0,1.6l0-4.8c0,1.5-1.4,2.9-3.8,3.8L39.6,77.1c-3.9,1.4-9,0.8-11.5-1.3L4.6,56 c-0.9-0.7-1.3-1.6-1.3-2.4l0-1.2l0,3.6l0,0.7c0,0.8,0.4,1.7,1.3,2.4l23.6,19.8c2.5,2.1,7.6,2.7,11.5,1.3L94.5,61 C97,60.2,98.3,58.8,98.3,57.3 M98.3,61.6l0-2.3c0,1.5-1.3,2.9-3.8,3.8L39.6,82.3c-3.9,1.4-9,0.8-11.5-1.3L4.6,61.2 c-0.9-0.8-1.3-1.6-1.3-2.4l0-0.4l0,2.7c0,0.8,0.4,1.7,1.3,2.4l23.6,19.8c2.5,2.1,7.6,2.7,11.5,1.3l54.9-19.2 C97,64.5,98.3,63,98.3,61.6"
/>
</svg>
<img src="assets/logo_azure.svg" class="cloud-provider-on-deck" id="cloud-provider-on-deck-azure" />
<div class="coming-soon-text" id="coming-soon-text-azure" style="color: #008ad7">(Coming soon)</div>
</div>
<!-- Deck option GCP -->
<div id="deck-option-gcp" class="deck-option coming-soon" style="visibility: hidden" onClick="deckSelectionClose()">
<svg
xmlns="http://www.w3.org/2000/svg"
xmlns:xlink="http://www.w3.org/1999/xlink"
version="1.1"
x="0px"
y="0px"
viewBox="0 0 100 125"
enable-background="new 0 0 100 100"
xml:space="preserve"
fill="none"
stroke="#F4B400"
stroke-width="2"
>
<path
d="M96.7,37.1c0.2-1.1-0.2-2.3-1.3-3.1L71.8,14.2c-1.3-1.1-3.3-1.7-5.4-1.7c-1.2,0-2.3,0.2-3.4,0.5L8.1,32.3 c-1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-1.3,2.9-3.8,3.8L39.6,82.3c-3.9,1.4-9,0.8-11.5-1.3L4.6,61.2 c-0.9-0.8-1.3-1.6-1.3-2.4l0-0.4l0,2.7c0,0.8,0.4,1.7,1.3,2.4l23.6,19.8c2.5,2.1,7.6,2.7,11.5,1.3l54.9-19.2 C97,64.5,98.3,63,98.3,61.6"
/>
</svg>
<img src="assets/logo_gcp.svg" class="cloud-provider-on-deck" id="cloud-provider-on-deck-gcp" />
<div class="coming-soon-text" id="coming-soon-text-gcp" style="color: #5f6368">(Coming soon)</div>
</div>
<!-- Deck filter -->
<div id="deck-filter" style="visibility: hidden">
<input type="text" id="deck-filter-input" placeholder="Custom filter (e.g. 'RDS')" />
<div id="deck-filter-clear-button" style="visibility: hidden" onClick="deckFilterClear()" title="Clear filter" alt="Clear filter">
<svg class="svg-container" xmlns="http://www.w3.org/2000/svg" class="h-6 w-6" fill="none" viewBox="0 0 24 24" stroke="#b7b7a4">
<path
stroke-linecap="round"
stroke-linejoin="round"
stroke-width="2"
d="M10 14l2-2m0 0l2-2m-2 2l-2-2m2 2l2 2m7-2a9 9 0 11-18 0 9 9 0 0118 0z"
/>
</svg>
</div>
</div>
</div>
<textarea id="add-card-input">
{
"q": `Front side question<br><br>(please note that this is just a preview, there is no save-your-card functionality yet - you have to manually copypaste the card into a file to save it)`,
"a": `Back side answer`
}
</textarea>
<script src="name-generator.js" type="text/javascript" charset="UTF-8"></script>
<script src="content/aws.js" type="text/javascript" charset="UTF-8"></script>
<script src="app.js" type="text/javascript" charset="UTF-8"></script>
<script async defer data-domain="cloudbite.attejuvonen.fi" src="https://plausible.io/js/plausible.js"></script>
</body>
</html>