-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathindex.html
More file actions
56 lines (56 loc) · 1.21 KB
/
index.html
File metadata and controls
56 lines (56 loc) · 1.21 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
<html>
<head>
</head>
<body>
<style>
body {
font-family: monospace;
}
#viz-table {
width: 100%;
max-width: 600px;
border-spacing: 0;
text-align:right;
}
#viz-table tr:nth-child(odd) {
background-color: #f5f5f5;
}
#viz-table tr {
line-height: 2.4em;
}
#viz-table td {
padding: 0 10px;
border-left: 1px solid #ddd;
}
#viz-table td svg {
width: 100%;
height: 10px;
}
#controls {
padding: 12px;
}
#controls button {
background: #606;
border-radius: 6px;
border-width: 0;
color: #fff;
font-size: 12px;
padding: 6px 10px;
text-decoration: none;
}
#controls button:hover {
background: #606;
text-decoration: none;
cursor: pointer;
}
</style>
<script src="https://d3js.org/d3.v4.min.js"></script>
<script src="index.js"></script>
<div id="controls">
<button data-sort="highest">highest score</button>
<button data-sort="lowest">lowest score</button>
</div>
<table id="viz-table">
</table>
</body>
</html>