Add a booking button:
- jQuery library is needed so a reference should be added (if jQuery is already added, there's no need to add it again).
- Add Flow script containing widget actions.
- Add booking button on your website. It should call “startBooking” function replacing 'user' and 'token' with your Flow username and backend generated token.
- The language can also be set: "en","fr","es","ca". By default the account language is used.
Code example:
<!— 1 —>
<script src="https://ajax.googleapis.com/ajax/libs/jquery/2.2.2/jquery.min.js"></script>
<!— 2 —>
<script src="https://revoflow.works/js/flow_widget_latest.js"></script>
<!— 3 —>
<button onclick="startBooking('user','token','en')">Start booking</button>
Add an iFrame inside website:
<iframe id="booking_iframe" src="https://revoflow.works/booking/widget/{usuario}/{token}?lang=en" allowtransparency="true" style="position:fixed; top:0px; left:0px; width:340px; height:700px; z-index:99999;" frameborder="no"></iframe>