Generate a ready-to-use code snippet to add the reservation widget to any website.
Used throughout the reservation form.
Optional color for the floating Reserve button. Defaults to the accent color.
Enter your website URL to see the floating widget injected into a safe preview copy.
Add this script tag to your site's header or footer (e.g. a "custom code" or "tracking scripts" setting). The widget mounts itself — a floating reservation button appears in the bottom-right corner.
<script
src="https://reservier.at/widget/v1/widget.js"
data-business-id="demo"
data-locale="de"
data-primary-color="#4f46e5"
></script>These attributes configure the widget and script embeds. On the script-only snippet, prefix each name with data-.
| Attribute | Type | Description |
|---|---|---|
| business-id | string | Your public business identifier. Required. |
| locale | string | Initial language: de, en, fr, it, or ru. |
| primary-color | string | Accent color used throughout the reservation form. |
| button-color | string | Color of the floating Reserve button. If omitted, the button uses primary-color. |
button-color applies to the widget and script embeds only — the iframe has no floating button.
window.ReservierThe widget script installs a global Reservier object. Use it to open or close the reservation panel from your own buttons, menus, or application code.
| Method | Call | Description |
|---|---|---|
| open(options?) | Reservier.open({ locale }) | Opens the reservation panel. You can pass an options object with locale to set the language. Safe to call when the panel is already open. |
| close() | Reservier.close() | Closes the reservation panel. |
| openCoupons(options?) | Reservier.openCoupons({ locale }) | Opens the gift-voucher panel if coupon sales are enabled. Accepts the same options as open(). |
| Option | Type | Description |
|---|---|---|
| locale | string | Optional UI language: de, en, fr, it, or ru. If omitted, the widget keeps its current language. Unknown values fall back to an enabled language. |
All methods return void.
No JavaScript required: any element with open-widget="reservier.at" or open-widget="reservier.net" opens the panel.
<button type="button" open-widget="reservier.at">
Reserve now
</button>If you used the <reservier-widget> tag, the same methods are also available on the element after it upgrades.
const widget = document.querySelector('reservier-widget');
widget?.open({ locale: 'de' });
widget?.close();
widget?.openCoupons();<button type="button" id="book-table">
Reserve now
</button>
<script>
document.getElementById('book-table').addEventListener('click', function () {
window.Reservier.open({ locale: 'de' });
});
</script>interface ReservierOpenOptions {
locale?: string;
}
interface ReservierApi {
open: (options?: ReservierOpenOptions) => void;
close: () => void;
openCoupons: (options?: ReservierOpenOptions) => void;
}
declare global {
interface Window {
Reservier: ReservierApi;
}
}We use essential cookies for the website to function properly. With your consent, we also use analytics cookies to improve your experience. Privacy Policy