-
Notifications
You must be signed in to change notification settings - Fork 26
/
Copy pathindex.html
386 lines (312 loc) · 21.8 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
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
<!DOCTYPE html>
<html lang="en-us" translate="no" style="background: #1a1c24">
<head>
<title>Codeit | Mobile code editor connected to Git</title>
<meta name="viewport" content="width=device-width,initial-scale=1,maximum-scale=1,user-scalable=no,viewport-fit=cover,shrink-to-fit=no">
<meta name="mobile-web-app-capable" content="yes">
<meta name="theme-color" content="#0f1014">
<meta name="apple-mobile-web-app-status-bar-style" content="#313744">
<meta name="apple-mobile-web-app-title" content="Codeit">
<meta charset="utf-8">
<meta name="description" content="Run projects, code your ideas, and share it all on Codeit.">
<meta property="og:title" content="Codeit | Mobile code editor connected to Git">
<meta property="og:description" content="Run projects, code your ideas, and share it all on Codeit.">
<meta property="og:url" content="https://codeit.codes">
<meta property="og:image" content="https://codeit.codes/images/banner-og.png">
<meta property="og:type" content="website">
<meta property="og:site_name" content="Codeit">
<meta property="twitter:title" content="Codeit | Mobile code editor connected to Git">
<meta property="twitter:site" content="@codeitcodes">
<meta name="twitter:card" content="summary">
<meta name="twitter:description" content="Run projects, code your ideas, and share it all on Codeit.">
<meta name="twitter:image" content="https://codeit.codes/images/banner-og.png">
<meta name="referrer" content="default">
<meta name="keywords" content="code editor, version control tools, source code versioning, source code management tools, python, jquery demo, html, git, how to, bootstrap, jquery, javascript, javascript tutorial, javascript tutorial for beginners, javascript programming, html web form, create form in html, responsive web design, html web design, html design, responsive website development, html5 tutorial, html5 css3, html5 development, web design software, web development software, git tutorial, git howto, git repository, git command, git source code, top programming languages to learn, best programming language, best computer language, open source, open source code, open source applications, source code editor, software development tools, development tool, software developer tools list, programmer tool, web application development software">
<link rel="canonical" href="https://codeit.codes/">
<meta name="next-head-count" content="24">
<meta name="robots" content="all">
<script>if (top !== window) { window.location.href = '/redirect' }</script>
<script>
try {
if (localStorage.getItem('installed')) {
if ((new URL(window.location.href).search) !== '?p') {
window.location.replace(window.location.origin + '/full');
}
}
} catch(e) { }
</script>
<script defer data-domain="codeit.codes" src="https://plausible.io/js/plausible.js"></script>
<link rel="shortcut icon" href="/icons/android-app-512.png">
<link rel="apple-touch-icon" href="/icons/iphone-app-180.png">
<link rel="stylesheet" href="/homepage/homepage.css">
</head>
<body ontouchstart="">
<div id="header" class="section header" style="--wr-max:1200px">
<div class="wr color-1" style="margin-top:10px;margin-bottom:10px">
<div id="headerNav" class="logoCenter">
<div class="header__half">
<div class="headerNav__links"></div>
</div><a id="headerLogo" href="/" class="header__logoImg"><img src="/icons/iphone-app-180.png" width="80" draggable="false" alt="Codeit"></a>
<div class="header__half">
<div class="header__navCtas"></div>
</div>
</div>
</div>
</div>
<div id="hero" class="section section--hero section--noPadding section--left" style="background-color:#000;--pdx-min-height:0px;--wr-max:1200px">
<div id="headerSpacer" style="height:50px"></div>
<script>
! function() {
var e, t = document.getElementById("header"),
n = document.getElementById("headerSpacer");
t && n && (e = t.getBoundingClientRect().height, n.setAttribute("style", "height:" + e + "px"))
}()
</script>
<div class="ft ft--left" style="--pdx-pt:0;--pdx-pb:0">
<div class="ft__half">
<div class="ft__wrapper" style="max-width:570px">
<div class="ft__content">
<h1 class="hero__title color-1 weight-title-h font-title">Code with fun</h1>
<p class="hero__subtitle weight-text">Mobile code editor<br> connected to Git.</p>
<div class="ctas"><a class="btn btn--b btn--primary btn--large install loading" style="color:#000;background-color:#fff"></a></div>
<div class="hero__ctaInfo"></div>
</div>
</div>
</div>
<div class="ft__half pdx pdx--noOverflow pdxParent--smartphones" style="--pdx-maxheight:1">
<div class="pdxItem pdxItem--smartphones"><svg viewBox="0 0 328 655" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" class="pdxPhone">
<defs>
<path d="M0 45.86C0 20.532 20.532 0 45.86 0h236.28C307.468 0 328 20.532 328 45.86v562.286c0 25.328-20.532 45.86-45.86 45.86H45.86c-25.328 0-45.86-20.532-45.86-45.86V45.86z" id="framePhoneThinDark-a"></path>
<filter x="-1.1%" y="-.5%" width="102.1%" height="101.1%" filterUnits="objectBoundingBox" id="framePhoneThinDark-b">
<feMorphology radius="2" in="SourceAlpha" result="shadowSpreadInner1"></feMorphology>
<feGaussianBlur stdDeviation="2.5" in="shadowSpreadInner1" result="shadowBlurInner1"></feGaussianBlur>
<feOffset in="shadowBlurInner1" result="shadowOffsetInner1"></feOffset>
<feComposite in="shadowOffsetInner1" in2="SourceAlpha" operator="arithmetic" k2="-1" k3="1" result="shadowInnerInner1"></feComposite>
<feColorMatrix values="0 0 0 0 0.125490196 0 0 0 0 0.129411765 0 0 0 0 0.141176471 0 0 0 0.721727491 0" in="shadowInnerInner1"></feColorMatrix>
</filter>
</defs>
<g fill="none" fill-rule="evenodd">
<g>
<use fill="#282C2F" xlink:href="#framePhoneThinDark-a"></use>
<use fill="#000" filter="url(#framePhoneThinDark-b)" xlink:href="#framePhoneThinDark-a"></use>
</g>
<path d="M14 47c0-18.778 15.222-34 34-34h232c18.778 0 34 15.222 34 34v560c0 18.778-15.222 34-34 34H48c-18.778 0-34-15.222-34-34V47z" fill="transparent"></path>
</g>
</svg>
<div class="pdxContent"><img src="/homepage/featured-pic.png" draggable="false"></div>
</div>
</div>
</div>
</div>
<div id="features" class="section section--feature section--noPadding section--left" style="background-color:#000;--pdx-min-height:0px;--wr-max:1200px">
<div class="ft ft--left" style="--pdx-pt:0;--pdx-pb:0">
<div class="ft__half">
<div class="ft__wrapper" style="max-width:570px">
<div class="ft__content">
<h2 class="color-1 weight-title-h font-title section__title left noMargin">Code for everyone</h2>
<p class="weight-text section__subtitle left noMargin">We believe coding should be fun. Free of console commands and long builds.</p>
<div class="ft__description">
<div class="ftPoint visible">
<div class="iconWrapper medium circle" style="width:34px;height:34px"><svg class="backdrop" width="34" height="34" viewBox="0 0 28 28" xmlns="http://www.w3.org/2000/svg">
<circle cx="40" cy="42" r="14" transform="translate(-26 -28)" fill="rgba(207, 230, 255, 1.0)" fill-rule="nonzero"></circle>
</svg><svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24" fill="currentColor" class="icon">
<path d="M8 6.82v10.36c0 .79.87 1.27 1.54.84l8.14-5.18c.62-.39.62-1.29 0-1.69L9.54 5.98C8.87 5.55 8 6.03 8 6.82z"></path>
</svg></div>
<div class="ftPoint__meta">
<h3 class="ftPoint__title color-1 weight-text-m">Live view</h3>
<div class="ftPoint__description">Run JavaScript, HTML, CSS and Markdown projects with a tap.</div>
</div>
</div>
<div class="ftPoint visible">
<div class="iconWrapper medium circle" style="width:34px;height:34px"><svg class="backdrop" width="34" height="34" viewBox="0 0 28 28" xmlns="http://www.w3.org/2000/svg">
<circle cx="40" cy="42" r="14" transform="translate(-26 -28)" fill="rgba(207, 230, 255, 1.0)" fill-rule="nonzero"></circle>
</svg><svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24" fill="currentColor" class="icon">
<path d="M8.7 15.9L4.8 12l3.9-3.9c.39-.39.39-1.01 0-1.4-.39-.39-1.01-.39-1.4 0l-4.59 4.59c-.39.39-.39 1.02 0 1.41l4.59 4.6c.39.39 1.01.39 1.4 0 .39-.39.39-1.01 0-1.4zm6.6 0l3.9-3.9-3.9-3.9c-.39-.39-.39-1.01 0-1.4.39-.39 1.01-.39 1.4 0l4.59 4.59c.39.39.39 1.02 0 1.41l-4.59 4.6c-.39.39-1.01.39-1.4 0-.39-.39-.39-1.01 0-1.4z"></path>
</svg></div>
<div class="ftPoint__meta">
<h3 class="ftPoint__title color-1 weight-text-m">+290 languages supported</h3>
<div class="ftPoint__description">Syntax highlighting loaded dynamically.</div>
</div>
</div>
<div class="ftPoint visible">
<div class="iconWrapper medium circle" style="width:34px;height:34px"><svg class="backdrop" width="34" height="34" viewBox="0 0 28 28" xmlns="http://www.w3.org/2000/svg">
<circle cx="40" cy="42" r="14" transform="translate(-26 -28)" fill="rgba(207, 230, 255, 1.0)" fill-rule="nonzero"></circle>
</svg>
<svg xmlns="http://www.w3.org/2000/svg" style="width: 18.9px" height="22.5" viewBox="0 0 24 24" width="24" class="icon">
<path d="M0 0h24v24H0z" fill="none"></path>
<path d="M18 16.08c-.76 0-1.44.3-1.96.77L8.91 12.7c.05-.23.09-.46.09-.7s-.04-.47-.09-.7l7.05-4.11c.54.5 1.25.81 2.04.81 1.66 0 3-1.34 3-3s-1.34-3-3-3-3 1.34-3 3c0 .24.04.47.09.7L8.04 9.81C7.5 9.31 6.79 9 6 9c-1.66 0-3 1.34-3 3s1.34 3 3 3c.79 0 1.5-.31 2.04-.81l7.12 4.16c-.05.21-.08.43-.08.65 0 1.61 1.31 2.92 2.92 2.92s2.92-1.31 2.92-2.92-1.31-2.92-2.92-2.92z" fill="currentColor"></path>
</svg>
</div>
<div class="ftPoint__meta">
<h3 class="ftPoint__title color-1 weight-text-m">Share</h3>
<div class="ftPoint__description">Live views, repos, and files open instantly with a link.</div>
</div>
</div>
<div class="ftPoint visible">
<div class="iconWrapper medium circle" style="width:34px;height:34px"><svg class="backdrop" width="34" height="34" viewBox="0 0 28 28" xmlns="http://www.w3.org/2000/svg">
<circle cx="40" cy="42" r="14" transform="translate(-26 -28)" fill="rgba(207, 230, 255, 1.0)" fill-rule="nonzero"></circle>
</svg><svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24" fill="currentColor" class="icon">
<path d="M12 2C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2zm-1 17.93c-3.95-.49-7-3.85-7-7.93 0-.62.08-1.21.21-1.79L9 15v1c0 1.1.9 2 2 2v1.93zm6.9-2.54c-.26-.81-1-1.39-1.9-1.39h-1v-3c0-.55-.45-1-1-1H8v-2h2c.55 0 1-.45 1-1V7h2c1.1 0 2-.9 2-2v-.41c2.93 1.19 5 4.06 5 7.41 0 2.08-.8 3.97-2.1 5.39z"></path>
</svg></div>
<div class="ftPoint__meta">
<h3 class="ftPoint__title color-1 weight-text-m">Cross-platform</h3>
<div class="ftPoint__description">Works on iOS, Android, Windows, macOS and Linux.</div>
</div>
</div>
<div class="ftPoint visible">
<div class="iconWrapper medium circle" style="width:34px;height:34px"><svg class="backdrop" width="34" height="34" viewBox="0 0 28 28" xmlns="http://www.w3.org/2000/svg">
<circle cx="40" cy="42" r="14" transform="translate(-26 -28)" fill="rgba(207, 230, 255, 1.0)" fill-rule="nonzero"></circle>
</svg><svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24" fill="currentColor" class="icon">
<path d="M11.19 1.36l-7 3.11C3.47 4.79 3 5.51 3 6.3V11c0 5.55 3.84 10.74 9 12 5.16-1.26 9-6.45 9-12V6.3c0-.79-.47-1.51-1.19-1.83l-7-3.11c-.51-.23-1.11-.23-1.62 0zm-1.9 14.93L6.7 13.7c-.39-.39-.39-1.02 0-1.41.39-.39 1.02-.39 1.41 0L10 14.17l5.88-5.88c.39-.39 1.02-.39 1.41 0 .39.39.39 1.02 0 1.41l-6.59 6.59c-.38.39-1.02.39-1.41 0z"></path>
</svg></div>
<div class="ftPoint__meta">
<h3 class="ftPoint__title color-1 weight-text-m">Autosave</h3>
<div class="ftPoint__description">Say goodbye to Ctrl + S. Never lose a character.</div>
</div>
</div>
<div class="ftPoint visible">
<div class="iconWrapper medium circle" style="width:34px;height:34px"><svg class="backdrop" width="34" height="34" viewBox="0 0 28 28" xmlns="http://www.w3.org/2000/svg">
<circle cx="40" cy="42" r="14" transform="translate(-26 -28)" fill="rgba(207, 230, 255, 1.0)" fill-rule="nonzero"></circle>
</svg><svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24" fill="currentColor" class="icon">
<path d="M12,17.27l4.15,2.51c0.76,0.46,1.69-0.22,1.49-1.08l-1.1-4.72l3.67-3.18c0.67-0.58,0.31-1.68-0.57-1.75l-4.83-0.41 l-1.89-4.46c-0.34-0.81-1.5-0.81-1.84,0L9.19,8.63L4.36,9.04c-0.88,0.07-1.24,1.17-0.57,1.75l3.67,3.18l-1.1,4.72 c-0.2,0.86,0.73,1.54,1.49,1.08L12,17.27z"></path>
</svg></div>
<div class="ftPoint__meta">
<h3 class="ftPoint__title color-1 weight-text-m">PWA magic</h3>
<div class="ftPoint__description">Weighs 80% less than regular apps, can be installed and works offline.</div>
</div>
</div>
<div class="ftPoint visible">
<div class="iconWrapper medium circle" style="width:34px;height:34px"><svg class="backdrop" width="34" height="34" viewBox="0 0 28 28" xmlns="http://www.w3.org/2000/svg">
<circle cx="40" cy="42" r="14" transform="translate(-26 -28)" fill="rgba(207, 230, 255, 1.0)" fill-rule="nonzero"></circle>
</svg><svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24" fill="currentColor" class="icon">
<g xmlns="http://www.w3.org/2000/svg">
<path d="M4,7v2c0,0.55-0.45,1-1,1h0c-0.55,0-1,0.45-1,1v2c0,0.55,0.45,1,1,1h0c0.55,0,1,0.45,1,1v2c0,1.66,1.34,3,3,3h2 c0.55,0,1-0.45,1-1v0c0-0.55-0.45-1-1-1H7c-0.55,0-1-0.45-1-1v-2c0-1.3-0.84-2.42-2-2.83v-0.34C5.16,11.42,6,10.3,6,9V7 c0-0.55,0.45-1,1-1h2c0.55,0,1-0.45,1-1v0c0-0.55-0.45-1-1-1H7C5.34,4,4,5.34,4,7z"></path>
<path d="M21,10c-0.55,0-1-0.45-1-1V7c0-1.66-1.34-3-3-3h-2c-0.55,0-1,0.45-1,1v0c0,0.55,0.45,1,1,1h2c0.55,0,1,0.45,1,1v2 c0,1.3,0.84,2.42,2,2.83v0.34c-1.16,0.41-2,1.52-2,2.83v2c0,0.55-0.45,1-1,1h-2c-0.55,0-1,0.45-1,1v0c0,0.55,0.45,1,1,1h2 c1.66,0,3-1.34,3-3v-2c0-0.55,0.45-1,1-1h0c0.55,0,1-0.45,1-1v-2C22,10.45,21.55,10,21,10L21,10z"></path>
</g>
</svg></div>
<div class="ftPoint__meta">
<h3 class="ftPoint__title color-1 weight-text-m">Format</h3>
<div class="ftPoint__description">Format selected code with Ctrl + D.</div>
</div>
</div>
<div class="ftPoint visible">
<div class="iconWrapper medium circle" style="width:34px;height:34px"><svg class="backdrop" width="34" height="34" viewBox="0 0 28 28" xmlns="http://www.w3.org/2000/svg">
<circle cx="40" cy="42" r="14" transform="translate(-26 -28)" fill="rgba(207, 230, 255, 1.0)" fill-rule="nonzero"></circle>
</svg><svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24" fill="currentColor" class="icon">
<path d="M18 8h-1V6c0-2.76-2.24-5-5-5S7 3.24 7 6v2H6c-1.1 0-2 .9-2 2v10c0 1.1.9 2 2 2h12c1.1 0 2-.9 2-2V10c0-1.1-.9-2-2-2zm-6 9c-1.1 0-2-.9-2-2s.9-2 2-2 2 .9 2 2-.9 2-2 2zM9 8V6c0-1.66 1.34-3 3-3s3 1.34 3 3v2H9z"></path>
</svg></div>
<div class="ftPoint__meta">
<h3 class="ftPoint__title color-1 weight-text-m">Private</h3>
<div class="ftPoint__description">Codeit dosen't use cookies or collect any personal data. Your code stays on your device.</div>
</div>
</div>
</div>
</div>
</div>
</div>
<div class="ft__half pdx pdx--noOverflow pdxParent--smartphones" style="--pdx-maxheight:1">
<div class="pdxItem pdxItem--smartphones"><svg viewBox="0 0 328 655" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" class="pdxPhone">
<defs>
<path d="M0 45.86C0 20.532 20.532 0 45.86 0h236.28C307.468 0 328 20.532 328 45.86v562.286c0 25.328-20.532 45.86-45.86 45.86H45.86c-25.328 0-45.86-20.532-45.86-45.86V45.86z" id="framePhoneThinDark-a"></path>
<filter x="-1.1%" y="-.5%" width="102.1%" height="101.1%" filterUnits="objectBoundingBox" id="framePhoneThinDark-b">
<feMorphology radius="2" in="SourceAlpha" result="shadowSpreadInner1"></feMorphology>
<feGaussianBlur stdDeviation="2.5" in="shadowSpreadInner1" result="shadowBlurInner1"></feGaussianBlur>
<feOffset in="shadowBlurInner1" result="shadowOffsetInner1"></feOffset>
<feComposite in="shadowOffsetInner1" in2="SourceAlpha" operator="arithmetic" k2="-1" k3="1" result="shadowInnerInner1"></feComposite>
<feColorMatrix values="0 0 0 0 0.125490196 0 0 0 0 0.129411765 0 0 0 0 0.141176471 0 0 0 0.721727491 0" in="shadowInnerInner1"></feColorMatrix>
</filter>
</defs>
<g fill="none" fill-rule="evenodd">
<g>
<use fill="#282C2F" xlink:href="#framePhoneThinDark-a"></use>
<use fill="#000" filter="url(#framePhoneThinDark-b)" xlink:href="#framePhoneThinDark-a"></use>
</g>
<path d="M14 47c0-18.778 15.222-34 34-34h232c18.778 0 34 15.222 34 34v560c0 18.778-15.222 34-34 34H48c-18.778 0-34-15.222-34-34V47z" fill="transparent"></path>
</g>
</svg>
<div class="pdxContent"><img src="/homepage/secondary-pic.png" draggable="false"></div>
</div>
</div>
</div>
</div>
<div id="cta" class="section section--cta section--center" style="background-color:#000;padding-bottom:60px;padding-top:60px;--pdx-min-height:0px;--wr-max:1200px">
<div class="wr">
<div class="cta__titles">
<h2 class="color-1 weight-title-h font-title section__title center">A codeful of fun.</h2>
<p class="weight-text section__subtitle center"></p>
</div>
<div class="ctas"><a class="btn btn--b btn--primary btn--large install second loading" style="color:#000;background-color:#fff"></a></div>
</div>
</div>
<footer id="footer" class="section section--footer section--center" style="background: hsl(227deg 11% 16%);padding-bottom:15px;padding-top:15px;--pdx-min-height:0px;--wr-max:1200px;">
<div class="wr">
<div class="footer footer--simple">
<div class="footer__primary">
<nav class="footer__linkRow">
<a href="https://benhatsor.tumblr.com/">Development blog</a>
<a href="https://discord.gg/dRRvGyVgct">Community Discord</a>
<a href="https://plausible.io/codeit.codes?period=all">Stats</a>
</nav>
</div>
</div>
</div>
</footer>
<script>
const isMobile = navigator.userAgent.match('Mobile') || false;
const isMac = navigator.platform.indexOf('Mac') > -1;
const isSafari = navigator.userAgent.toLowerCase().indexOf('safari') != -1;
const isDev = (window.location.hostname === 'dev.codeit.codes');
function installButtonClicked() {
// save installation in local storage
localStorage.setItem('installed', 'true');
window.location.replace(window.location.origin + '/full');
}
document.querySelectorAll('.btn.install').forEach(button => {
button.addEventListener('click', installButtonClicked);
button.classList.remove('loading');
button.classList.add('installed');
if (!checkLocalStorage()) {
button.classList.add('cookies');
}
});
function checkLocalStorage() {
const test = 'test';
try {
localStorage.setItem(test, test);
localStorage.removeItem(test);
return true;
} catch(e) {
return false;
}
}
// register service worker
navigator.serviceWorker.register('/service-worker.js');
// add scroll event listeners
const featurePoints = document.querySelectorAll('#features .ftPoint');
const themeColorTag = document.querySelector('meta[name="theme-color"]');
const heroEl = document.querySelector('#hero');
function checkScrollAnimations() {
featurePoints.forEach(point => {
const visible = isFullyInView(point);
point.classList.toggle('visible', visible);
});
const scrolled = window.scrollY || window.pageYOffset;
if (scrolled <= (heroEl.clientHeight - 15)) {
themeColorTag.content = '#0f1014';
} else {
themeColorTag.content = '#1a1c24';
}
}
function isFullyInView(el) {
const rect = el.getBoundingClientRect();
const elemTop = rect.top;
const height = 51.4 / 2; // el.clientHeight;
const isVisible = (elemTop + height + 20) < window.innerHeight;
return isVisible;
}
window.addEventListener('scroll', checkScrollAnimations);
checkScrollAnimations();
</script>
<script src="/manifest.js"></script>
</body>
</html>