Widgets.js

Widgets.js is a nifty library of tools that allows you to easily incorporate TravelDuck into your web pages.

With just a few lines of code you can display the availability and pricing of your properties in a range of views and calendars.
Widget.js also provides a comprehensive online booking widget for your properties. Your guests can instantly obtain booking quotes for their enquiries and effortlessly proceed to online booking and payment.

The only import you'll ever need...

<script>
  (function(src) {
    var td = document.createElement("script");
    td.type="text/javascript";td.async=1;td.src=src;
    var s = document.getElementsByTagName("script")[0];
    s.parentNode.insertBefore(td,s);
  })("https://travelduck.co/libraries/widgets/loader.js");
</script>

Widget.js works by dynamically loading all dependencies that it requires into your webpage. This means as Widget.js is extended and improved in the future your webpage will automatically load the newest version available.


Getting started

Adding TravelDuck widgets to your site is a simple one-time installation. Once installed, you can update your displayed availability and pricing whenever you need to without making any change to your website.

Learn how to add the online booking widget to your website.

Learn how to add availability calendars to your website.


Using WordPress? Get the WordPress Plugin for your website.