Hole 11

Hole 11

window.chronogolfSettings = { "clubId" : 5903, "locale" : "en-US" }; // Optional window.chronogolfTheme = { "color" : "#3a4b33" }; !function(d,i){if(!d.getElementById(i)){var s=d.createElement("script"); s.id=i,s.src="https://cdn2.chronogolf.com/widgets/v2"; var r=d.getElementsByTagName("script")[0]; r.parentNode.insertBefore(s,r)}}(document,"chronogolf-js"); // Function to get URL parameters function getUrlParam(param) { const urlParams = new URLSearchParams(window.location.search); return urlParams.get(param); } // Function to trigger the widget function triggerBookingWidget() { const bookingButton = document.querySelector('.chrono-bookingbutton-open'); if (bookingButton) { bookingButton.click(); } } // Check if the "showwidget" parameter is present in the URL and has a value of "true" const showWidgetParam = getUrlParam('showwidget'); if (showWidgetParam === 'true') { // Trigger the widget after a slight delay (adjust the delay as needed) setTimeout(triggerBookingWidget, 500); }