Files
lennyzeltser 16e33e469f fix: Prevent scroll from affecting parent page in iframes
scrollIntoView() scrolls all ancestor containers including the parent
page when embedded in an iframe. Replaced with manual scrollTo() on
the specific container to isolate scroll behavior.

- Use container.scrollTo() instead of element.scrollIntoView()
- Add browser fallback for older browsers without scrollTo support
- Add Math.max(0, ...) guard for edge cases
- Remove redundant scroll-margin-top CSS (only affects scrollIntoView)
2026-01-16 14:18:03 -05:00
..
2026-01-14 17:55:56 -05:00
2026-01-14 17:55:56 -05:00

Examples

Example YAML source files and their pre-built HTML demos.

Files

File Description
london-scam.yaml Single-scenario social engineering demo (source)
london-scam.html Pre-built HTML demo
ir-report.yaml Multi-scenario IR report writing demo (source)
ir-report.html Pre-built HTML demo
test-many-tabs.yaml Test file with 7 scenarios for tab scrolling behavior
test-many-tabs.html Pre-built HTML demo
embed-example.html Example of embedding the player in an article page

Viewing the Demos

Open any .html file directly in your browser — no server required.

Example Descriptions

London Scam

Source: Facebook Fraud: A Transcript by Rakesh Pai

A social engineering awareness demo showing how attackers use compromised social media accounts to scam victims with the "stranded traveler" pretext.

Features demonstrated: Single scenario with linear flow, message steps with left/right participant roles, annotation steps for educational callouts, transition steps for scene breaks, custom annotationLabel.

IR Report Writing

Source: AI Can Help You Create Good Incident Response Reports by Lenny Zeltser

Three-part demo showing how AI can assist with incident response documentation:

  1. IR Report Creation — Gathering incident details for a BEC attack
  2. IR Report Review — Improving clarity and eliminating jargon
  3. Writing Coach — Executive summary structure and tone guidance

Features demonstrated: Multiple scenarios with tab navigation, autoAdvance for automatic scenario progression, codeBlock for report text, footnote for supplementary information.

Test Many Tabs

Development test file with 7 minimal scenarios to verify tab scrolling behavior when tabs exceed the available width. Useful for testing horizontal scroll, arrow navigation, and responsive behavior.

Features demonstrated: Many tabs with horizontal scrolling, arrow button navigation.

Embed Example

Standalone HTML page demonstrating how to embed a Conversation Replay player inside an article using an iframe. Mimics a typical blog post layout.

Features demonstrated: Iframe embedding, seamless integration with parent page styling.

Rebuilding the HTML Files

bun run src/cli.ts build examples/london-scam.yaml -o examples/london-scam.html
bun run src/cli.ts build examples/ir-report.yaml -o examples/ir-report.html
bun run src/cli.ts build examples/test-many-tabs.yaml -o examples/test-many-tabs.html

Note: embed-example.html is a static wrapper page that embeds test-many-tabs.html via iframe — no rebuild needed.

See the main README for the complete YAML schema reference.