Book Now
From
Duration
Tour Type
Explore Tours
“`html
Jebel Hotel Buloba
Book your stay with us
function sendBooking(event) {
event.preventDefault();
var roomSelect = document.getElementById("room"); var room = roomSelect.value; var price = roomSelect.options[roomSelect.selectedIndex].getAttribute("data-price");
var checkin = document.getElementById("checkin").value; var checkout = document.getElementById("checkout").value; var guests = document.getElementById("guests").value; var name = document.getElementById("name").value; var country = document.getElementById("country").value; var phone = document.getElementById("phone").value; var email = document.getElementById("email").value;
var startDate = new Date(checkin); var endDate = new Date(checkout);
var difference = endDate - startDate;
var nights = Math.ceil( difference / (1000 * 60 * 60 * 24) );
if (nights <= 0) {
alert("Please select a valid check-out date after your check-in date.");
return;
}
var total = nights * Number(price);
var subject =
"New Booking Request - Jebel Hotel Buloba";
var body =
"NEW BOOKING REQUEST - JEBEL HOTEL BULOBA\n\n" +
"ROOM DETAILS\n" +
"Room: " + room + "\n" +
"Rate: $" + price + " per night\n" +
"Number of Nights: " + nights + "\n" +
"Estimated Total: $" + total + "\n\n" +
"STAY DETAILS\n" +
"Check-in: " + checkin + "\n" +
"Check-out: " + checkout + "\n" +
"Number of Guests: " + guests + "\n\n" +
"GUEST DETAILS\n" +
"Guest Name: " + name + "\n" +
"Country: " + country + "\n" +
"Phone No.: " + phone + "\n" +
"Email: " + email + "\n\n" +
"Please contact the guest to confirm availability and the reservation.";
window.location.href =
"mailto:jebelhotelbuloba@yahoo.com" +
"?subject=" +
encodeURIComponent(subject) +
"&body=" +
encodeURIComponent(body);
}
```