To add the Hospiria Booking Wizard to your site.
1. Include our API script in the <head> section of your site's HTML:
<script src="http://staging.hospiria.com/js/wizard-api.js"></script>2. Add your launch button wherever you want on the page. You can style the button any way you want, and use any id value. Just make sure you use the same id value in the launch script later on.
<button id="wizard-launch-button">Book Now</button>3. Add a script to the end of your page to hook up your button.
<script defer>
const apiKey = '46-c4a93a57baf75e854cf2c01e171877bf7e8138c077badcda899d463f6b78f98e';
const propertyId = 226; // replace with the id for the specific property
const hospiria = window.HospiriaApi.setup(apiKey);
hospiria.createBookingButton(document.getElementById('wizard-launch-button'), propertyId);
</script>