// Function to fetch reviews and dynamically add them to the scroll container
function loadReviews() {
// Example of reviews array. Replace this with real data from your review page.
const reviews = [
"Excellent service, highly recommended!",
"Great experience, very professional staff.",
"I love the atmosphere here, the best dental care!",
"Amazing results, my teeth have never felt better!",
"The staff is very friendly and caring, will definitely return."
];
const reviewsContainer = document.querySelector('.reviews-scroll');
reviews.forEach(review => {
const reviewItem = document.createElement('div');
reviewItem.classList.add('review-item');
reviewItem.innerText = review;
reviewsContainer.appendChild(reviewItem);
});
}
// Call the function to load reviews
loadReviews();