mirror of
https://github.com/cram-naej/cram-naej.github.io.git
synced 2026-06-01 10:52:19 +00:00
ajout lien
This commit is contained in:
@@ -2,11 +2,16 @@
|
||||
<html lang="fr">
|
||||
<head>
|
||||
<meta charset="utf-8">
|
||||
<title>Titre de la page</title>
|
||||
<title>info bateau</title>
|
||||
<link rel="stylesheet" href="style.css">
|
||||
<script src="script.js"></script>
|
||||
<script src="js/script.js"></script>
|
||||
</head>
|
||||
<body>
|
||||
<script src="https://fr.windfinder.com/widget/forecast/js/saint_malo?unit_wave=m&unit_rain=mm&unit_temperature=c&unit_wind=kts&unit_pressure=hPa&days=4&show_day=1"></script><noscript><a rel="nofollow" href="https://www.windfinder.com/forecast/saint_malo?utm_source=forecast&utm_medium=web&utm_campaign=homepageweather&utm_content=noscript-forecast">Wind forecast for Saint-Malo</a> provided by <a rel="nofollow" href="https://www.windfinder.com?utm_source=forecast&utm_medium=web&utm_campaign=homepageweather&utm_content=noscript-logo">windfinder.com</a></noscript>
|
||||
<ul>
|
||||
<li><a href=https://www.edf.fr/usine-maremotrice-rance/marees-en-rance> usine maremotrice </a></li>
|
||||
<li><a href=https://canaux.bretagne.bzh/actualites/consulter-les-horaires-de-lecluse-du-chatelier/>l ecluse du chatelier</a></li>
|
||||
<li><a href=https://www.windy.com/?48.625,-1.571,9>meteo</a></li>
|
||||
</ul>
|
||||
</body>
|
||||
</html>
|
||||
|
||||
15
js/script.js
Normal file
15
js/script.js
Normal file
@@ -0,0 +1,15 @@
|
||||
const request = new XMLHttpRequest();
|
||||
|
||||
try {
|
||||
function reqListener() {
|
||||
console.log(this.responseText);
|
||||
}
|
||||
|
||||
const req = new XMLHttpRequest();
|
||||
req.addEventListener("load", reqListener);
|
||||
req.open("GET", "https://canaux.bretagne.bzh/actualites/consulter-les-horaires-de-lecluse-du-chatelier/");
|
||||
req.send();
|
||||
|
||||
} catch (error) {
|
||||
console.error(`Erreur XHR ${request.status}`);
|
||||
}
|
||||
Reference in New Issue
Block a user