<script src="https://static.anycreek.com/embed/widget.js"></script> <script> window.anycreek.init({ id: "flysandguides", showReviews: true, autoEmbedLinks: true, }); // Code for "Custom JavaScript" button document.addEventListener("DOMContentLoaded", function () { var links = document.querySelectorAll('a[href*="anycreekEmbed"]'); links.forEach(function (link) { link.addEventListener("click", function (event) { // Your click handler code goes here event.preventDefault(); // Prevents the default link behavior (e.g., navigating to a new page) window.anycreek.open(); }); }); }); </script>