top of page
Kristina Schafer
Read our booking and cancellation policies here.
bottom of page
const createStyle = () => {
const styleElement = document.createElement('style');
styleElement.innerHTML = `
sbiz-custom-olb-gift-card-button {
border-radius: 12px;
box-shadow: 0px 24px 48px rgb(2 51 40 / 20%);
background: #083454;
min-height: 52px !important;
width: auto !important;
}
`;
return styleElement;
};
const createButton = () => {
const buttonElement = document.createElement('button');
buttonElement.id = 'sbiz-olb-gift-card-button';
buttonElement.textContent = 'Buy a gift card';
buttonElement.classList.add('sbiz-olb-button', 'olb-bgcolor-primary');
buttonElement.style.cursor ='pointer';
buttonElement.onclick = function () {
openContainer('widget/#/booking/purchase-gift-card?comToken=c1073t201312121248pp6a4C373VZy5N964Wt4P');
}
return buttonElement;
};
class SbizCustomOlbGiftCardButton extends HTMLElement {
constructor() {
super();
}
connectedCallback() {
this.appendChild(createStyle());
this.appendChild(createButton());
}
}
customElements.define('sbiz-custom-olb-gift-card-button', SbizCustomOlbGiftCardButton);