You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

63 lines
2.5 KiB

<!DOCTYPE html>
<html lang="fr">
<head>
<meta charset="utf-8" />
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<link rel="stylesheet" href="style.css" />
<title>Site dinformation culturelles et sportives</title>
</head>
<body>
<h1>Site dinformation culturelles et sportives</h1>
<nav>
<ul class="nav-list">
<li class="nav-item"><a href="#">Nos newsletters</a></li>
<li class="nav-item"><a href="#">Accueil</a></li>
<li class="nav-item"><a href="#">A propos</a></li>
</ul>
</nav>
<p>Bonjour et bienvenu sur notre site,
Depuis cette page nous vous invitons à choisir les abonnements aux newsletter qui vous conviennent.</p>
<p>Rejoignez notre communauté (lien vers <a
href="https://www.instagram.com/s-et-c">https://www.instagram.com/s-et-c</a>)
nous écrire (liens vers <a href="contact@s-et-c.fr">contact@s-et-c.fr</a>)</p>
<div class="popup ">
<div class="close-btn">&times;</div>
<form method="get">
<h4>S'abonner à </h4>
<hr />
<input type="checkbox" name="sport" id="sport" /><label for="sport">sports et activités sportives</label>
<input type="radio" id="s_hebdo" name="sport_freq" value="hebdo" /><label for="s_hebdo">Hebdomadaire</label>
<input type="radio" id="s_daily" name="sport_freq" value="daily" /><label for="s_daily">Journalier</label>
<br />
<input type="checkbox" name="culture" id="culture" /><label for="culture">arts et cultures</label>
<input type="radio" id="c_hebdo" name="culture_freq" value="hebdo" /><label
for="c_hebdo">Hebdomadaire</label>
<input type="radio" id="c_daily" name="culture_freq" value="daily" /><label for="c_daily">Journalier</label>
<hr />
<input type="text" name="mail" placeholder="votre email" /><button type="submit">Enregistrer mon
abonnement</button>
</form>
</div>
</body>
<footer>
<h3>© S&C diffusion 2021</h3>
</footer>
</html>
<script>
document.getElementsByClassName("close-btn")[0].addEventListener("click", (e) => {
show_hide_form()
})
function show_hide_form(){
const CLASS_LIST = document.getElementsByClassName("popup")[0].classList
if(CLASS_LIST.contains("closed"))
CLASS_LIST.remove("closed")
else
CLASS_LIST.add("closed")
}
</script>