-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathpricing.html
More file actions
580 lines (553 loc) · 23.5 KB
/
pricing.html
File metadata and controls
580 lines (553 loc) · 23.5 KB
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
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<link rel="icon" type="image/png" sizes="32x32" href="/favicon-32.png">
<link rel="icon" type="image/png" sizes="16x16" href="/favicon-16.png">
<link rel="apple-touch-icon" sizes="180x180" href="/apple-touch-icon.png">
<title>Pricing - InstaNode</title>
<meta name="description" content="InstaNode Developer plan. $12/month or $120/year (₹200/month or ₹2,199/year for India). Real Postgres. No account friction.">
<script src="https://checkout.razorpay.com/v1/checkout.js"></script>
<style>
* { box-sizing: border-box; margin: 0; padding: 0; }
body {
font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
background: #0a0a0a;
color: #e0e0e0;
line-height: 1.6;
min-height: 100vh;
padding: 40px 20px;
}
.container { max-width: 960px; margin: 0 auto; }
.header { text-align: center; margin-bottom: 32px; }
h1 {
font-size: 1.9rem;
font-weight: 700;
color: #fff;
letter-spacing: -0.02em;
margin-bottom: 8px;
}
.header p { color: #888; font-size: 0.95rem; }
.plans {
display: grid;
grid-template-columns: repeat(2, minmax(0, 1fr));
gap: 20px;
max-width: 880px;
margin: 0 auto;
}
.plan {
position: relative;
background: #111;
border: 1px solid #222;
border-radius: 12px;
padding: 28px 24px;
}
.plan.featured { border-color: #2a4a6a; box-shadow: 0 10px 40px rgba(74, 175, 255, 0.08); }
.ribbon {
position: absolute;
top: -10px;
right: 16px;
background: #4af;
color: #060a14;
font-size: 0.7rem;
font-weight: 700;
letter-spacing: 0.08em;
padding: 4px 10px;
border-radius: 999px;
text-transform: uppercase;
}
.plan-name {
font-size: 0.8rem;
font-weight: 700;
letter-spacing: 0.12em;
text-transform: uppercase;
color: #4af;
margin-bottom: 12px;
}
.price {
display: flex;
align-items: baseline;
margin-bottom: 4px;
}
.price .amount {
font-size: 2.6rem;
font-weight: 700;
color: #fff;
letter-spacing: -0.02em;
}
.price .period { color: #888; margin-left: 6px; font-size: 1rem; }
.price-note {
color: #6f9dbf;
font-size: 0.85rem;
margin-bottom: 20px;
min-height: 1.3em;
}
ul.features {
list-style: none;
margin-bottom: 28px;
}
ul.features li {
padding: 8px 0;
border-top: 1px solid #1a1a1a;
color: #ccc;
font-size: 0.95rem;
}
ul.features li:first-child { border-top: none; }
ul.features li::before {
content: "✓";
color: #4af;
font-weight: 700;
margin-right: 10px;
}
.btn {
width: 100%;
background: #4af;
color: #060a14;
border: 1px solid #4af;
padding: 14px 24px;
border-radius: 999px;
font-size: 1rem;
font-weight: 700;
font-family: inherit;
cursor: pointer;
transition: background 0.15s ease;
letter-spacing: 0.02em;
box-shadow: 0 10px 30px rgba(74, 175, 255, 0.18);
}
.btn:hover:not(:disabled) { background: #66bfff; border-color: #66bfff; }
.btn:disabled { opacity: 0.6; cursor: not-allowed; box-shadow: none; }
.btn.secondary {
background: transparent;
color: #9dc;
border: 1px solid #224;
box-shadow: none;
}
.btn.secondary:hover:not(:disabled) { background: #0e1620; border-color: #2a4a6a; }
.msg {
margin-top: 14px;
padding: 10px 14px;
border-radius: 8px;
font-size: 0.9rem;
display: none;
}
.msg.error { background: #2a1010; color: #f88; border: 1px solid #4a1818; display: block; }
.msg.info { background: #0f1a24; color: #8cf; border: 1px solid #1a3048; display: block; }
.toast {
position: fixed;
bottom: 24px;
left: 50%;
transform: translateX(-50%);
background: #2a1010;
color: #fbb;
border: 1px solid #4a1818;
padding: 10px 18px;
border-radius: 999px;
font-size: 0.9rem;
opacity: 0;
pointer-events: none;
transition: opacity 0.2s ease;
}
.toast.show { opacity: 1; }
.footnote {
text-align: center;
color: #666;
font-size: 0.8rem;
margin-top: 24px;
}
.footnote a { color: #4af; text-decoration: none; }
.footnote a:hover { text-decoration: underline; }
footer.site {
border-top: 1px solid #1a1a1a;
padding: 24px 0;
margin-top: 32px;
text-align: center;
color: #444;
font-size: 0.8rem;
}
footer.site a { color: #666; margin: 0 10px; text-decoration: none; }
footer.site a:hover { color: #4af; }
@media (max-width: 720px) {
.plans { grid-template-columns: 1fr; }
}
@media (max-width: 480px) {
body { padding: 24px 16px; }
.plan { padding: 24px 20px; }
.price .amount { font-size: 2.2rem; }
}
html { color-scheme: dark; }
:focus { outline: none; }
:focus-visible { outline: 2px solid #4af; outline-offset: 2px; }
.top-nav {
max-width: 960px;
margin: 0 auto 32px;
padding-bottom: 18px;
border-bottom: 1px solid #1a1a1a;
display: flex;
align-items: center;
justify-content: space-between;
}
.top-nav .brand {
color: #fff;
font-weight: 600;
text-decoration: none;
padding: 10px 0;
}
.top-nav-links { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; justify-content: flex-end; }
.top-nav-links a[hidden] { display: none !important; }
.top-nav-links a {
color: #888;
text-decoration: none;
font-size: 0.92rem;
padding: 10px 12px;
display: inline-flex;
align-items: center;
min-height: 44px;
}
.top-nav-links a:hover { color: #fff; }
.top-nav-links a[aria-current="page"] { color: #fff; }
@media (max-width: 520px) {
.top-nav-links { gap: 2px; }
.top-nav-links a { padding: 10px 6px; font-size: 0.82rem; }
.top-nav-links a.login { padding: 10px 12px; }
}
.top-nav-links a.login {
background: #4af;
color: #060a14;
padding: 10px 18px;
border-radius: 6px;
font-weight: 500;
}
.top-nav-links a.login:hover { background: #66bfff; }
</style>
</head>
<body>
<nav class="top-nav">
<a href="/" class="brand">instanode.dev</a>
<div class="top-nav-links">
<a href="/about.html">About</a>
<a href="/pricing.html" aria-current="page">Pricing</a>
<a href="/agent.html">For Agents</a>
<a href="https://github.com/InstaNode-dev/instanode" target="_blank" rel="noopener">GitHub</a>
<a href="/dashboard.html" data-auth="in" hidden>Dashboard</a>
<a class="login" href="https://api.instanode.dev/auth/github/login" data-auth="out">Sign in</a>
</div>
</nav>
<div class="container">
<div class="header">
<h1>Pricing</h1>
<p>Start free. Upgrade to Developer to keep your resources and lift the limits.</p>
</div>
<div class="plans">
<div class="plan" role="region" aria-label="Developer monthly plan">
<div class="plan-name">Monthly</div>
<div class="price">
<span class="amount" data-price-slot="monthly-amount">$12</span>
<span class="period">/month</span>
</div>
<div class="price-note" data-price-slot="monthly-note">Billed every month.</div>
<ul class="features">
<li>Persistent Postgres (no 24h expiry)</li>
<li>500 MB storage, 5 concurrent connections</li>
<li>1000 webhook requests stored</li>
<li>Email support</li>
</ul>
<button class="btn secondary js-upgrade" type="button" data-plan="monthly" data-label="Subscribe — $12/mo" data-price-slot="monthly-btn">Subscribe — $12/mo</button>
<div class="msg" role="status" aria-live="polite" data-msg-for="monthly"></div>
</div>
<div class="plan featured" role="region" aria-label="Developer annual plan">
<span class="ribbon" data-price-slot="annual-ribbon">Save 17%</span>
<div class="plan-name">Annual</div>
<div class="price">
<span class="amount" data-price-slot="annual-amount">$120</span>
<span class="period">/year</span>
</div>
<div class="price-note" data-price-slot="annual-note">$10/mo equivalent · 2 months free.</div>
<ul class="features">
<li>Everything in Monthly</li>
<li>Locked-in price for 12 months</li>
<li>One annual invoice</li>
<li>Priority support</li>
</ul>
<button class="btn js-upgrade" type="button" data-plan="annual" data-label="Subscribe — $120/yr" data-price-slot="annual-btn">Subscribe — $120/yr</button>
<div class="msg" role="status" aria-live="polite" data-msg-for="annual"></div>
</div>
</div>
<p class="footnote">
Secure checkout by Razorpay. Questions? Email <a href="mailto:admin@instanode.dev">admin@instanode.dev</a>.
</p>
<footer class="site">
<a href="/">Home</a>
<a href="/about.html">About</a>
<a href="/pricing.html">Pricing</a>
<a href="/privacy.html">Privacy</a>
<a href="/terms.html">Terms</a>
<p style="margin-top:12px;">Questions or issues? <a href="mailto:contact@instanode.dev" style="color:#888;">contact@instanode.dev</a></p>
<p style="margin-top:4px;color:#444;">instanode.dev</p>
</footer>
</div>
<div id="toast" class="toast" role="alert" aria-live="assertive"></div>
<script>
(function () {
var API_BASE = 'https://api.instanode.dev';
var toastEl = document.getElementById('toast');
// Resource token can come in via ?token=<uuid> (from the /start link the
// API emits when limits are hit) OR from localStorage (set on /start.html).
var urlParams = new URLSearchParams(window.location.search);
var tokenParam = urlParams.get('token');
if (tokenParam) {
try { localStorage.setItem('instanode_token', tokenParam); } catch (e) {}
}
var resourceToken = tokenParam || (function () {
try { return localStorage.getItem('instanode_token'); } catch (e) { return null; }
})();
// ── Currency detection (timezone-driven) ────────────────────────────
//
// India gets INR pricing (₹200/mo, ₹2,199/yr); everyone else sees USD
// ($12/mo, $120/yr). We read the browser's IANA tz name because a
// VPN/WiFi IP-geo lookup is expensive and often wrong for mobile users.
// Authenticated users with a locked-in plan_currency override the
// timezone guess via /api/me/plan below — once you've subscribed in a
// currency, you can't switch, so the page must show the locked price.
var PRICES = {
USD: {
monthly: { amount: '$12', note: 'Billed every month.', btn: 'Subscribe — $12/mo', describe: 'Developer plan – $12/month' },
annual: { amount: '$120', note: '$10/mo equivalent · 2 months free.', btn: 'Subscribe — $120/yr', describe: 'Developer plan – $120/year' },
ribbon: 'Save 17%',
upsell: {
headline: 'Save $24 / year',
eqPerMonth: '$10/month',
rowMonthly: '$12 × 12 = <strong style="color:#fff;">$144/yr</strong>',
rowAnnual: '$120/yr (save $24)'
}
},
INR: {
monthly: { amount: '₹200', note: 'Billed every month.', btn: 'Subscribe — ₹200/mo', describe: 'Developer plan – ₹200/month' },
annual: { amount: '₹2,199', note: '₹183/mo equivalent · almost 1 month free.', btn: 'Subscribe — ₹2,199/yr', describe: 'Developer plan – ₹2,199/year' },
ribbon: 'Save ~8%',
upsell: {
headline: 'Save ₹201 / year',
eqPerMonth: '₹183/month',
rowMonthly: '₹200 × 12 = <strong style="color:#fff;">₹2,400/yr</strong>',
rowAnnual: '₹2,199/yr (save ₹201)'
}
}
};
function detectCurrency() {
try {
var tz = Intl.DateTimeFormat().resolvedOptions().timeZone || '';
// Kolkata is the canonical India tz; Asia/Calcutta is the legacy alias.
if (tz === 'Asia/Kolkata' || tz === 'Asia/Calcutta') return 'INR';
} catch (e) {}
return 'USD';
}
var currency = detectCurrency();
function applyCurrency(cur) {
currency = cur === 'INR' ? 'INR' : 'USD';
var p = PRICES[currency];
var set = function (slot, text) {
document.querySelectorAll('[data-price-slot="' + slot + '"]').forEach(function (el) { el.textContent = text; });
};
set('monthly-amount', p.monthly.amount);
set('monthly-note', p.monthly.note);
set('annual-amount', p.annual.amount);
set('annual-note', p.annual.note);
set('annual-ribbon', p.ribbon);
document.querySelectorAll('[data-price-slot="monthly-btn"]').forEach(function (b) {
b.textContent = p.monthly.btn;
b.setAttribute('data-label', p.monthly.btn);
});
document.querySelectorAll('[data-price-slot="annual-btn"]').forEach(function (b) {
b.textContent = p.annual.btn;
b.setAttribute('data-label', p.annual.btn);
});
}
// Paint the detected currency immediately so the static USD HTML never
// flashes for an INR visitor — set() writes synchronously and the page
// has already rendered the DOM by the time this IIFE runs.
applyCurrency(currency);
function msgFor(planID) {
return document.querySelector('[data-msg-for="' + planID + '"]');
}
function showMsg(planID, kind, text) {
var el = msgFor(planID);
if (!el) return;
el.className = 'msg ' + kind;
el.textContent = text;
}
function clearMsg(planID) {
var el = msgFor(planID);
if (!el) return;
el.className = 'msg';
el.textContent = '';
}
function showToast(text) {
toastEl.textContent = text;
toastEl.classList.add('show');
setTimeout(function () { toastEl.classList.remove('show'); }, 3500);
}
function describePlan(plan) {
return PRICES[currency][plan === 'annual' ? 'annual' : 'monthly'].describe;
}
// One-shot upsell: first time a user clicks the monthly button, offer
// the annual plan (2 months free for USD, almost 1 month free for INR).
// sessionStorage flag so we never interrupt the same checkout flow twice.
function offerAnnualThen(proceedFn, requestedPlan) {
if (requestedPlan !== 'monthly') return proceedFn(requestedPlan);
try { if (sessionStorage.getItem('annual_upsell_shown') === '1') return proceedFn(requestedPlan); } catch (e) {}
try { sessionStorage.setItem('annual_upsell_shown', '1'); } catch (e) {}
var u = PRICES[currency].upsell;
var ov = document.createElement('div');
ov.setAttribute('style', 'position:fixed;inset:0;background:rgba(0,0,0,0.7);display:flex;align-items:center;justify-content:center;z-index:9999;padding:20px;');
ov.innerHTML =
'<div style="background:#0f1420;border:1px solid rgba(74,175,255,0.35);border-radius:12px;padding:28px 26px;max-width:460px;color:#e0e8f0;box-shadow:0 10px 50px rgba(74,175,255,0.15);">' +
'<div style="font-size:0.7rem;text-transform:uppercase;letter-spacing:0.12em;color:#6bdf8e;font-weight:700;margin-bottom:8px;">' + u.headline + '</div>' +
'<h3 style="margin:0 0 10px;font-size:1.25rem;color:#fff;">Switch to annual and save</h3>' +
'<p style="margin:0 0 14px;color:#b8c8d8;font-size:0.9rem;">Annual works out to <strong style="color:#fff;">' + u.eqPerMonth + '</strong> — same everything as monthly, just billed once a year.</p>' +
'<table style="width:100%;border-collapse:collapse;margin:0 0 20px;font-size:0.88rem;">' +
'<tr><td style="padding:6px 0;color:#8ca0b4;">Monthly</td><td style="padding:6px 0;text-align:right;">' + u.rowMonthly + '</td></tr>' +
'<tr><td style="padding:6px 0;color:#8ca0b4;">Annual</td><td style="padding:6px 0;text-align:right;color:#6bdf8e;font-weight:700;">' + u.rowAnnual + '</td></tr>' +
'</table>' +
'<div style="display:flex;gap:10px;justify-content:flex-end;">' +
'<button type="button" class="js-keep-monthly" style="background:transparent;color:#8ca0b4;border:1px solid #2a3a4a;padding:9px 16px;border-radius:6px;font-family:inherit;font-size:0.85rem;cursor:pointer;">Keep monthly</button>' +
'<button type="button" class="js-go-annual" style="background:linear-gradient(135deg,#4af 0%,#58f 100%);color:#051022;border:none;padding:9px 20px;border-radius:6px;font-family:inherit;font-size:0.85rem;font-weight:700;cursor:pointer;">Switch to annual →</button>' +
'</div>' +
'</div>';
ov.querySelector('.js-keep-monthly').addEventListener('click', function () { ov.remove(); proceedFn('monthly'); });
ov.querySelector('.js-go-annual').addEventListener('click', function () { ov.remove(); proceedFn('annual'); });
document.body.appendChild(ov);
}
function startCheckout(btn) {
if (typeof Razorpay === 'undefined') {
showMsg(btn.dataset.plan, 'error', 'Payment module failed to load. Check your connection and retry.');
return;
}
var requestedPlan = btn.dataset.plan;
offerAnnualThen(function (plan) { _startCheckout(btn, plan); }, requestedPlan);
}
function _startCheckout(btn, plan) {
var resetLabel = btn.dataset.label;
btn.disabled = true;
btn.textContent = 'Preparing checkout…';
clearMsg(plan);
var body = { plan: plan, currency: currency };
if (resourceToken) body.token = resourceToken;
fetch(API_BASE + '/billing/create-subscription', {
method: 'POST',
credentials: 'include',
headers: { 'Content-Type': 'application/json' },
body: JSON.stringify(body)
})
.then(function (res) {
if (res.status === 401) {
var dest = '/start' + (resourceToken ? ('?token=' + encodeURIComponent(resourceToken)) : '');
window.location.href = dest;
return null;
}
if (!res.ok) {
// Parse JSON body for a safe `message` from our own API; never
// surface raw text() (could be an HTML error page from a
// reverse proxy, or contain internal detail from an upstream).
return res.json().then(function (body) {
var safe = body && typeof body.message === 'string' ? body.message : '';
var e = new Error(safe || 'Checkout could not be started. Please try again in a moment.');
e.friendly = true;
throw e;
}, function () {
var e = new Error('Checkout could not be started. Please try again in a moment.');
e.friendly = true;
throw e;
});
}
return res.json();
})
.then(function (sub) {
if (!sub) return; // redirected on 401
var options = {
key: sub.key_id,
subscription_id: sub.subscription_id,
name: 'InstaNode',
description: describePlan(plan),
theme: { color: '#4af' },
handler: function () {
window.location.href = '/dashboard?upgraded=1';
},
modal: {
ondismiss: function () {
btn.disabled = false;
btn.textContent = resetLabel;
showToast('Checkout closed. You can retry anytime.');
}
}
};
var rzp = new Razorpay(options);
rzp.on('payment.failed', function (resp) {
btn.disabled = false;
btn.textContent = resetLabel;
var raw = resp && resp.error && (resp.error.description || resp.error.reason);
var safe = '';
if (typeof raw === 'string' && raw.length > 0 && raw.length <= 140) {
safe = raw;
}
showMsg(plan, 'error', safe
? (safe + ' Please try again.')
: 'Payment failed. Please try a different card or retry in a moment.');
});
rzp.open();
})
.catch(function (err) {
btn.disabled = false;
btn.textContent = resetLabel;
var text = (err && err.friendly && err.message)
? err.message
: 'Could not reach the checkout service. Please check your connection and retry.';
showMsg(plan, 'error', text);
});
}
document.querySelectorAll('.js-upgrade').forEach(function (btn) {
btn.addEventListener('click', function () { startCheckout(btn); });
});
// If the caller is already on a live subscription, lock the upgrade
// buttons and point them at the dashboard — we don't want two
// subscriptions on one account (backend also 409s, but failing in
// the UI is clearer). plan_currency from the API overrides the
// timezone guess: a US user on a VPN from India still sees their
// USD-locked plan, and vice versa — matches the backend lock-in.
fetch(API_BASE + '/api/me/plan', { credentials: 'include' })
.then(function (res) { return res.ok ? res.json() : null; })
.then(function (plan) {
if (!plan) return;
if (plan.plan_currency === 'USD' || plan.plan_currency === 'INR') {
applyCurrency(plan.plan_currency);
}
var blocking = ['active', 'authenticated', 'pending', 'created'];
var st = (plan.subscription_status || '').toLowerCase();
if ((plan.plan_tier || '').toLowerCase() === 'paid' && blocking.indexOf(st) !== -1) {
document.querySelectorAll('.js-upgrade').forEach(function (btn) {
btn.disabled = true;
btn.textContent = 'You\'re already subscribed';
btn.style.cursor = 'not-allowed';
btn.style.opacity = '0.6';
});
var h = document.createElement('div');
h.setAttribute('style', 'background:rgba(29,74,32,0.15);border:1px solid #1d4a20;border-radius:8px;padding:14px 18px;margin:20px 0;color:#cfe8d0;font-size:0.9rem;text-align:center;');
h.innerHTML = 'You\'re on <strong>' + (plan.human_label || 'Developer') + '</strong>. <a href="/dashboard.html" style="color:#6bdf8e;font-weight:700;">Manage your plan →</a>';
var plans = document.querySelector('.plans') || document.querySelector('main') || document.body.firstElementChild;
if (plans && plans.parentNode) plans.parentNode.insertBefore(h, plans);
}
})
.catch(function () {});
})();
// Toggle nav items by auth state.
fetch('https://api.instanode.dev/auth/me', { credentials: 'include' }).then(function (res) {
var signedIn = res.ok;
document.querySelectorAll('[data-auth="in"]').forEach(function (el) {
if (signedIn) el.removeAttribute('hidden'); else el.setAttribute('hidden', '');
});
document.querySelectorAll('[data-auth="out"]').forEach(function (el) {
if (!signedIn) el.removeAttribute('hidden'); else el.setAttribute('hidden', '');
});
}).catch(function () {});
</script>
</body>
</html>