Lokl embed lab
A test harness, not a product. It embeds the real Lokl booking embeds from a different website to test every view and the embed's security. Lokl: https://lokl-web.basharatusman-a.workers.dev, organization lokl-test-account.
The two hosts
embed-lab.allegco.com is on the organization's allowed websites: embeds render. embed-blocked.allegco.com never is: every embed becomes a plain Book link and Lokl records the website. Every page says which one you are on and what to expect.
Views
- Experience view: view=experience: one experience (Dinner, shared seating, Toronto), full page.
- List view: view=list: every experience with its times; second one filtered to two Toronto dinners.
- Upcoming view: view=upcoming: posters sorted by next time (default 5; second limited to 3 at Vancouver).
- Button view: view=button: one Book button (to the organization, and to one experience).
- Gift view: view=gift: gift certificate purchase (all locations, and Toronto only).
Button styles
- Button styles, in the page: Every style inline: solid, price, next, outline, gift.
- Floating button, 16 px: Floating pill in the bottom-right corner, offset 16 px.
- Floating button, 80 px: Floating pill in the bottom-right corner, offset 80 px.
- Floating button, 120 px: Floating pill in the bottom-right corner, offset 120 px.
- Floating button, 0 px: Floating pill in the bottom-right corner, offset 0 px.
- Floating button, 200 px: Floating pill in the bottom-right corner, offset 200 px.
- Floating gift button: Floating gift certificate pill (style=gift, position=floating).
- Two floating buttons: Only one floating button per page: the second is ignored.
Theme
- Dark theme on a dark site: Dark host background with theme=dark buttons (a light button for dark sites).
- Light theme on a light site: Light host background with the default (light) theme.
Corners
- Corners: square, soft and round corners, on a button and an Up next card.
Combined
- Several embeds, one script: List, upcoming, buttons, gift and a floating button together; widget.js included once.
Strict CSP
- Strict CSP, without the connect/frame guidance: Page with its own strict CSP that allows the loader script but not connect-src / frame-src.
- Strict CSP, with the connect/frame guidance applied: Same strict CSP plus connect-src and frame-src for the Lokl origin: works as normal.