-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathtemplate.html
40 lines (40 loc) · 1.52 KB
/
template.html
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
<html>
<head>
<title>Untis 2024 Vertretungsplan</title>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
<meta http-equiv="expires" content="0">
<meta http-equiv="refresh" content="360">
<link rel="stylesheet" href="style.css">
<!-- Include jQuery -->
<link rel="stylesheet" type="text/css" href="jquery.dataTables.min.css">
<link rel="stylesheet" type="text/css" href="scroller.dataTables.min.css">
</head>
<body>
<div class="message-div">
<p class="message">Nachricht des Tages: </p>
<p class="message" id="date-time"></p>
</div>
<div class="main-div">
<script src="script.js"></script>
<script src="jquery-3.5.1.js"></script>
<script src="jquery.dataTables.min.js"></script>
<script src="dataTables.scroller.min.js"></script>
</div>
<script src="script.js"></script>
<script src="jquery-3.5.1.js"></script>
<script src="jquery.dataTables.min.js"></script>
<script src="dataTables.scroller.min.js"></script>
<!-- script for the clock -->
<script>
// Display current date and time
function displayDateTime() {
const now = new Date();
const options = { weekday: 'long', year: 'numeric', month: 'long', day: 'numeric', hour: '2-digit', minute: '2-digit', second: '2-digit' };
const dateTimeString = now.toLocaleDateString('de-DE', options);
document.getElementById('date-time').innerText = dateTimeString;
}
displayDateTime(); // Initial display
setInterval(displayDateTime, 1000); // Update every second
</script>
</body>
</html>