-
Notifications
You must be signed in to change notification settings - Fork 1
/
index.html
178 lines (150 loc) · 4.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
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
<!DOCTYPE html>
<html>
<head>
<title>Restaurant Hunter</title>
<link rel="stylesheet" href="./leaflet-0.8-dev/leaflet.css" />
<link href="./font-awesome-4.3.0/css/font-awesome.css" rel="stylesheet">
<script src="./leaflet-0.8-dev/leaflet.js"></script>
<script src="./d3.min.js" charset="utf-8"></script>
<script src="./plot_map.js"></script>
<script src="./plot_review.js"></script>
<script src="./easy-button.js"></script>
<style>
#container_left {
width: 800px;
height: 530px;
float: left;
}
#container_right {
width: 450px;
height: 530px;
float: left;
}
#container_bottom_left {
width: 800px;
height: 100px;
float: left;
}
#container_bottom_right {
width: 450px;
height: 100px;
float: left;
}
#map {
height: 530px;
width: 800px;
}
#usage {
font-family: "Times New Roman", Times, serif;
font-size: 12px;
}
.axises path{
fill: none;
stroke: black;
stroke-width: 1;
}
.axises line {
fill: black;
stroke: black;
stroke-width: 1;
}
.res_detail{
background-color: #f0f0f0;
}
.historyPlot {
background-color: #f0f0f0;
}
.introduction {
background-color: #636363;
}
body {
background-color: #f0f0f0;
}
table {
border-spacing: 10px;
}
th {
text-align: right;
font-family: Palatino Linotype;
font-size: 14px;
}
td {
text-align: center;
font-family: Verdana;
font-size: 12px;
color: DarkBlue;
}
text {
font-family: "Times New Roman", Times, serif;
font-size: 14px;
}
circle {
stroke: black;
fill: #c51b8a;
}
circle.hidden {
opacity: 0.1;
}
.brush .extent {
fill-opacity: .1;
stroke: #fff;
shape-rendering: crispEdges;
}
</style>
</head>
<body>
<div id="container_left">
<!--map-->
<div id="map"></div>
</div>
<div id="container_right">
<div style="margin-left:30px" width = "440" height = "150">
<h3>Restaurant Hunter</h3>
<p id="usage">
Usages: </br>
[shift + mouse] to select an area in the map and the scatter plots </br>
[single click] on marker or scatter plot to select individual restaurant
</p>
<hr>
</div>
<!--Average rating/weighted rating scatter plot-->
<svg id="scatter" width="500" height="400">
<text x="350" y="360">Weighted Rating</text>
<text x="130" y="20">Average Rating </text>
</svg>
</div>
<div id="container_bottom_left">
<!--review histroy plot-->
<svg id="historyPlot" width="800" height="200"></svg>
<!--Restaurant detail information-->
</div>
<div id="container_bottom_right" >
<table style="margin-left:30px">
<tr>
<th> Restaurant Name: </th>
<td id="name"></td>
</tr>
<tr>
<th> Weighted Rating: </th>
<td id="weiRating"></td>
</tr>
<tr>
<th> Average Rating: </th>
<td id="aveRating"></td>
</tr>
<tr>
<th> # of Rating: </th>
<td id="numRating"></td>
<tr>
<th> First Rating: </th>
<td id="firRating"></td>
</tr>
<tr>
<th> Last Rating: </th>
<td id="lasRating"></td>
</tr>
</tr>
</table>
</div>
</body>
</html>