Prepared for ViddyScribe · November 23, 2026

The lecture library sizer, as a drop-in embed with one script tag

This is the sizer from the article How to audio-describe thousands of recorded lectures before the Title II deadline, now in one file you can put on viddyscribe.com. A visitor moves three sliders and sees their library as minutes, hours and cost on your published Standard plan. It's yours to keep: the file, the line to paste and the install note are all below.

Live, through the same one tag

What follows is the embed running on this page from <script src="sizer.js"></script>, exactly the line you paste. Move a slider.

The one line to paste

To try it now, from our copy

This tag loads the file from this page's own address, so it works on any page straight away.

<script src="sizer.js"></script>
For your site: copy the file to viddyscribe.com and point the tag at it

Download sizer.js, upload it to your site (on Next.js, the public folder), and change the src to wherever you put it. Your copy then never depends on ours.

<script src="/sizer.js"></script>
Download sizer.js

Install note

  1. Where to paste it. Wherever the sizer should appear: under the plans on your pricing page, on a Title II or education page, or inside a blog post. Any editor with an HTML or embed block takes it. The sizer draws itself right where the tag sits and fills the width of its column.
  2. If the tag has to live somewhere else (a layout file, the page head, a tag manager), put <div data-viddyscribe-sizer></div> where the sizer should appear and load the script once, anywhere. It fills every such placeholder on the page, including one that appears after the script has run. A tag in the body should come after its placeholder, or sit in the head.
  3. On Next.js, which viddyscribe.com runs on: put the placeholder div in the page and load the file once, with a plain script tag or with <Script src="/sizer.js" strategy="afterInteractive" /> from next/script. In a browser we tested the three things that can happen there: the script in the head, the script added later by another script (the way next/script adds it), and a placeholder that appears after the script has already run (what a client-side page change does). We did not test it inside a Next.js build itself. Leave off type="module".
  4. Twice on one page is fine. Each tag or placeholder gets its own sizer, and they do not interfere.
  5. Options go on the tag (or on the placeholder div, which wins):
    AttributeWhat it doesDefault
    data-pricePlan price per month, in dollars900
    data-includedMinutes included in that price500
    data-extraPrice of each extra minute1.80
    data-planPlan name shown next to the costStandard
    data-themelight or dark, for a dark sectionlight
    data-pricing-urlWhere "See pricing" under the sizer linksviddyscribe.com/pricing
    data-targetTag only: a CSS selector for where to draw itnone
  6. When the plan price changes. Edit the one line at the top of sizer.js, var PLAN = { name: 'Standard', price: 900, included: 500, extra: 1.80 };, and every page that loads the file follows. To change it on one page only, set the attributes, for example <script src="/sizer.js" data-price="950" data-extra="1.90"></script>. The note under the sizer and its "How this is worked out" line are written from these values, so no old price is left behind.

The same file, pasted a second time, for a dark section

This copy is <script src="sizer.js" data-theme="dark"></script>, for a band like your homepage hero. It runs alongside the one above.

How the numbers are worked out

The same three inputs, ranges, formula and rounding as the sizer in the article. We checked the embed against the article's own script at all 96,000 positions the three sliders can take: every figure matches.

Minutes to describe
recorded lectures × average length in minutes × the share that needs description after triage
Hours
minutes ÷ 60
Cost
$900 for the month, plus $1.80 for every minute over the 500 included. A library under 500 minutes costs $900.
Rounding
to whole numbers for display, halves rounded up

At the starting values: 2,000 lectures × 50 minutes × 30% = 30,000 minutes, or 500 hours. Cost: $900 + (30,000 minus 500) × $1.80 = $54,000.

The price is your Standard plan as published on viddyscribe.com/pricing, read on 23 November 2026: $900 a month, includes 500 minutes a month, additional minutes at $1.80 a minute. That is the monthly price; the page also offers annual billing at 15% off, which the sizer leaves out.

What it assumes: the whole backlog is described in one month on the Standard plan. Spread over several months, each month adds the plan price. Your page says bigger libraries get lower per-minute pricing on a custom plan, and the note under the sizer says so too; the sizer does not guess that figure.

What is in the file, and what is not

  • One file, under 14 KB, no dependencies. It makes no network calls, sets no cookies, stores nothing and tracks nobody.
  • It draws inside its own shadow root, so your site's CSS does not reach in and its CSS does not leak out. We tested it on a page that sets * { box-sizing: content-box; font-size: 30px }: it looks the same. It takes your page's font, so it reads as part of your site.
  • Keyboard and screen reader: Tab reaches each slider and the arrow keys move it one step. A screen reader hears each value with its unit ("2,000 lectures") and, once a slider stops moving, one short summary of minutes, hours and cost. Every text colour passes WCAG AA contrast in both themes.
  • It adds no global variables to the page.