-
Notifications
You must be signed in to change notification settings - Fork 1
/
index.html
61 lines (48 loc) · 1.3 KB
/
index.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
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
<title>What's open now?</title>
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<script src="http://code.jquery.com/jquery-2.0.3.min.js"></script>
<script src="http://cdnjs.cloudflare.com/ajax/libs/underscore.js/1.5.1/underscore-min.js"></script>
<script src="http://cdnjs.cloudflare.com/ajax/libs/d3/3.2.2/d3.v3.min.js"></script>
<script src="openhours.js"></script>
<style>
#ChartSVG {
border: 1px solid rgba(153,153,153, 0.5);
}
line.rule {
stroke: #ccc;
}
line.current-time {
stroke: #f00;
stroke-width: 3px;
}
rect.current-clickoverlay {
fill: rgba(255,255,0, 0.01);
cursor: pointer;
}
.x-axis text {
font: 12px sans-serif;
}
.x-axis path,
.x-axis line {
fill: none;
stroke: #000;
shape-rendering: crispEdges;
}
text.restaurant-names {
font: 10px sans-serif;
color: #666;
}
</style>
</head>
<body>
<div class="container">
<div id="ChartArea"></div>
</div>
<script src="openhours-d3.js"></script>
</body>
</html>