Embedding the widget
Each page shows one way to put the booking widget on a restaurant's site, live, next to the snippet to paste.
- Floating launcherOne script tag. The widget adds its own button to the bottom-right corner of every page.
- Launcher and page buttonsThe floating launcher stays, and buttons on the page open the same widget: by class name, or by calling NovelWidget.open() yourself.
- Page buttons onlyNo launcher. The widget stays out of sight until a button on the page opens it.
- Several restaurants on one siteOne script tag and no launcher. Each button opens the widget for its own restaurant by passing that restaurant's key to NovelWidget.open().
- InlineThe booking form sits in the page itself, in a container you choose, instead of a dialog.