Boat and Yacht Rentals

${boat.condition}
`; } function renderBoatCard(boat) { return `
${boat.boat_name}

${boat.boat_name}

${boat.price} ${boat.tax}

${boat.condition}

${LABEL_YEAR}${boat.year}
${LABEL_LENGTH}${boat.length}m
${LABEL_LOCATION}${boat.vessel_lying}
`; } function applyPagination() { $('.newBoats').hide(); $('.newBoats[data-page="1"]').show(); $('.page-btn').off('click').on('click', function (e) { e.preventDefault(); const page = $(this).data('page'); $('.newBoats').hide(); $(`.newBoats[data-page="${page}"]`).show(); $('.page-btn').closest('span').removeClass('active'); $(this).closest('span').addClass('active'); let $scrollTarget = $(`.newBoats[data-page="${page}"]`).first(); if ($scrollTarget.length) { $('html, body').animate({ scrollTop: $scrollTarget.offset().top - 20 }, 400); } }); $('.page-btn[data-page="1"]').closest('span').addClass('active'); } $('.js-trigger-map-update').on('click', function (e) { e.preventDefault(); loadBoatsInView(); }); $('#form-bateaux-search').on('submit', function (e) { e.preventDefault(); loadBoatsInView(); }); $("#order_boat").on("change", function(e){ e.preventDefault(); loadBoatsInView(); }); $(".btnReinitialier").on("click", function(e){ e.preventDefault(); location.reload(); }); });