Rebasely Beta: data may be purged

examples/live-notes Public

HTML · 32 lines · 1.5 KiB · at bd4f325

<!doctype html><html lang="en"><head><meta charset="utf-8"><meta name="viewport" content="width=device-width, initial-scale=1"><title>live-notes</title><style>  :root { color-scheme: light dark; --fg: #1d1d1f; --muted: #6e6e73; --line: #d2d2d7; --bg: #fff; }  @media (prefers-color-scheme: dark) { :root { --fg: #f5f5f7; --muted: #a1a1a6; --line: #424245; --bg: #1c1c1e; } }  body { margin: 0; background: var(--bg); color: var(--fg); font: 15px/1.5 system-ui, sans-serif; }  main { max-width: 760px; margin: 0 auto; padding: 24px 16px; }  header { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; margin-bottom: 12px; }  h1 { font-size: 20px; font-weight: 600; margin: 0; }  #status { color: var(--muted); font-size: 13px; }  textarea { box-sizing: border-box; width: 100%; min-height: 70vh; padding: 12px; border: 1px solid var(--line);    border-radius: 8px; background: transparent; color: inherit; font: 14px/1.6 ui-monospace, monospace; resize: vertical; }  textarea:disabled { opacity: 0.6; }  footer { margin-top: 12px; color: var(--muted); font-size: 13px; }</style></head><body><main>  <header>    <h1 id="title">scratch</h1>    <span id="status">Connecting</span>  </header>  <textarea id="note" spellcheck="false" disabled aria-label="Note text"></textarea>  <footer>Change the part after # in the address to open another note. Anyone with the same address edits the same text.</footer></main><script type="module" src="/js/client/editor.js"></script></body></html>