-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathindex.html
More file actions
57 lines (48 loc) · 1.13 KB
/
index.html
File metadata and controls
57 lines (48 loc) · 1.13 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
45
46
47
48
49
50
51
52
53
54
55
56
57
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<link rel="icon" href="data:,">
<title>Heatmap</title>
</head>
<style>
html,
body {
height: 100%;
}
body {
margin: 0;
position: relative;
}
.help {
position: absolute;
z-index: 0;
top: 50%;
left: 50%;
margin-right: -50%;
transform: translate(-50%, -50%);
color: black;
user-select: none;
}
.display {
position: absolute;
z-index: 1;
width: 100%;
height: 100%;
}
.source-link {
position: absolute;
right: 2px;
bottom: 2px;
z-index: 2;
}
</style>
<body>
<h1 class="help">Hold down the left mouse button while moving</h1>
<canvas class="display" id="display"></canvas>
<a class="source-link" href="https://github.com/doklem/heatmap" target="_blank">Source</a>
</body>
<script src="dist/main.min.js" type="module"></script>
</html>