Files

61 lines
1.1 KiB
HTML
Raw Permalink Normal View History

2026-06-04 18:57:15 +02:00
<!DOCTYPE html>
<html lang="fr">
<head>
<meta charset="UTF-8">
<title>Container Info</title>
<style>
body {
font-family: Arial, sans-serif;
display: flex;
flex-direction: column;
align-items: center;
justify-content: center;
height: 100vh;
margin: 0;
background-color: #f0f2f5;
}
.container {
text-align: center;
padding: 20px;
background-color: white;
border-radius: 8px;
box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}
h1 {
color: #2496ed;
margin-bottom: 20px;
}
h2 {
color: #384c54;
}
</style>
</head>
<body>
<div class="container">
<h1>Container: web1</h1>
<h2>Date et heure: <span id="datetime"></span></h2>
</div>
<script>
function updateDateTime() {
const now = new Date();
const options = {
weekday: 'long',
year: 'numeric',
month: 'long',
day: 'numeric',
hour: '2-digit',
minute: '2-digit',
second: '2-digit',
hour12: false
};
document.getElementById('datetime').textContent =
now.toLocaleDateString('fr-FR', options);
}
// Mise à jour initiale
updateDateTime();
// Mise à jour toutes les secondes
setInterval(updateDateTime, 1000);
</script>
</body>
</html>