<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Таймер</title>
<style>
#timer {
position: fixed;
right: 10px;
bottom: 10px;
background: #000;
color: #fff;
padding: 10px;
border-radius: 5px;
}
</style>
</head>
<body>
<div id="timer"></div>
<script>
function updateTimer() {
const currentTime = new Date();
const hours = currentTime.getHours().toString().padStart(2, '0');
const minutes = currentTime.getMinutes().toString().padStart(2, '0');
const seconds = currentTime.getSeconds().toString().padStart(2, '0');
document.getElementById('timer').innerHTML = `${hours}:${minutes}:${seconds}`;
}
setInterval(updateTimer, 1000); // обновляем каждую секунду
</script>
</body>
</html>