-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathkleinohedron.html
More file actions
31 lines (29 loc) · 859 Bytes
/
kleinohedron.html
File metadata and controls
31 lines (29 loc) · 859 Bytes
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
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<title>Kleinohedron animation</title>
<link rel="stylesheet" href="style.css">
<script src="kleinohedron.js"></script>
<style>
body {
box-sizing: border-box;
padding-left: 10vw;
padding-top: 15vw;
}
</style>
<script>
"use strict";
window.addEventListener('DOMContentLoaded', function() {
const now = new Date();
kleinohedron_set(document.body, now.getDay() * 24 + now.getHours());
window.setInterval(function() {
const value = parseInt(document.querySelector('.kleinohedron').getAttribute('value'));
kleinohedron_set(document.body, (value + 1) % 168);
}, 6000);
});
</script>
</head>
<body>
</body>
</html>