To utilize this widget effectively, you must configure it with the following options based on your requirements:
Try our code editor for our widget
Place this CDN script at the end of your HTML page's <head> section to install necessary dependencies.
<script src='https://www.reservhotel.com/airlink/smartwidget2021/vertical/js/rh-booking-vertical.js'>
Once you've configured the CDN, simply paste this HTML code wherever you'd like the widget to appear.
<div class="wrapper-rh-v">
<div class="widget-rh-v" id='widget-rh-v'>
</div>
</div>
Finally, import the widget within a script tag and define the desired options.
<script type="module">
import Vertical_BookingRH from 'https://www.reservhotel.com/airlink/smartwidget2021/vertical/js/index.js';
new Vertical_BookingRH({
tabs: {
HA:{
},
HO:{
}
}
})
</script>
You can configure these options within either "Hotel + Air" (HA) or "Hotel Only" (HO) settings. Certain options, such as "button" and "adults", are mandatory, while others are not.
Full live example as you can see at the right
new Vertical_BookingRH({
lang: "en",
tabs: {
HA: { //Hotel + Airport
airport: true,
checkinout: true,
children: true,
adults: true,
promocode: true,
agencygroup: true,
button: true,
openInNewTab: false,
hotels: { //Input type hidden will be set
"https://www.reservhotel.com/win/owa/ibe5.main?hotel=555": "MIAMI RESORT TEST",
"https://www.reservhotel.com/win/owa/ibe5.main?hotel=556": "THE GRAND AT MOON PALACE TEST",
}
},
HO: { //Hotel Only
airport: false,
checkinout: true,
children: true,
adults: true,
promocode: false,
agencygroup: false,
button: true,
openInNewTab: true,
hotels: { //A dropdown will be set
"https://www.reservhotel.com/win/owa/ibe5.main?hotel=555": "MIAMI RESORT TEST",
"https://www.reservhotel.com/win/owa/ibe5.main?hotel=556": "THE GRAND AT MOON PALACE TEST",
}
},
},
options: {
maxAdults: 2
}
});
Feel free to experiment with your preferred settings using the provided code editor for our widget.