Embed the bridge in another site
You can put the bridge inside the page of another site. The app has a builder that writes the address for you. You paste that address into a frame on your site.
Open the builder
On a bridge page, a round button with a cog sits in the bottom left corner of the window. It has no visible text. A screen reader announces it as "Build an embed link". Press it. The builder opens with the route you were on, and with "Embed" chosen and the builder removed from the link.
The button does not show on the welcome page, on the builder itself, or on a page that is already embedded. It also does not show when the address holds settings=disabled.
What you see
The builder is a page with the title "The embed link". The left side holds the choices. The right side holds a live preview of the page that your link opens.
The choices are:
- "Choose what the link opens". The "In" row holds the chain, the token and the amount you send. The "Out" row holds the chain and the token you receive. The "Out" row says "Quoted when the reader opens it". The reader gets the quote, not you.
- "How the page is dressed". It holds "Chrome", "Transfers tracker", "Theme" and "Language".
- "This builder". It holds a sentence that reads "The link keeps this builder on the page." Press the word "keeps" to change it to "removes".
Under the choices, the strip "The link" shows the finished address. A button named "Copy the embed link" copies it. A second button named "Open the embed link in a new tab" opens it.
The preview has its own "Preview width" and "Preview height" choices. Check a narrow width, because a wide preview hides problems.
What to do
- Pick the chains and tokens in "In" and "Out".
- Type an amount in "In" if you want the form to open with one.
- Choose "Chrome", "Transfers tracker", "Theme" and "Language".
- Check the preview at each width.
- Press "Copy the embed link" and paste the address into a frame on your site.
What each choice means
Chrome sets how much of the app surrounds the form.
The "Banner" choice writes a different address. It points to the banner page of the app, not to the bridge. The banner page never starts the bridge. It carries only the theme and the language. A hand-written bridge link can also use mode=mini. That mode fits slots as small as 800 pixels wide and 100 pixels high. The builder turns an old mini link into "Banner".
Transfers tracker sets whether the list of transfers shows. This choice is the history parameter.
"Hide" holds for the whole session, not only until the reader makes a first transfer.
Theme sets the colours. "The reader's own" leaves the choice to the reader. "Light" and "Dark" pin the theme with theme=light or theme=dark. A pinned theme lets the embed match the page around it. It changes colours and nothing else. The reader cannot change a pinned theme with the theme button, and the pin does not enter their saved choice.
Language sets the language folder of the address. The button opens a window named "Choose the language the link opens in". The choice starts as the language you read now. See Change the language.
This builder sets the settings parameter. "keeps" leaves the builder button on the page. "removes" writes settings=disabled, and the page then shows no builder button.
The address the builder writes
The address has the form of a route, plus the choices as parameters. These are the parameters:
The builder writes only the parameters that you changed. See Share a link to a route for the route part.
If something goes wrong
- If the "In" and "Out" rows move to a different pair, the builder says that the pair cannot move money. It moved to a pair that can.
- If the amount disappears after you change the token you send, this is by design. An amount belongs to the token it was typed for.
- To test the finished address, press "Open the embed link in a new tab".