Injured during the Ireland-France meeting in Dublin on Saturday, the world star of rugby Antoine Dupont announced on Sunday suffering from a breakdown of the crossed ligaments. This injury will keep him away from the field for “a few months”, while the Blues will play the final victory in the tournament next week against Scotland.
Credit-Read More
// Function to fetch the latest posts
function fetchLatestPosts() {
const feedUrl = ‘https://newskiosk.pro/feed/’; // Replace with your blog’s RSS feed URL
fetch(feedUrl)
.then(response => response.text())
.then(str => new window.DOMParser().parseFromString(str, “text/xml”))
.then(data => {
const items = Array.from(data.querySelectorAll(“item”));
const latestPostsContainer = document.getElementById(“latest-posts”);
latestPostsContainer.innerHTML = ”; // Clear previous posts
// Shuffle the items array
const shuffledItems = items.sort(() => Math.random() – 0.5);
// Select the first 5 items from the shuffled array
const selectedItems = shuffledItems.slice(0, 5);
Random Latest Posts Display // Loop through the selected items and display them
selectedItems.forEach(post => {
const link = post.querySelector(“link”).textContent;
const description = post.querySelector(“description”).textContent;
// Create a new post element
const postElement = document.createElement(“div”);
postElement.classList.add(“latest-post”);
postElement.innerHTML = `
${description} Read more
`;
// Append the new post element to the container
latestPostsContainer.appendChild(postElement);
});
})
.catch(error => console.error(‘Error fetching the latest posts:’, error));
}
// Call the function to fetch and display the latest posts
fetchLatestPosts();