forked from xMartin/aht-matatuviz
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex.html
71 lines (62 loc) · 2.24 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
62
63
64
65
66
67
68
69
70
71
<!DOCTYPE html>
<html>
<head>
<title>Mchat</title>
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<link href="css/bootstrap.min.css" rel="stylesheet" media="screen">
<link href="css/style.css" rel="stylesheet"></link>
</head>
<body>
<div class="container">
<div class="navbar navbar-inverse">
<a href="index.html" class="navbar-brand">Mchat</a>
</div>
<div id="matatu" class="row">
<div class="col-md-4">
<img src="images/matatu.jpg" class="img-rounded img-responsive">
</div>
<div class="col-md-8">
<h2>Matatu</h2>
<h4><a href="matatu.html">Rate a matatu <span class="glyphicon glyphicon-arrow-right"></span></a></h4>
</div>
</div>
<div id="taxi" class="row">
<div class="col-md-4">
<img src="images/taxi.jpg" class="img-rounded img-responsive">
</div>
<div class="col-md-8">
<h2>Taxi</h2>
<h4><a href="#">Rate a taxi <span class="glyphicon glyphicon-arrow-right"></span></a>
</h4> </div>
</div>
<div id="motorcycle" class="row">
<div class="col-md-4">
<img src="images/motorcycle.jpg" class="img-rounded img-responsive">
</div>
<div class="col-md-8">
<h2>Motorcycle</h2>
<h4><a href="#">Rate a motorcycle <span class="glyphicon glyphicon-arrow-right"></span></a></h4>
</div>
</div>
</div>
<!-- jQuery (necessary for Bootstrap's JavaScript plugins) -->
<script src="//code.jquery.com/jquery.js"></script>
<!-- Include all compiled plugins (below), or include individual files as needed -->
<script src="js/bootstrap.min.js"></script>
<!-- Load d3 visualization library -->
<script type="text/javascript" src="js/d3.v3.js"></script>
<script>
function draw(data) {
"use strict";
var chart = d3.select("body").append("div")
.attr("class", "chart");
chart.selectAll("div")
.data(data)
.enter().append("div")
.style("width", function(d) { return d * 10 + "px"; })
.text(function(d) { return d; });
}
d3.json('data/simple.json', draw);
</script>
</body>
</html>