← Demos
Web Pages · Demos

First Paycheck Decoder Portland

by Shane Hadden Oct 11, 2026 22 views 43.8 KB
Sandbox · first-paycheck-decoder-portland · no access to your account
View source — the whole page is this one file
<!-- Copyright (c) 2026 Globefin. Released under the MIT License. -->
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
<title>Stub — decode a first paycheck in Portland, Oregon</title>
<style>
  :root {
    --fir: #1f4d3a; --fir2: #2f6b4f; --rain: #8a96a0; --mist: #e6eaeb; --river: #2f6f8f;
    --hi: #f4e04d; --paper: #fbfaf4; --ink: #1c2326; --mute: #5b666b; --line: #cdd5d7; --flag: #b3261e; --ok: #2e7d4f;
    --mono: ui-monospace, "SF Mono", Menlo, Consolas, "Liberation Mono", monospace;
  }
  * { box-sizing: border-box; }
  body { margin: 0; background: var(--mist); color: var(--ink); font-family: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif; line-height: 1.5; }
  button, input, select { font: inherit; }
  :focus-visible { outline: 3px solid var(--river); outline-offset: 2px; }

  /* hero: the river, the bridge, the rain */
  .hero { position: relative; display: flex; flex-direction: column; background: linear-gradient(#9aa6ad, #c5ced2 60%, #b8c3c7); overflow: hidden; }
  .hero svg { display: block; width: 100%; height: 300px; }
  .hero .copy { position: absolute; left: 0; right: 0; top: 0; padding: 1.6rem 1.3rem 0; max-width: 1120px; margin: 0 auto; }
  .hero h1 { margin: 0; font-family: Georgia, "Times New Roman", serif; font-size: 3.4rem; line-height: 1; color: #fff; font-weight: 400; letter-spacing: -.01em; text-shadow: 0 1px 2px rgba(20,40,40,.35); }
  .hero p { margin: .5rem 0 0; max-width: 34rem; color: #fff; font-size: 1.02rem; text-shadow: 0 1px 2px rgba(20,40,40,.45); }
  .hero .who { display: inline-block; margin-top: .55rem; background: var(--hi); color: var(--ink); padding: .1rem .45rem; font-size: .85rem; }
  .drop { animation: fall 1.1s linear infinite; }
  @keyframes fall { from { transform: translate(0, -40px); } to { transform: translate(-10px, 300px); } }
  @media (prefers-reduced-motion: reduce) { .drop { animation: none; } }

  main { max-width: 1120px; margin: 0 auto; padding: 1.6rem 1.3rem 2rem; }
  h2 { font-family: Georgia, "Times New Roman", serif; font-weight: 400; font-size: 1.75rem; margin: 0 0 .2rem; line-height: 1.15; }
  .sub { color: var(--mute); margin: 0 0 1rem; font-size: .93rem; max-width: 40rem; }
  section { margin-bottom: 2.6rem; }

  /* the stub and the decoder */
  .desk { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr); gap: 1.8rem; align-items: start; }
  .stub { background: var(--paper); font-family: var(--mono); font-size: .9rem; padding: 1.3rem 1.3rem 1.6rem; position: relative;
          box-shadow: 0 1px 0 #d9d6c8, 0 12px 26px -16px rgba(30,40,40,.45); transform: rotate(-.4deg); }
  .stub::before, .stub::after { content: ""; position: absolute; left: 0; right: 0; height: 10px;
          background: radial-gradient(circle at 6px 0, var(--mist) 5px, transparent 5.5px) 0 0 / 12px 10px repeat-x; }
  .stub::before { top: 0; } .stub::after { bottom: -1px; transform: rotate(180deg); }
  .stub .co { text-align: center; border-bottom: 1px dashed #b9b6a8; padding: .3rem 0 .6rem; margin-bottom: .6rem; }
  .stub .co b { display: block; font-size: 1rem; letter-spacing: .06em; }
  .stub .co span { color: var(--mute); font-size: .8rem; }
  .srow { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: .5rem; padding: .18rem .3rem; border-radius: 2px; }
  .srow .k { background: none; border: 0; padding: 0; text-align: left; font-family: var(--mono); font-size: .9rem; cursor: pointer; color: var(--ink);
             white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  .srow .k::after { content: " ........................................"; color: #b9b6a8; }
  .srow .k:hover { text-decoration: underline; text-decoration-color: var(--river); }
  .srow input, .srow select { width: 6.6rem; font-family: var(--mono); font-size: .9rem; text-align: right; border: 0; border-bottom: 1px solid #b9b6a8;
             background: transparent; padding: .1rem .15rem; color: var(--ink); }
  .srow select { text-align: left; width: 8.6rem; }
  .srow.on { background: linear-gradient(transparent 12%, var(--hi) 12%, var(--hi) 88%, transparent 88%); }
  .srow .mk { display: inline-block; width: 1rem; text-align: center; font-family: system-ui, sans-serif; font-weight: 700; }
  .mk.y { color: var(--ok); } .mk.n { color: var(--flag); }
  .vals { display: flex; align-items: center; gap: .2rem; }
  .stub .rule { border-top: 1px dashed #b9b6a8; margin: .55rem 0; }
  .stub .net { display: flex; justify-content: space-between; font-weight: 700; font-size: 1.15rem; border-top: 3px double var(--ink); padding: .5rem .3rem 0; margin-top: .4rem; }
  .stub .tiny { color: var(--mute); font-size: .76rem; margin: .7rem .3rem 0; font-family: system-ui, sans-serif; }

  .decoder { position: sticky; top: 1rem; }
  .card { background: #fff; border-radius: 4px; border-top: 6px solid var(--fir); padding: 1.1rem 1.2rem 1.2rem; }
  .card .abbr { font-family: var(--mono); background: var(--hi); padding: 0 .3rem; font-size: .9rem; }
  .card h3 { margin: .45rem 0 .2rem; font-family: Georgia, serif; font-weight: 400; font-size: 1.55rem; line-height: 1.15; }
  .card p { margin: .4rem 0; }
  .card .amt { font-family: var(--mono); font-size: 1.05rem; }
  .verdict { margin-top: .7rem; padding: .6rem .75rem; border-left: 4px solid var(--ok); background: #eef6f0; font-size: .92rem; }
  .verdict.n { border-color: var(--flag); background: #fbeceb; }
  .verdict.i { border-color: var(--rain); background: var(--mist); }
  .math { font-family: var(--mono); font-size: .84rem; color: var(--mute); }
  .hint-row { display: flex; gap: .4rem; flex-wrap: wrap; margin-top: .9rem; }
  .hint-row button { border: 1px solid var(--line); background: #fff; border-radius: 999px; padding: .2rem .7rem; font-size: .82rem; cursor: pointer; }
  .hint-row button[aria-pressed="true"] { background: var(--fir); color: #fff; border-color: var(--fir); }
  details.rates { margin-top: 1rem; background: #fff; border-radius: 4px; padding: .7rem 1rem; font-size: .9rem; }
  details.rates summary { cursor: pointer; }
  .rgrid { display: grid; grid-template-columns: 1fr 1fr; gap: .5rem .8rem; margin-top: .6rem; }
  .rgrid label { display: block; font-size: .8rem; color: var(--mute); }
  .rgrid input { width: 100%; padding: .3rem .4rem; border: 1px solid var(--line); border-radius: 4px; }
  .msgs .m { margin-top: .6rem; font-size: .9rem; padding: .5rem .7rem; border-left: 4px solid var(--ok); background: #eef6f0; }
  .msgs .m.w { border-color: var(--flag); background: #fbeceb; }

  /* a hundred pennies */
  .split { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 2rem; align-items: start; }
  .grid100 { display: grid; grid-template-columns: repeat(10, 30px); gap: 4px; }
  .grid100 button { width: 30px; height: 30px; border: 0; border-radius: 50%; padding: 0; cursor: pointer; transition: transform .15s, opacity .15s; }
  .grid100.dim button { opacity: .25; } .grid100.dim button.lit { opacity: 1; transform: scale(1.08); }
  .cents { list-style: none; margin: 0; padding: 0; font-size: .95rem; }
  .cents li { display: grid; grid-template-columns: 1.1rem minmax(0, 1fr) auto; gap: .55rem; align-items: center; padding: .38rem 0; border-bottom: 1px solid var(--line); cursor: pointer; }
  .cents li:hover, .cents li.lit { background: linear-gradient(90deg, rgba(244,224,77,.55), transparent); }
  .cents i { width: 1rem; height: 1rem; border-radius: 50%; display: inline-block; }
  .cents b { font-family: var(--mono); font-weight: 600; }
  .cents .note { font-size: .82rem; color: var(--mute); grid-column: 2 / 4; }

  /* three-way slider */
  .plan { background: #fff; border-radius: 4px; padding: 1.2rem 1.3rem 1.3rem; }
  .bar { position: relative; height: 64px; margin: 1.6rem 0 .6rem; border-radius: 6px; overflow: visible; display: flex; user-select: none; touch-action: none; }
  .bar .seg { height: 100%; display: flex; align-items: center; justify-content: center; color: #fff; font-weight: 600; font-size: .9rem; overflow: hidden; white-space: nowrap; }
  .bar .seg:first-child { border-radius: 6px 0 0 6px; } .bar .seg:last-child { border-radius: 0 6px 6px 0; }
  .seg.save { background: var(--river); } .seg.give { background: #c06c84; } .seg.spend { background: var(--fir2); }
  .handle { position: absolute; top: -10px; width: 22px; height: 84px; margin-left: -11px; background: var(--hi); border: 2px solid var(--ink); border-radius: 11px; cursor: ew-resize; }
  .handle::after { content: ""; position: absolute; left: 7px; right: 7px; top: 34px; height: 12px; border-left: 2px solid var(--ink); border-right: 2px solid var(--ink); }
  .three { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: .8rem; }
  .three div { border-top: 4px solid; padding-top: .4rem; }
  .three .a { font-family: var(--mono); font-size: 1.35rem; display: block; }
  .three small { color: var(--mute); }

  /* what it buys */
  .buys { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 1.6rem; margin-top: 1.4rem; }
  .things { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .7rem; }
  .thing { background: #fff; border-radius: 4px; padding: .7rem .8rem; display: grid; grid-template-columns: 40px minmax(0, 1fr); gap: .6rem; align-items: center; }
  .thing svg { width: 40px; height: 40px; }
  .thing .nm { font-size: .88rem; line-height: 1.25; }
  .thing .pr { font-size: .82rem; color: var(--mute); display: flex; align-items: center; gap: .2rem; margin-top: .2rem; }
  .thing .pr input { width: 4.4rem; padding: .1rem .3rem; border: 1px solid var(--line); border-radius: 4px; }
  .thing .n { font-family: var(--mono); font-size: 1.05rem; }
  .jar { background: #fff; border-radius: 4px; padding: 1rem 1.1rem; display: grid; grid-template-columns: 110px minmax(0, 1fr); gap: 1rem; align-items: center; }
  .jar label { display: block; font-size: .8rem; color: var(--mute); margin-top: .4rem; }
  .jar input { width: 100%; padding: .3rem .4rem; border: 1px solid var(--line); border-radius: 4px; }
  .jar .big { font-family: Georgia, serif; font-size: 1.5rem; line-height: 1.2; margin-top: .6rem; }

  .toolbar { display: flex; flex-wrap: wrap; gap: .55rem; }
  .toolbar button { border: 2px solid var(--fir); background: #fff; color: var(--fir); padding: .5rem 1rem; border-radius: 4px; cursor: pointer; }
  .toolbar button.primary { background: var(--fir); color: #fff; }
  #fileMsg { margin-top: .6rem; font-size: .92rem; }
  #fileMsg .bad { color: var(--flag); font-weight: 600; }
  footer { max-width: 1120px; margin: 0 auto; padding: 0 1.3rem 2.4rem; font-size: .8rem; color: var(--mute); }

  @media (max-width: 860px) {
    .desk, .split, .buys { grid-template-columns: minmax(0, 1fr); }
    .decoder { position: static; }
    .hero h1 { font-size: 2.6rem; }
    .hero svg { height: 330px; }
  }
  @media (max-width: 600px) {
    .hero { background: #3d5250; flex-direction: column-reverse; }
    .hero .copy { position: static; padding: 1.4rem 1.1rem 1.1rem; }
    .hero svg { height: 170px; }
  }
  @media (max-width: 420px) {
    .grid100 { grid-template-columns: repeat(10, 27px); gap: 3px; } .grid100 button { width: 27px; height: 27px; }
    .things { grid-template-columns: minmax(0, 1fr); }
    .jar { grid-template-columns: 80px minmax(0, 1fr); }
    .srow input { width: 5.6rem; } .srow select { width: 7.6rem; }
    .stub { transform: none; padding: 1.2rem .8rem 1.5rem; font-size: .85rem; }
    .srow .k { font-size: .85rem; }
  }
  @media print { .hero svg, .toolbar, .handle { display: none; } .hero .copy { position: static; } .hero h1, .hero p { color: var(--ink); text-shadow: none; } }
</style>
</head>
<body>

<header class="hero">
  <svg viewBox="0 0 1200 300" preserveAspectRatio="xMidYMax slice" aria-hidden="true" id="sky"></svg>
  <div class="copy">
    <h1>Stub</h1>
    <p>Your first paycheck is smaller than hours × pay, and the stub is written in code. Tap any line to decode it, check the ones that follow a fixed rate, then decide where the money goes.</p>
    <span class="who">Built for a 17-year-old in Portland, Oregon, holding the stub from their first job.</span>
  </div>
</header>

<main>
  <section>
    <h2>Read your stub</h2>
    <p class="sub">Copy the numbers off your own stub. Tap a line's name to see what it means.</p>
    <div class="desk">
      <div class="stub" id="stub">
        <div class="co"><b>EARNINGS STATEMENT</b><span>Portland, OR · pay period ending Friday</span></div>
        <div id="earnRows"></div>
        <div class="rule"></div>
        <div id="dedRows"></div>
        <div class="net"><span>NET PAY</span><span id="netAmt">$0.00</span></div>
        <p class="tiny">✓ means the amount matches the fixed rate. ! means it doesn't, so it's worth a look.</p>
      </div>
      <div class="decoder">
        <div class="card" id="card" aria-live="polite"></div>
        <div class="msgs" id="msgs"></div>
        <details class="rates">
          <summary>Rates this page checks against</summary>
          <p class="sub" style="margin:.4rem 0 0;">These were the rates when this page was written. If one has changed, type the new one.</p>
          <div class="rgrid">
            <div><label for="rSS">Social Security (%)</label><input id="rSS" type="number" min="0" step="0.01"></div>
            <div><label for="rMed">Medicare (%)</label><input id="rMed" type="number" min="0" step="0.01"></div>
            <div><label for="rTransit">Oregon transit tax (%)</label><input id="rTransit" type="number" min="0" step="0.01"></div>
            <div><label for="rLeave">Paid Leave Oregon (%)</label><input id="rLeave" type="number" min="0" step="0.01"></div>
          </div>
        </details>
      </div>
    </div>
  </section>

  <section>
    <h2>Where each dollar went</h2>
    <p class="sub">A hundred pennies for every dollar you earned. Tap a color to see which pennies are whose.</p>
    <div class="split">
      <div class="grid100" id="grid" role="group" aria-label="One hundred pennies, colored by where they went"></div>
      <ul class="cents" id="cents"></ul>
    </div>
  </section>

  <section>
    <h2>Now split what you kept</h2>
    <p class="sub">Drag the two yellow handles, or tab to one and use the arrow keys.</p>
    <div class="plan">
      <div class="bar" id="bar">
        <div class="seg save" id="segSave"></div><div class="seg give" id="segGive"></div><div class="seg spend" id="segSpend"></div>
        <div class="handle" id="h1" tabindex="0" role="slider" aria-label="Where saving ends" aria-valuemin="0" aria-valuemax="100"></div>
        <div class="handle" id="h2" tabindex="0" role="slider" aria-label="Where giving ends" aria-valuemin="0" aria-valuemax="100"></div>
      </div>
      <div class="three">
        <div style="border-color:var(--river)"><small>Save</small><span class="a" id="aSave">$0</span><small id="ySave"></small></div>
        <div style="border-color:#c06c84"><small>Give or share</small><span class="a" id="aGive">$0</span><small id="yGive"></small></div>
        <div style="border-color:var(--fir2)"><small>Spend</small><span class="a" id="aSpend">$0</span><small id="ySpend"></small></div>
      </div>
    </div>

    <div class="buys">
      <div>
        <h2 style="font-size:1.35rem;">Your spend money, around town</h2>
        <p class="sub">Prices are rough examples; change them to what you actually pay.</p>
        <div class="things" id="things"></div>
      </div>
      <div>
        <h2 style="font-size:1.35rem;">Your save money, toward something</h2>
        <p class="sub">Name a goal and see how many paychecks it takes.</p>
        <div class="jar">
          <svg viewBox="0 0 110 150" id="jarSvg" aria-hidden="true"></svg>
          <div>
            <label for="goalName">Saving for</label><input id="goalName" type="text" maxlength="40">
            <label for="goalAmt">It costs ($)</label><input id="goalAmt" type="number" min="0" step="10">
            <label for="goalHave">Already saved ($)</label><input id="goalHave" type="number" min="0" step="10">
            <div class="big" id="goalOut"></div>
          </div>
        </div>
      </div>
    </div>
  </section>

  <div class="toolbar">
    <button type="button" class="primary" id="saveBtn">Save my stub</button>
    <button type="button" id="openBtn">Open a saved stub</button>
    <button type="button" id="printBtn">Print</button>
    <button type="button" id="resetBtn">Start over</button>
    <input type="file" id="fileIn" accept=".json,application/json" hidden>
  </div>
  <div id="fileMsg" role="status"></div>
</main>

<footer>
  <p><b>For education only.</b> Not tax advice. Federal and Oregon income tax withholding depends on the W-4 and Oregon withholding form you filled in, so this page explains those lines rather than checking them. If something looks wrong, ask your employer's payroll contact. Nothing you type leaves this page: there's no account, and nothing is sent anywhere. Made for the Globefin Demos gallery as an example. No outside code was used.</p>
</footer>

<script>
(function () {
  "use strict";
  var APP = "globefin-stub", VERSION = 2, NS = "http://www.w3.org/2000/svg";

  // Every line on the stub. "abbr" is how it tends to be printed.
  var DEDS = [
    { key: "fed",     abbr: "FED W/H",   name: "Federal income tax", color: "#b5543c",
      text: "Money held back toward your federal income tax for the year. The amount depends on the W-4 you filled in. Many students who earn little get some or all of it back by filing a tax return." },
    { key: "ss",      abbr: "OASDI",     name: "Social Security", color: "#d08a2e", rateKey: "rSS",
      text: "Old-Age, Survivors and Disability Insurance. It funds retirement and disability benefits, including yours someday, and it's a fixed percentage of your pay." },
    { key: "med",     abbr: "MED",       name: "Medicare", color: "#e3b04b", rateKey: "rMed",
      text: "Pays for health coverage for people 65 and older. Also a fixed percentage of your pay." },
    { key: "state",   abbr: "OR SIT",    name: "Oregon income tax", color: "#7a5c99",
      text: "State income tax withholding. Oregon has no sales tax, so income tax is how the state pays for schools and services. It depends on your Oregon withholding form, and you may get some back when you file." },
    { key: "transit", abbr: "OR STT",    name: "Oregon statewide transit tax", color: "#2f6f8f", rateKey: "rTransit",
      text: "A tiny tax on wages that pays for buses and trains across Oregon, including TriMet service around Portland." },
    { key: "leave",   abbr: "PLO EE",    name: "Paid Leave Oregon", color: "#3f9a8c", rateKey: "rLeave",
      text: "Your share of the state program that pays workers while they're out for a new baby, a serious illness, or caring for family. EE means employee; your employer may pay a share too." },
    { key: "other",   abbr: "OTHER",     name: "Other deductions", color: "#8a96a0",
      text: "Anything else: a uniform charge, a retirement plan, a meal deduction. If the stub doesn't say what it is, ask payroll." }
  ];
  var NET = { key: "net", abbr: "NET PAY", name: "Take-home pay", color: "#1f4d3a",
    text: "What lands in your account. It's gross pay minus every line above it." };
  var EARN = [
    { key: "hours", abbr: "HRS",       name: "Hours worked", text: "The hours you were paid for this pay period. Compare it with your own count of shifts." },
    { key: "rate",  abbr: "RATE",      name: "Pay rate", text: "Dollars per hour. Oregon's minimum wage is higher inside the Portland metro area than in the rest of the state, so check it against the current Portland-area rate." },
    { key: "gross", abbr: "GROSS",     name: "Gross pay", text: "Everything you earned before anything was taken out. Usually hours × rate, plus any overtime or tips." },
    { key: "period",abbr: "PAY FREQ",  name: "How often you're paid", text: "Used to turn one paycheck into a yearly number. Every-two-weeks means 26 paychecks a year." }
  ];
  var THINGS = [
    { id: "cart",   name: "Food-cart lunch",         price: 13, icon: '<rect x="4" y="14" width="32" height="16" rx="2" fill="#2f6b4f"/><rect x="8" y="18" width="12" height="7" fill="#f4e04d"/><circle cx="11" cy="33" r="3" fill="#1c2326"/><circle cx="29" cy="33" r="3" fill="#1c2326"/><path d="M4 14l4-6h24l4 6" fill="#c06c84"/>' },
    { id: "bus",    name: "A month of bus and MAX rides", price: 28, icon: '<rect x="6" y="6" width="28" height="24" rx="5" fill="#2f6f8f"/><rect x="10" y="10" width="20" height="9" rx="1" fill="#dbe8ee"/><circle cx="13" cy="25" r="2" fill="#f4e04d"/><circle cx="27" cy="25" r="2" fill="#f4e04d"/><rect x="10" y="30" width="4" height="5" fill="#1c2326"/><rect x="26" y="30" width="4" height="5" fill="#1c2326"/>' },
    { id: "jacket", name: "A real rain jacket",      price: 90, icon: '<path d="M14 6h12l8 8-4 4-2-2v20H12V16l-2 2-4-4z" fill="#1f4d3a"/><path d="M14 6q6 6 12 0" fill="none" stroke="#f4e04d" stroke-width="2"/><path d="M20 10v26" stroke="#f4e04d" stroke-width="1.5"/>' },
    { id: "show",   name: "All-ages show ticket",    price: 25, icon: '<path d="M6 12h28v5a3 3 0 0 0 0 6v5H6v-5a3 3 0 0 0 0-6z" fill="#c06c84"/><path d="M15 12v16" stroke="#fbfaf4" stroke-dasharray="2 2"/><circle cx="25" cy="20" r="3" fill="#f4e04d"/>' }
  ];

  function sample() {
    return { hours: 34.5, rate: 16.30, gross: 562.35, period: 26,
             fed: 21.40, ss: 34.87, med: 8.15, state: 31.92, transit: 0.56, leave: 3.37, other: 0,
             rSS: 6.2, rMed: 1.45, rTransit: 0.1, rLeave: 0.6,
             pSave: 30, pGive: 10,
             prices: { cart: 13, bus: 28, jacket: 90, show: 25 },
             goalName: "A used bike for getting to work", goalAmt: 350, goalHave: 40,
             sel: "ss" };
  }
  var state = sample(), dirty = false, lit = "";
  var $ = function (id) { return document.getElementById(id); };
  function num(v) { var n = parseFloat(v); return isFinite(n) ? n : 0; }
  function pos(n) { return Math.max(0, n); }
  function money(n) { return (n < 0 ? "−$" : "$") + Math.abs(n).toLocaleString("en-US", { minimumFractionDigits: 2, maximumFractionDigits: 2 }); }
  function money0(n) { return "$" + Math.round(n).toLocaleString("en-US"); }
  function esc(s) { return String(s).replace(/[&<>"]/g, function (c) { return {"&":"&amp;","<":"&lt;",">":"&gt;","\"":"&quot;"}[c]; }); }
  function el(tag, a, p) { var e = document.createElementNS(NS, tag); for (var k in a) e.setAttribute(k, a[k]); if (p) p.appendChild(e); return e; }
  function touch() { dirty = true; }

  // ---------- the hero: Mount Hood, firs, a gothic bridge over the Willamette, and rain ----------
  function drawSky() {
    var s = $("sky");
    el("path", { d: "M640 190 L760 70 L790 92 L880 190 Z", fill: "#a9b6bc" }, s);
    el("path", { d: "M735 95 L760 70 L790 92 L775 104 L762 96 L748 108 Z", fill: "#f4f6f6" }, s);
    // far hills
    el("path", { d: "M0 200 C150 170 300 185 420 175 C560 165 700 190 840 178 C980 168 1100 185 1200 175 L1200 300 L0 300Z", fill: "#7d8f8c" }, s);
    // the river
    el("rect", { x: 0, y: 238, width: 1200, height: 62, fill: "#4e7f93" }, s);
    for (var i = 0; i < 9; i++) el("path", { d: "M" + (40 + i * 135) + " " + (258 + (i % 3) * 12) + " h46", stroke: "#8fb5c4", "stroke-width": 2, "stroke-linecap": "round" }, s);
    // the bridge: two gothic towers and cables
    var bx = [560, 900], deckY = 214, g = el("g", { fill: "#2a4f47" }, s);
    el("rect", { x: 380, y: deckY, width: 720, height: 8 }, g);
    bx.forEach(function (x) {
      el("rect", { x: x - 12, y: 92, width: 24, height: 146 }, g);
      el("path", { d: "M" + (x - 12) + " 92 L" + x + " 70 L" + (x + 12) + " 92Z" }, g);
      el("path", { d: "M" + (x - 6) + " 130 q6 -14 12 0 v20 h-12z", fill: "#9aa6ad" }, g);
      el("path", { d: "M" + (x - 6) + " 172 q6 -14 12 0 v20 h-12z", fill: "#9aa6ad" }, g);
    });
    var cable = "M380 " + deckY + " Q470 150 " + bx[0] + " 96 Q730 204 " + bx[1] + " 96 Q1000 150 1100 " + deckY;
    el("path", { d: cable, fill: "none", stroke: "#2a4f47", "stroke-width": 3 }, s);
    for (var x = 400; x < 1100; x += 22) {
      if (Math.abs(x - bx[0]) < 14 || Math.abs(x - bx[1]) < 14) continue;
      var y;
      if (x < bx[0]) { var t = (x - 380) / (bx[0] - 380); y = (1 - t) * (1 - t) * deckY + 2 * (1 - t) * t * 150 + t * t * 96; }
      else if (x < bx[1]) { var t2 = (x - bx[0]) / (bx[1] - bx[0]); y = (1 - t2) * (1 - t2) * 96 + 2 * (1 - t2) * t2 * 204 + t2 * t2 * 96; }
      else { var t3 = (x - bx[1]) / (1100 - bx[1]); y = (1 - t3) * (1 - t3) * 96 + 2 * (1 - t3) * t3 * 150 + t3 * t3 * deckY; }
      el("path", { d: "M" + x + " " + y.toFixed(1) + " V" + deckY, stroke: "#2a4f47", "stroke-width": 1 }, s);
    }
    // firs on the near bank
    function fir(x, h, c) {
      var p = "M" + x + " " + (240 - h);
      for (var k = 0; k < 4; k++) { var yy = 240 - h + (k + 1) * h / 4.4, w = 6 + k * h / 9; p += " L" + (x + w) + " " + yy + " L" + (x + w * .45) + " " + yy; }
      p += " L" + (x + h / 5) + " 240 L" + (x - h / 5) + " 240";
      for (var k2 = 3; k2 >= 0; k2--) { var y2 = 240 - h + (k2 + 1) * h / 4.4, w2 = 6 + k2 * h / 9; p += " L" + (x - w2 * .45) + " " + y2 + " L" + (x - w2) + " " + y2; }
      el("path", { d: p + "Z", fill: c }, s);
    }
    [[20, 120], [70, 160], [120, 110], [165, 140], [1060, 130], [1110, 170], [1160, 120], [1195, 150]].forEach(function (f, i) { fir(f[0], f[1], i % 2 ? "#1f4d3a" : "#2f6b4f"); });
    el("rect", { x: 0, y: 236, width: 240, height: 6, fill: "#1f4d3a" }, s);
    el("rect", { x: 1020, y: 236, width: 180, height: 6, fill: "#1f4d3a" }, s);
    // a soft veil behind the title so it reads over the bridge
    var defs = el("defs", {}, s), lg = el("linearGradient", { id: "veil", x1: 0, x2: 1, y1: 0, y2: 0 }, defs);
    el("stop", { offset: 0, "stop-color": "#3d5250", "stop-opacity": .78 }, lg);
    el("stop", { offset: .45, "stop-color": "#3d5250", "stop-opacity": .55 }, lg);
    el("stop", { offset: .75, "stop-color": "#3d5250", "stop-opacity": 0 }, lg);
    el("rect", { x: 0, y: 0, width: 1200, height: 238, fill: "url(#veil)" }, s);
    // rain
    var rain = el("g", { stroke: "#eef3f5", "stroke-width": 1.4, opacity: .55, "stroke-linecap": "round" }, s);
    for (var r = 0; r < 70; r++) {
      var rx = (r * 173) % 1220, ry = (r * 97) % 300;
      el("path", { "class": "drop", d: "M" + rx + " " + ry + " l-4 16", style: "animation-delay:-" + ((r * 37) % 110) / 100 + "s" }, rain);
    }
  }

  // ---------- the stub ----------
  function row(item, inputHtml, mark) {
    return '<div class="srow' + (state.sel === item.key ? " on" : "") + '" data-key="' + item.key + '"><button type="button" class="k" data-key="' + item.key + '" aria-label="Explain ' + esc(item.name) + '">' + esc(item.abbr) + '</button>' +
           '<span class="vals">' + inputHtml + '<span class="mk ' + (mark === "✓" ? "y" : "n") + '" aria-hidden="true">' + (mark || "") + '</span></span></div>';
  }
  function buildStub() {
    $("earnRows").innerHTML = EARN.map(function (e) {
      if (e.key === "period") return row(e, '<select id="f_period" aria-label="How often you are paid"><option value="52">weekly</option><option value="26">every 2 wks</option><option value="24">twice a month</option><option value="12">monthly</option></select>');
      var step = e.key === "hours" ? "0.25" : "0.01";
      return row(e, '<input id="f_' + e.key + '" type="number" min="0" step="' + step + '" inputmode="decimal" aria-label="' + esc(e.name) + '">');
    }).join("");
    $("dedRows").innerHTML = DEDS.map(function (d) {
      return row(d, '<input id="f_' + d.key + '" type="number" min="0" step="0.01" inputmode="decimal" aria-label="' + esc(d.name) + '">', "");
    }).join("");
    Array.prototype.forEach.call(document.querySelectorAll("#stub .k"), function (b) { b.addEventListener("click", function () { select(b.getAttribute("data-key")); }); });
    ["hours", "rate", "gross"].concat(DEDS.map(function (d) { return d.key; })).forEach(function (k) {
      var inp = $("f_" + k);
      inp.addEventListener("input", function () { state[k] = num(this.value); touch(); render(); });
      inp.addEventListener("focus", function () { select(k, true); });
    });
    $("f_period").addEventListener("change", function () { state.period = +this.value; touch(); render(); });
    $("f_period").addEventListener("focus", function () { select("period", true); });
  }
  function select(k, quiet) {
    state.sel = k;
    Array.prototype.forEach.call(document.querySelectorAll("#stub .srow"), function (r) { r.classList.toggle("on", r.getAttribute("data-key") === k); });
    renderCard();
    if (!quiet && window.matchMedia("(max-width: 860px)").matches) $("card").scrollIntoView({ behavior: "smooth", block: "nearest" });
  }
  function check(d) {
    var gross = pos(state.gross);
    if (!d.rateKey || gross <= 0) return null;
    var expect = gross * pos(state[d.rateKey]) / 100, amt = pos(state[d.key]);
    return { ok: Math.abs(amt - expect) <= 0.02 + gross * 0.0005, expect: expect, rate: state[d.rateKey] };
  }
  function find(k) { return DEDS.concat(EARN, [NET]).filter(function (x) { return x.key === k; })[0] || NET; }

  function renderCard() {
    var it = find(state.sel), gross = pos(state.gross), html = '<span class="abbr">' + esc(it.abbr) + '</span><h3>' + esc(it.name) + '</h3>';
    var isDed = DEDS.indexOf(it) >= 0;
    if (isDed) {
      var amt = pos(state[it.key]);
      html += '<p class="amt">' + money(amt) + (gross > 0 ? ' <span class="math">= ' + (amt / gross * 100).toFixed(2) + '% of gross, or ' + (amt / gross * 100).toFixed(1) + '¢ of each dollar</span>' : "") + '</p>';
    } else if (it === NET) {
      html += '<p class="amt">' + money(netPay()) + '</p>';
    }
    html += '<p>' + esc(it.text) + '</p>';
    if (isDed) {
      var c = check(it);
      if (c) {
        html += '<div class="verdict' + (c.ok ? "" : " n") + '">' + (c.ok ? "✓ Checks out. " : "! Doesn't match. ") +
                '<span class="math">' + money(gross) + " × " + c.rate + "% = " + money(c.expect) + '</span>' +
                (c.ok ? "" : "<br>A pre-tax deduction (like a retirement plan) can lower it. If you don't have one, ask payroll.") + '</div>';
      } else if (it.key === "fed" || it.key === "state") {
        html += '<div class="verdict i">This one depends on your withholding form, so there\'s no single right number to check it against. If it\'s $0 and you expected tax, look at your form.</div>';
      }
    }
    if (it.key === "gross" && state.hours > 0 && state.rate > 0) {
      var calc = state.hours * state.rate, ok = Math.abs(calc - gross) <= 0.01;
      html += '<div class="verdict' + (ok ? "" : " n") + '"><span class="math">' + state.hours + " hrs × " + money(state.rate) + " = " + money(calc) + '</span><br>' +
              (ok ? "Matches the gross on your stub." : "Your stub says " + money(gross) + ". Overtime, tips or a training rate can explain the difference; if not, ask.") + '</div>';
    }
    if (it.key === "period") html += '<div class="verdict i">' + state.period + ' paychecks a year. ' + money(netPay()) + ' each comes to about ' + money0(netPay() * state.period) + ' a year if every paycheck looks like this one.</div>';
    html += '<div class="hint-row" role="group" aria-label="Jump to a line">' + DEDS.filter(function (d) { return pos(state[d.key]) > 0 || d.rateKey; }).concat([NET]).map(function (d) {
      return '<button type="button" data-key="' + d.key + '" aria-pressed="' + (d.key === state.sel) + '">' + esc(d.abbr) + '</button>';
    }).join("") + '</div>';
    $("card").innerHTML = html;
    Array.prototype.forEach.call($("card").querySelectorAll(".hint-row button"), function (b) { b.addEventListener("click", function () { select(b.getAttribute("data-key"), true); }); });
  }

  function netPay() { return pos(state.gross) - DEDS.reduce(function (t, d) { return t + pos(state[d.key]); }, 0); }

  // ---------- a hundred pennies ----------
  function pennies() {
    var gross = pos(state.gross), parts = [NET].concat(DEDS).map(function (d) {
      var v = d === NET ? Math.max(0, netPay()) : pos(state[d.key]);
      return { d: d, v: v, exact: gross > 0 ? v / gross * 100 : 0 };
    });
    // largest-remainder rounding so the squares always add to 100
    var floor = parts.map(function (p) { return Math.floor(p.exact); }), left = 100 - floor.reduce(function (a, b) { return a + b; }, 0);
    if (gross <= 0) { floor = parts.map(function () { return 0; }); left = 0; }
    parts.map(function (p, i) { return { i: i, r: p.exact - Math.floor(p.exact) }; }).sort(function (a, b) { return b.r - a.r; })
      .slice(0, Math.max(0, left)).forEach(function (o) { floor[o.i] += 1; });
    parts.forEach(function (p, i) { p.n = floor[i]; });
    return parts;
  }
  function renderGrid() {
    var parts = pennies(), grid = $("grid"), html = "";
    parts.forEach(function (p) { for (var i = 0; i < p.n; i++) html += '<button type="button" data-key="' + p.d.key + '" style="background:' + p.d.color + '" aria-label="' + esc(p.d.name) + '"></button>'; });
    var used = parts.reduce(function (a, p) { return a + p.n; }, 0);
    for (var j = used; j < 100; j++) html += '<button type="button" disabled style="background:#d5dbdd" aria-label="Nothing yet"></button>';
    grid.innerHTML = html;
    Array.prototype.forEach.call(grid.querySelectorAll("button[data-key]"), function (b) { b.addEventListener("click", function () { light(b.getAttribute("data-key")); }); });
    $("cents").innerHTML = parts.filter(function (p) { return p.v > 0; }).map(function (p) {
      var note = p.n === 0 ? '<span class="note">Less than half a penny per dollar, so it gets no square of its own.</span>' : "";
      return '<li data-key="' + p.d.key + '" tabindex="0"><i style="background:' + p.d.color + '"></i><span>' + esc(p.d.name) + '</span><b>' + p.exact.toFixed(1) + '¢</b>' + note + '</li>';
    }).join("") || '<li>Type your gross pay on the stub to fill the pennies.</li>';
    Array.prototype.forEach.call($("cents").querySelectorAll("li[data-key]"), function (li) {
      var k = li.getAttribute("data-key");
      li.addEventListener("click", function () { light(k); });
      li.addEventListener("keydown", function (e) { if (e.key === "Enter" || e.key === " ") { e.preventDefault(); light(k); } });
    });
    applyLight();
  }
  function light(k) { lit = lit === k ? "" : k; applyLight(); select(k, true); }
  function applyLight() {
    $("grid").classList.toggle("dim", !!lit);
    Array.prototype.forEach.call($("grid").querySelectorAll("button"), function (b) { b.classList.toggle("lit", b.getAttribute("data-key") === lit); });
    Array.prototype.forEach.call($("cents").querySelectorAll("li"), function (li) { li.classList.toggle("lit", li.getAttribute("data-key") === lit); });
  }

  // ---------- the three-way split ----------
  function split() {
    var a = Math.min(100, pos(state.pSave)), b = Math.min(100 - a, pos(state.pGive));
    return { save: a, give: b, spend: 100 - a - b };
  }
  function renderSplit() {
    var sp = split(), base = Math.max(0, netPay()), per = state.period;
    $("segSave").style.width = sp.save + "%"; $("segGive").style.width = sp.give + "%"; $("segSpend").style.width = sp.spend + "%";
    $("segSave").textContent = sp.save >= 10 ? sp.save + "%" : ""; $("segGive").textContent = sp.give >= 10 ? sp.give + "%" : ""; $("segSpend").textContent = sp.spend >= 10 ? sp.spend + "%" : "";
    $("h1").style.left = sp.save + "%"; $("h2").style.left = (sp.save + sp.give) + "%";
    $("h1").setAttribute("aria-valuenow", sp.save); $("h1").setAttribute("aria-valuetext", "Save " + sp.save + " percent");
    $("h2").setAttribute("aria-valuenow", sp.save + sp.give); $("h2").setAttribute("aria-valuetext", "Give " + sp.give + " percent, spend " + sp.spend + " percent");
    var v = { save: base * sp.save / 100, give: base * sp.give / 100, spend: base * sp.spend / 100 };
    $("aSave").textContent = money(v.save); $("aGive").textContent = money(v.give); $("aSpend").textContent = money(v.spend);
    $("ySave").textContent = sp.save + "% · " + money0(v.save * per) + " a year";
    $("yGive").textContent = sp.give + "% · " + money0(v.give * per) + " a year";
    $("ySpend").textContent = sp.spend + "% · " + money0(v.spend * per) + " a year";
    renderThings(v.spend); renderJar(v.save);
  }
  function setEdge(which, pct) {
    pct = Math.round(Math.max(0, Math.min(100, pct)) / 5) * 5;
    var sp = split();
    if (which === 1) { state.pSave = Math.min(pct, sp.save + sp.give); state.pGive = sp.save + sp.give - state.pSave; }
    else { var end = Math.max(pct, sp.save); state.pGive = end - sp.save; }
    touch(); renderSplit();
  }
  function wireHandles() {
    [1, 2].forEach(function (n) {
      var h = $("h" + n), dragging = false;
      h.addEventListener("pointerdown", function (e) { dragging = true; h.setPointerCapture(e.pointerId); e.preventDefault(); });
      h.addEventListener("pointermove", function (e) {
        if (!dragging) return; var r = $("bar").getBoundingClientRect(); setEdge(n, (e.clientX - r.left) / r.width * 100);
      });
      h.addEventListener("pointerup", function () { dragging = false; });
      h.addEventListener("pointercancel", function () { dragging = false; });
      h.addEventListener("keydown", function (e) {
        var sp = split(), cur = n === 1 ? sp.save : sp.save + sp.give;
        if (e.key === "ArrowLeft" || e.key === "ArrowDown") { e.preventDefault(); setEdge(n, cur - 5); }
        if (e.key === "ArrowRight" || e.key === "ArrowUp") { e.preventDefault(); setEdge(n, cur + 5); }
      });
    });
  }

  function renderThings(spend) {
    $("things").innerHTML = THINGS.map(function (t) {
      var p = pos(num(state.prices[t.id])), n = p > 0 ? Math.floor(spend / p) : 0;
      return '<div class="thing"><svg viewBox="0 0 40 40" aria-hidden="true">' + t.icon + '</svg><div><div class="nm">' + esc(t.name) + '</div>' +
             '<div class="pr">$<input type="number" min="0" step="1" data-id="' + t.id + '" value="' + p + '" aria-label="Price of ' + esc(t.name) + '"></div>' +
             '<div class="n">' + (p > 0 ? (spend / p >= 1 ? "×" + n + " a paycheck" : "takes " + Math.ceil(p / Math.max(spend, 0.01)) + " paychecks") : "—") + '</div></div></div>';
    }).join("");
    Array.prototype.forEach.call($("things").querySelectorAll("input"), function (inp) {
      inp.addEventListener("change", function () { state.prices[this.getAttribute("data-id")] = pos(num(this.value)); touch(); renderSplit(); });
    });
  }
  function renderJar(save) {
    var amt = pos(state.goalAmt), have = Math.min(pos(state.goalHave), amt || 0), need = Math.max(0, amt - have);
    var frac = amt > 0 ? have / amt : 0, s = $("jarSvg"); s.innerHTML = "";
    el("path", { d: "M25 20h60v10q12 6 12 22v80q0 12-12 12H25q-12 0-12-12V52q0-16 12-22z", fill: "#eef3f5", stroke: "#2f6f8f", "stroke-width": 3 }, s);
    var top = 140 - frac * 100;
    var clip = el("clipPath", { id: "jc" }, s); el("path", { d: "M25 30q-12 6-12 22v80q0 12 12 12h60q12 0 12-12V52q0-16-12-22z" }, clip);
    el("rect", { x: 10, y: top, width: 90, height: 150, fill: "#2f6f8f", "clip-path": "url(#jc)" }, s);
    el("rect", { x: 22, y: 10, width: 66, height: 12, rx: 3, fill: "#1f4d3a" }, s);
    var t = el("text", { x: 55, y: 92, "text-anchor": "middle", "font-size": 16, "font-weight": 700, fill: frac > .5 ? "#fff" : "#1c2326" }, s); t.textContent = Math.round(frac * 100) + "%";
    var out;
    if (amt <= 0) out = "Add what it costs.";
    else if (need === 0) out = "You already have enough.";
    else if (save <= 0) out = "Move the save handle to start.";
    else { var n = Math.ceil(need / save); out = n + " paycheck" + (n === 1 ? "" : "s") + ' <span class="math">' + money(need) + " ÷ " + money(save) + "</span>"; }
    $("goalOut").innerHTML = out;
  }

  function render() {
    $("netAmt").textContent = money(netPay());
    DEDS.forEach(function (d) {
      var r = document.querySelector('#stub .srow[data-key="' + d.key + '"] .mk'), c = check(d);
      r.textContent = c ? (c.ok ? "✓" : "!") : ""; r.className = "mk " + (c && c.ok ? "y" : "n");
    });
    var gRow = document.querySelector('#stub .srow[data-key="gross"] .mk'), gross = pos(state.gross);
    if (state.hours > 0 && state.rate > 0 && gross > 0) { var okG = Math.abs(state.hours * state.rate - gross) <= 0.01; gRow.textContent = okG ? "✓" : "!"; gRow.className = "mk " + (okG ? "y" : "n"); }
    else gRow.textContent = "";
    var msgs = [];
    if (netPay() < 0) msgs.push(["w", "More is taken out than you earned. Check the numbers you typed."]);
    if (["hours", "rate", "gross"].concat(DEDS.map(function (d) { return d.key; })).some(function (k) { return state[k] < 0; })) msgs.push(["w", "Negative numbers are counted as zero."]);
    $("msgs").innerHTML = msgs.map(function (m) { return '<div class="m ' + m[0] + '">' + esc(m[1]) + '</div>'; }).join("");
    renderCard(); renderGrid(); renderSplit();
  }
  function fill() {
    $("f_hours").value = state.hours;
    ["rate", "gross"].concat(DEDS.map(function (d) { return d.key; })).forEach(function (k) { $("f_" + k).value = (+state[k]).toFixed(2); });
    $("f_period").value = String(state.period);
    ["rSS", "rMed", "rTransit", "rLeave"].forEach(function (k) { $(k).value = state[k]; });
    $("goalName").value = state.goalName; $("goalAmt").value = state.goalAmt; $("goalHave").value = state.goalHave;
    lit = ""; select(state.sel, true); render();
  }
  ["rSS", "rMed", "rTransit", "rLeave"].forEach(function (k) { $(k).addEventListener("input", function () { state[k] = num(this.value); touch(); render(); }); });
  $("goalName").addEventListener("input", function () { state.goalName = this.value.slice(0, 40); touch(); });
  ["goalAmt", "goalHave"].forEach(function (k) { $(k).addEventListener("input", function () { state[k] = num(this.value); touch(); renderSplit(); }); });

  // ---------- save / open ----------
  $("saveBtn").addEventListener("click", function () {
    var blob = new Blob([JSON.stringify({ app: APP, version: VERSION, saved: new Date().toISOString(), data: state }, null, 2)], { type: "application/json" });
    var a = document.createElement("a"); a.href = URL.createObjectURL(blob); a.download = "my-paycheck-stub.json";
    document.body.appendChild(a); a.click(); a.remove(); setTimeout(function () { URL.revokeObjectURL(a.href); }, 1000);
    dirty = false; $("fileMsg").textContent = "Saved. Open it next payday to compare.";
  });
  $("openBtn").addEventListener("click", function () { $("fileIn").click(); });
  $("fileIn").addEventListener("change", function () {
    var f = this.files[0]; this.value = ""; if (!f) return;
    var r = new FileReader();
    r.onload = function () {
      var bad = function (why) { $("fileMsg").innerHTML = '<span class="bad">That file can\'t be opened here: ' + esc(why) + '.</span> Nothing on screen was changed.'; };
      var d; try { d = JSON.parse(r.result); } catch (e) { return bad("it isn't a saved Stub file"); }
      if (!d || d.app !== APP || typeof d.data !== "object" || !d.data) return bad("it isn't a saved Stub file");
      var s = d.data, c = sample();
      ["hours", "rate", "gross", "rSS", "rMed", "rTransit", "rLeave", "pSave", "pGive", "goalAmt", "goalHave"].concat(DEDS.map(function (x) { return x.key; }))
        .forEach(function (k) { if (k in s) c[k] = num(s[k]); });
      c.period = [52, 26, 24, 12].indexOf(+s.period) >= 0 ? +s.period : 26;
      if (s.prices && typeof s.prices === "object") THINGS.forEach(function (t) { if (t.id in s.prices) c.prices[t.id] = pos(num(s.prices[t.id])); });
      if (typeof s.goalName === "string") c.goalName = s.goalName.slice(0, 40);
      if (typeof s.sel === "string" && find(s.sel).key === s.sel) c.sel = s.sel;
      if (dirty && !confirm("Replace what's on screen with the saved stub? Unsaved changes will be lost.")) return;
      state = c; dirty = false; fill(); $("fileMsg").textContent = "Opened your saved stub.";
    };
    r.onerror = function () { $("fileMsg").innerHTML = '<span class="bad">That file couldn\'t be read.</span> Nothing on screen was changed.'; };
    r.readAsText(f);
  });
  $("printBtn").addEventListener("click", function () { window.print(); });
  $("resetBtn").addEventListener("click", function () {
    if (dirty && !confirm("Start over with the example stub? Unsaved changes will be lost.")) return;
    state = sample(); dirty = false; fill(); $("fileMsg").textContent = "";
  });
  window.addEventListener("beforeunload", function (e) { if (dirty) { e.preventDefault(); e.returnValue = ""; } });

  drawSky(); buildStub(); wireHandles(); fill();
})();
</script>
</body>
</html>

Reaches out to

Websites this page contacts when it runs — fonts, chart libraries, data. Found by reading its source.

  • www.w3.org

Licence

Published on Globefin under the MIT License. You may copy, change, and reuse this page, including commercially — just keep the notice below with it.

Copyright © 2026 Shane Hadden. Licensed under the MIT License. Published on Globefin.

Provided as is, without warranty. Any external libraries it loads keep their own licences. Terms →

Sandbox

Scripts run, but the demo has its own throwaway origin. It can't read your session or cookies, can't reach the page around it, and can't navigate your tab. Don't enter real passwords or personal data into any demo.