Files
linkspin/public/support.html
T
martbost b84eed3be5 Theme switch: auto | light | dark, stored in localStorage ls.theme and on the account, applied before first paint on every page
themehead.js is the one source of the tiny inline head script (and of AUTO_DEFAULT, the one constant Marty decides later: 0 = nothing stored keeps the page's current look, light for Control Room and public pages, dark for the sapphire pages; 1 = follow the device). The script sets data-theme on <html> from ls.theme (auto follows prefers-color-scheme and tracks changes live) and exposes window.LSTheme. tools/stamp-theme-head.cjs writes it into every static page before the first stylesheet with data-theme-base on <html>; blog, leaderboard, what's-new, the badge page, the unsubscribe page and the wall 404 read the module directly. The site CSP allows inline scripts by hash only, so themehead.CSP_HASH joins script-src (the script was silently blocked until then).

Account side: accounts.theme (JSON store and MySQL, alterSafe column), in the public account JSON and /api/me; POST /api/my/profile {theme} rides the existing profile save path and never touches the username. cr-shell.js renders a Light / Dark / Auto segmented control in the topbar of every Control Room screen and paints every .theme-seg on the page (the Profile pane gains an Appearance card with the same control); a click applies at once, saves locally and to the account when signed in; at sign-in the account value wins over the local one, and a local choice is pushed up when the account has none yet. view.html stops reading an undefined --bg so its light variant has a light stage. ?v= tags bumped on every changed stylesheet and script (20261101t / ls20261101t).

Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com>
2026-11-01 10:44:40 -06:00

74 lines
5.0 KiB
HTML

<!doctype html>
<html lang="en" data-theme-base="light">
<head>
<meta charset="utf-8"><meta name="viewport" content="width=device-width,initial-scale=1">
<title>Support | LinkSpin</title>
<meta name="description" content="Ask LinkSpin for help: send a support ticket and get a reply by email. Members can also use Help in the Control Room.">
<meta name="robots" content="noindex, follow">
<meta name="theme-color" content="#0B1424">
<link rel="preconnect" href="https://fonts.googleapis.com"><link rel="preconnect" href="https://fonts.gstatic.com" crossorigin>
<!--theme-head--><script>(function(){var A=0,h=document.documentElement,b=h.getAttribute("data-theme-base")||"light",m=window.matchMedia?matchMedia("(prefers-color-scheme: dark)"):{matches:false},v;function g(){try{v=localStorage.getItem("ls.theme")}catch(e){v=null}return v==="light"||v==="dark"||v==="auto"?v:(A?"auto":b)}function ap(){var c=g();h.setAttribute("data-theme",c==="auto"?(m.matches?"dark":"light"):c);h.setAttribute("data-theme-choice",c)}ap();if(m.addEventListener)m.addEventListener("change",ap);else if(m.addListener)m.addListener(ap);window.LSTheme={base:b,get:g,apply:ap,set:function(c,quiet){try{if(c==="light"||c==="dark"||c==="auto")localStorage.setItem("ls.theme",c);else localStorage.removeItem("ls.theme")}catch(e){}ap();if(!quiet)try{dispatchEvent(new CustomEvent("ls-theme",{detail:g()}))}catch(e){}}}})()</script><!--/theme-head-->
<link rel="stylesheet" href="https://fonts.googleapis.com/css2?family=Rajdhani:wght@600;700&family=Manrope:wght@400;500;700;800&family=JetBrains+Mono:wght@500;700&display=swap">
<link rel="icon" type="image/png" href="/logo-icon.png">
<link rel="stylesheet" href="/assets/pub.css?v=20261101t">
<style>
.sup{max-width:760px}
.sup .tile{padding:0}
.sup .pb{padding:16px 18px;display:flex;flex-direction:column;gap:14px}
.sup textarea.field{font:500 14px var(--body);line-height:1.5;resize:vertical}
.sup select.field{font:500 13px var(--body)}
.sup .acts{display:flex;gap:10px;flex-wrap:wrap;align-items:center}
.sup .msg{font-size:13px;color:var(--muted)} .sup .msg.bad{color:var(--bad)}
.sup .hp-field{position:absolute;left:-9999px;width:1px;height:1px;opacity:0;overflow:hidden}
.icon-check{display:flex;gap:8px;flex-wrap:wrap;margin:6px 0 0}
.icon-check .ic-btn{font-size:24px;line-height:1;padding:9px 12px;border-radius:8px;border:1px solid var(--line-strong);background:var(--panel);cursor:pointer}
.icon-check .ic-btn:hover{border-color:var(--sig)}
.sup-st{font:700 10px var(--mono);letter-spacing:.06em;text-transform:uppercase;padding:3px 8px;border-radius:4px;border:1px solid var(--line-strong);white-space:nowrap}
.sup-st.open{color:var(--accent-hi);border-color:var(--accent-dim);background:var(--accent-soft)}
.sup-st.waiting_on_member{color:var(--warn);border-color:var(--warn-line);background:var(--warn-soft)}
.sup-st.closed{color:var(--muted)}
.sup-msg{border:1px solid var(--line);border-radius:8px;padding:12px 14px;background:var(--panel-2)}
.sup-msg.admin{border-color:var(--accent-dim);background:var(--accent-soft)}
.sup-msg .sm-head{font-size:12px;color:var(--muted);margin:0 0 6px;display:flex;justify-content:space-between;gap:8px;flex-wrap:wrap}
.sup-msg .sm-body{white-space:pre-wrap;word-wrap:break-word;font-size:15px;line-height:1.5;color:var(--ink)}
</style>
</head>
<body>
<header class="top">
<div class="wrap">
<a class="brand" href="/" aria-label="LinkSpin home"><span class="mark"></span><span class="word">Link<b>Spin</b></span></a>
<span class="eyebrow" style="color:var(--chrome-sub);padding-left:14px;border-left:1px solid var(--chrome-line)">Support</span>
<span class="grow"></span>
<a href="/links" class="btn ghost">Control Room</a>
</div>
</header>
<main class="sec" style="padding-top:44px">
<div class="wrap sup" style="gap:18px">
<div class="text" style="display:flex;flex-direction:column;gap:10px">
<h1 class="disp" id="supH" style="margin:0;font-size:40px;line-height:1.04">Ask for help</h1>
<p class="ink2" style="margin:0;font-size:15px">Tell us what is going on and Marty will reply by email. Members can also open <a href="/help">Help in the Control Room</a>, where every ticket and reply is kept.</p>
</div>
<div id="supMain"><div class="tile"><div class="pb"><span class="muted">Loading…</span></div></div></div>
<p class="muted" style="margin:0;font-size:13px">We will never ask for your recovery phrase or private key, and nobody from LinkSpin will message you first asking for money or wallet access.</p>
</div>
</main>
<footer class="foot">
<div class="wrap">
<span class="word">Link<b>Spin</b></span>
<a href="/">Home</a>
<a href="/contract">The contract</a>
<a href="/support">Support</a>
<a href="/terms">Terms</a>
<a href="/privacy">Privacy</a>
<a href="/disclaimer">Disclaimer</a>
<span class="grow"></span>
<span class="mono" style="font-size:11px">a Crypto Team Build Network property</span>
</div>
</footer>
<script src="/assets/common.js?v=20261101t"></script>
<script src="/assets/support.js?v=20261016a"></script>
</body>
</html>