INTRODUCE YOUR BRAND

// Replace with your Hospitable API key and booking ID const apiKey = 'YOUR_API_KEY'; const bookingId = 'GUEST_BOOKING_ID'; //This would need to be passed to this webpage. const apiEndpoint = `YOUR_HOSPITABLE_API_ENDPOINT/${bookingId}`; async function getArrivalTime() { try { const response = await fetch(apiEndpoint, { headers: { 'Authorization': `Bearer ${apiKey}`, }, }); if (!response.ok) { throw new Error(`API request failed: ${response.status}`); } const data = await response.json(); // Assuming the API response has a field called "arrival_time" const arrivalTime = new Date(data.arrival_time); return arrivalTime; } catch (error) { console.error('Error fetching arrival time:', error); return null; } } async function startCountdown() { const arrivalTime = await getArrivalTime(); if (arrivalTime) { function updateCountdown() { const now = new Date(); const difference = arrivalTime - now; if (difference <= 0) { document.getElementById('countdown').textContent = 'Welcome!'; clearInterval(interval); return; } const days = Math.floor(difference / (1000 * 60 * 60 * 24)); const hours = Math.floor((difference % (1000 * 60 * 60 * 24)) / (1000 * 60 * 60)); const minutes = Math.floor((difference % (1000 * 60 * 60)) / (1000 * 60)); const seconds = Math.floor((difference % (1000 * 60)) / 1000); document.getElementById('countdown').textContent = `${days}d ${hours}h ${minutes}m ${seconds}s`; } updateCountdown(); // Initial update const interval = setInterval(updateCountdown, 1000); // Update every second } } startCountdown();

📍 Villa Izabel Location

Nearby Activities

In Villa Massage

In Villa Massage

Indulge in a relaxing massage performed by a skilled local therapist, all within the comfort and privacy of your villa. Unwind and rejuvenate with a personalized treatment designed to soothe your body and mind.

Enquire Now
Private Surf Lessons

Private Surf Lessons

Master the waves with personalized surf lessons from Aljezur's top instructors. Receive expert guidance tailored to your skill level, whether you're a beginner or looking to refine your technique. Experience the thrill of surfing in one of Portugal's most beautiful coastal locations.

Enquire Now
Hassle Free Car Hire

Hassle Free Car Hire

Enjoy a seamless start to your holiday with our pre-booked car hire service. Avoid long airport queues and step straight into your rental car, ready to explore the stunning landscapes of the Algarve. We handle the arrangements, so you can focus on enjoying your vacation from the moment you arrive.

Enquire Now

Aljezur Weather Forecast

Loading...