Calculator Tools Calculator Tools
Create

Real Madrid vs Osasuna - La Liga Match Hub

Aug 19, 2025

About this app

Detailed statistics for the La Liga match between Real Madrid and Osasuna including scores, yellow cards, corners, and betting odds.

Real Madrid vs Osasuna - La Liga Match Hub Match Preview: Real Madrid vs Osasuna La Liga, 19/08

Related apps

Put this on your site

Source

                    <html>
<head>
<meta charset="utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width,initial-scale=1">

<title>Real Madrid vs Osasuna - La Liga Match Hub</title>
<meta name="description" content="Detailed statistics for the La Liga match between Real Madrid and Osasuna including scores, yellow cards, corners, and betting odds.">
<meta name="keywords" content="Real Madrid, Osasuna, La Liga, football statistics, betting odds, match insights, scores, player statistics">

<!-- Libraries -->
<script src="https://ajax.googleapis.com/ajax/libs/jquery/3.6.0/jquery.min.js" crossorigin="anonymous"></script>
<link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/bootstrap@5.3.3/dist/css/bootstrap.min.css" crossorigin="anonymous">
<script src="https://cdn.jsdelivr.net/npm/bootstrap@5.3.3/dist/js/bootstrap.min.js" crossorigin="anonymous"></script>
<link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/@fortawesome/fontawesome-free@6.6.0/css/fontawesome.min.css" crossorigin="anonymous">

<script type="text/javascript">
try {
// This will run when the DOM is ready.
document.addEventListener("DOMContentLoaded", function() {
const toggleCollapse = (id) => {
$("#" + id).collapse('toggle');
};

const createStatToggle = (title, index) => {
return `
<div class="card">
<div class="card-header" id="heading${index}">
<h2 class="mb-0">
<button class="btn btn-link" data-toggle="collapse" data-target="#collapse${index}" aria-expanded="true" aria-controls="collapse${index}" onclick="toggleCollapse('${"collapse" + index}')">
${title}
</button>
</h2>
</div>
<div id="collapse${index}" class="collapse" aria-labelledby="heading${index}" data-parent="#accordionExample">
<div class="card-body">
<ul>
<li><strong>1ère mi-temps:</strong> <span id="stat${index}1"></span></li>
<li><strong>2ème mi-temps:</strong> <span id="stat${index}2"></span></li>
</ul>
</div>
</div>
</div>`;
};

const sections = [
"Corners",
"Cartons jaunes",
"Tirs Cadrés",
"Hors-jeu",
"Fautes",
"Poteaux",
"Remplacements"
];

let statsHtml = "";
sections.forEach((section, index) => {
statsHtml += createStatToggle(section, index);
});

$("#match-stats").html(statsHtml);

// Example statistics insertion
for (let i = 0; i < sections.length; i++) {
$("#stat" + i + "1").text("2");
$("#stat" + i + "2").text("3");
}
});

} catch (error) {
throw error;
}
</script>

<style>
body {
background: linear-gradient(120deg, #84fab0, #8fd3f4);
color: #333;
font-family: 'Arial', sans-serif;
}
.container {
margin-top: 2rem;
}
.card-header {
background: #ff795d;
color: white;
}
.btn-link {
color: white;
}
.card {
margin: 0.5rem 0;
transition: transform 0.3s;
}
.card:hover {
transform: scale(1.02);
}
#menu {
margin-bottom: 1rem;
}
</style>
</head>
<body>
<div id="main-container" class="container">
<h1 class="text-center">Match Preview: Real Madrid vs Osasuna</h1>
<h5 class="text-center">La Liga, 19/08</h5>
<div id="match-stats">
<div class="accordion" id="accordionExample">
</div>
</div>
</div>
</body>
</html>