48 lines
1.3 KiB
HTML
48 lines
1.3 KiB
HTML
<!DOCTYPE html>
|
|
<html lang="fr">
|
|
<head>
|
|
<meta charset="UTF-8">
|
|
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
|
<title>Camélianimes - Accueil</title>
|
|
<link rel="stylesheet" href="style.css">
|
|
</head>
|
|
<body>
|
|
|
|
<header>
|
|
<nav>
|
|
<a href="index.html">Accueil</a>
|
|
<a href="pages/infos.html">Description</a>
|
|
<a href="pages/liste.html">Liste</a>
|
|
<a href="pages/calendrier.html">Calendrier</a>
|
|
<a href="pages/credits.html">Crédits</a>
|
|
</nav>
|
|
</header>
|
|
|
|
<div class="home-background">
|
|
<div class="home-content">
|
|
<h1>Camélianimes</h1>
|
|
<p>Viens regarder avec nous, chaque lundi à 22h00, l'animé sélectionné !<br>
|
|
En ce moment c'est « BOFURI » (saison 2)</p>
|
|
</div>
|
|
</div>
|
|
|
|
<script>
|
|
let currentImageIndex = 0;
|
|
const images = [
|
|
'images/39372436_p0_master1200.jpg',
|
|
'images/60834799_p0_master1200.jpg',
|
|
'images/65751842_p0_master1200.jpg',
|
|
'images/70764381_p0_master1200.jpg'
|
|
];
|
|
|
|
function changeBackgroundImage() {
|
|
document.querySelector('.home-background').style.backgroundImage = `url(${images[currentImageIndex]})`;
|
|
currentImageIndex = (currentImageIndex + 1) % images.length;
|
|
}
|
|
|
|
setInterval(changeBackgroundImage, 5000);
|
|
window.onload = changeBackgroundImage;
|
|
</script>
|
|
|
|
</body>
|
|
</html> |