<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Mews Booking Engine Example</title>
    <style>
        body {
            font-family: Arial, sans-serif;
        }

        .distributor-open {
            display: inline-block;
            padding: 10px 20px;
            background-color: #4CAF50;
            color: white;
            border: none;
            border-radius: 5px;
            cursor: pointer;
        }
    </style>
    <script src="https://api.mews.com/distributor/distributor.min.js"></script>
    <!-- Mews BookingEngine -->
    <script>(function (m, e, w, s) {
            c = m.createElement(e); c.onload = function () {
                Mews.D.apply(null, s)
            }; c.async = 1; c.src = w; t = m.getElementsByTagName(e)[0]; t.parentNode.insertBefore(c, t);
        })
            (document, 'script', 'https://app.mews-demo.com/distributor/distributor.min.js', [['ca05f29a-758a-4252-9dbe-ab3a00b6eb83'], 'https://app.mews-demo.com']);</script>
    <!-- End Mews BookingEngine -->
</head>

<body>
    <button class="distributor-open">Book Now</button>
    <button class="distributor">Book Now2</button>

    <script>
        document.addEventListener("DOMContentLoaded", function () {
            Mews.Distributor({
                configurationIds: ['ca05f29a-758a-4252-9dbe-ab3a00b6eb83'],
                openElements: '.distributor-open'
            },
                function (api) {
                    // you can call API functions on a booking engine instance here
                    // set different start and end date
                    api.setStartDate(new Date(2022, 1, 1));
                    api.setEndDate(new Date(2022, 1, 3));
                });
        });
    </script>
</body>

</html>