Skip to content

Instantly share code, notes, and snippets.

document.addEventListener('DOMContentLoaded', function() {
document.addEventListener('click', function(event) {
var link = event.target.closest('a');
if (link) {
var url = link.getAttribute('href');
if (url === '/new-years-eve-boat-hire/' || url === '/new-years-eve-boat-hire') {
event.stopImmediatePropagation();
event.preventDefault();
window.location.href = url;
}