-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathindex.html
More file actions
44 lines (40 loc) · 1.17 KB
/
index.html
File metadata and controls
44 lines (40 loc) · 1.17 KB
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
41
42
43
44
<html>
<head>
<meta charset="UTF-8">
<link rel="stylesheet" href="https://fonts.googleapis.com/css?family=Montserrat">
<style>
body, html {
height: 100%;
margin: 0;
display: flex;
justify-content: center;
align-items: center;
flex-direction: column;
background-color: rgb(0, 106, 179);
color: white;
font-family: "Avenir", sans-serif;
font-size: 100px;
font-weight: bold;
}
#texter {
font-family: "Avenir", sans-serif;
font-size: 20px;
margin-top: 20px;
}
</style>
</head>
<body>
<div id="counter">5000000000</div>
<div id="texter">Järfällas kommunskuld</div>
<script>
let count = 5000000000 + 34.8 * (Date.now()/1000 - 1712159102);
const rate = 1; // Increment rate
const counterElement = document.getElementById("counter");
function updateCounter() {
count += rate;
counterElement.innerText = count.toFixed(0) + " kr";
}
setInterval(updateCounter, 1000/34.8);
</script>
</body>
</html>