How to Add a Transmission Fitting Lab to Your Website
LK Forge · 4 min read · Updated September 2026
You can add a full transmission-fitting lab to any website, blog, or classroom page with a single line of code — free, with no sign-up, no plugin, and no script to install. Visitors change the absorption and slit widths and watch classic log(I₀/I) absorbance bend away from the line, while the TFit method fits the whole transmission profile and stays linear — pushing the calibration past the ceiling where Beer's law normally fails. This guide covers the fastest way to embed the Transmission Fitting lab, what it teaches, and where it works.
The quickest way: paste one embed snippet
An embed is just an <iframe> that loads the lab from lkforge.com, plus a small credit line. Copy this into your page’s HTML where you want the widget to appear:
<iframe src="https://lkforge.com/embed/transmission-fitting/"
width="100%" height="880" loading="lazy"
style="border:0;max-width:560px"
title="Transmission Fitting by LK Forge"></iframe>
<p><a href="https://lkforge.com/tools/chemistry/transmission-fitting/">Transmission Fitting</a>
by <a href="https://lkforge.com/">LK Forge</a></p> The <iframe> is the live lab; the <p> underneath is a plain credit link. Keep that line — the visible link is what keeps the widget free to embed. You can also copy this exact code straight from the LK Forge widget gallery.
What the widget shows
The lab opens with both calibration curves drawn, so a visitor sees the divergence immediately and can then take control:
- Absorption and instrument width: sliders set how wide the absorption band and the instrument (slit) are — the mismatch is what makes classic absorbance bend.
- Stray light and noise: add the two real-instrument effects and watch how much sooner log(I₀/I) fails.
- True absorbance marker: slide it along the range to compare the true value with what each method reports.
- Two curves side by side: classic log(I₀/I) curving over versus TFit staying linear (hyperlinear) far past the usual ceiling — with a Reset to restore defaults.
Pick the right height
The snippet uses height="880", which fits the plots, the sliders and the readouts without clipping even on a narrow phone, where they stack into one column. On a wider page the widget centres within its max-width:560px. That single height works across screen sizes, so there is nothing to tweak for mobile.
Where it works
Because it is a standard iframe, the embed works anywhere you can add HTML:
- WordPress: add a Custom HTML block and paste the snippet.
- Squarespace: use a Code / Embed block.
- Wix: add an Embed HTML / iframe element.
- Ghost: insert an HTML card.
- Notion: paste the
/embed/transmission-fitting/URL and choose "Create embed". - Plain HTML, an intranet, or a lesson page: paste the snippet straight into the markup.
That’s the whole job. Copy the embed code from the widget gallery and paste it wherever an analytical-chemistry lesson or a blog post on spectrophotometry, calibration linearity or extending dynamic range needs a curve students can actually push.
Grab the embed code from the LK Forge widget gallery — free, no sign-up.
Open the Transmission Fitting LabFrequently asked questions
- What can visitors do with the embedded Transmission Fitting lab?
- They can adjust the absorption width, the instrument (slit) width, the stray-light level and the noise, then slide a true-absorbance marker along the range. Two curves update together — the classic log(I₀/I) absorbance and the transmission-fitting (TFit) result — so the gap between them is visible at every point. A Reset button restores the defaults.
- What does the Transmission Fitting lab teach?
- It shows why classic absorbance, log(I₀/I), goes non-linear at high values once the slit width and stray light matter — and how fitting the whole transmission profile instead of taking a single log keeps the calibration linear far past that ceiling. That hyperlinear range is the headline idea behind the TFit method.
- Is embedding the Transmission Fitting lab free?
- Yes. It is free to embed on any site, with no account, no API key and no usage limits. The whole simulation runs in your visitor’s own browser, so there is no server cost — we only ask that you keep the small "Transmission Fitting by LK Forge" credit line that comes with the embed code.
- What iframe height should I use, especially on mobile?
- The snippet ships with height="880", which is tall enough that the plots, the sliders and the readouts all fit without clipping even on a narrow phone, where they stack into a single column. On a wider page the widget simply centres within its max-width of 560px. You can lower the height if you want it shorter, but 880 is the safe default across screen sizes.
- Where can I embed it — WordPress, Wix, Squarespace, Notion?
- Anywhere you can add HTML, because it is a standard iframe. In WordPress use a Custom HTML block; in Squarespace a Code/Embed block; in Wix an Embed HTML element; in Ghost an HTML card; in Notion paste the /embed/transmission-fitting/ URL as an embed. On a plain HTML page or an intranet, paste the snippet straight into the markup.
- Does the embedded lab track visitors or set cookies?
- No. Everything runs locally in the visitor’s browser — nothing is uploaded. The embed sets no tracking cookies and sends no analytics, so it is safe to place on a privacy-sensitive site, an intranet, or a page for students.