-
Notifications
You must be signed in to change notification settings - Fork 3
/
index.html
209 lines (198 loc) · 8.54 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
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<meta name="description" content="Calculates the cost of a taxi ride in Cairo, Egypt">
<meta name="author" content="Mohammad Tayseer">
<title>My Taxi Ride</title>
<link href="http://netdna.bootstrapcdn.com/bootstrap/3.0.0/css/bootstrap.min.css" rel="stylesheet" type="text/css">
<link href="http://netdna.bootstrapcdn.com/font-awesome/3.2.1/css/font-awesome.min.css" rel="stylesheet" type="text/css">
<link href="http://cdn.leafletjs.com/leaflet-0.7.3/leaflet.css" rel="stylesheet" type="text/css">
<link href="http://leaflet.github.io/Leaflet.label/leaflet.label.css" rel="stylesheet" type="text/css">
<!--[if lte IE 8]>
<link href="http://cdn.leafletjs.com/leaflet-0.7/leaflet.ie.css" rel="stylesheet" type="text/css">
<link href="http://netdna.bootstrapcdn.com/font-awesome/3.2.1/css/font-awesome-ie7.min.css" rel="stylesheet">
<![endif]-->
<link rel="stylesheet" href="http://leaflet.github.io/Leaflet.draw/leaflet.draw.css" />
<!-- Custom styles for this template -->
<style>
html, body, #sidebar, #container {
height: 100%;
margin: 0px;
}
body {
padding-top: 50px;
}
label {
font-weight: normal;
}
#map {
height: 100%;
margin: 0px;
-webkit-box-shadow: 0 -1px 10px rgba(0,0,0,0.5);
-moz-box-shadow: 0 -1px 10px rgba(0,0,0,0.5);
box-shadow: 0 -1px 10px rgba(0,0,0,0.5);
}
#loading {
position: absolute;
width: 220px;
height: 19px;
top: 50%;
left: 50%;
margin: -10px 0 0 -110px;
z-index: 20001;
}
.navbar .navbar-brand {
font-weight: bold;
font-size: 22px;
color: white;
white-space: nowrap;
}
.tt-hint, .tt-query {
display: block;
width: 100%;
height: 34px;
padding: 6px 12px;
font-size: 14px;
border-radius: 4px;
}
.typeahead-header {
margin: 0 5px 5px 5px;
padding: 3px 0;
border-bottom: 1px solid #ccc;
}
.search-container {
width: 250px;
}
#searchbox {
-webkit-border-top-left-radius: 4px;
-webkit-border-bottom-left-radius: 4px;
-moz-border-top-left-radius: 4px;
-moz-border-bottom-left-radius: 4px;
border-top-left-radius: 4px;
border-bottom-left-radius: 4px;
}
.panel-heading a:hover {
text-decoration: none;
}
a.toggle {
position: fixed;
left: 0;
bottom: 0;
display: block;
-webkit-border-radius: 0 !important;
-moz-border-radius: 0 !important;
border-radius: 0 !important;
-webkit-border-top-right-radius: 4px !important;
-moz-border-top-right-radius: 4px !important;
border-top-right-radius: 4px !important;
-webkit-border-bottom-right-radius: 4px !important;
-moz-border-bottom-right-radius: 4px !important;
border-bottom-right-radius: 4px !important;
background-color: #222;
color: white;
opacity: 0.8;
z-index: 100;
}
a:hover.toggle {
background-color: #222;
color: white;
opacity: 1;
}
@media (max-width: 992px) {
.navbar .navbar-brand {
font-size: 18px;
float: left;
}
.search-container {
width: 150px;
}
.leaflet-control-attribution {
display: none;
}
}
@media (max-width: 768px){
.search-container {
width: 100%;
}
}
/* Print Handling */
@media print {
.navbar, .toggle, #sidebar {
display: none !important;
}
}
</style>
<!-- HTML5 shim and Respond.js IE8 support of HTML5 elements and media queries -->
<!--[if lt IE 9]>
<script src="//cdnjs.cloudflare.com/ajax/libs/html5shiv/3.6.2/html5shiv.js"></script>
<script src="//cdnjs.cloudflare.com/ajax/libs/respond.js/1.2.0/respond.js"></script>
<![endif]-->
</head>
<body>
<!-- Navigation -->
<div class="navbar navbar-inverse navbar-fixed-top">
<div class="navbar-header">
<button type="button" class="navbar-toggle" data-toggle="collapse" data-target=".navbar-collapse">
<span class="icon-bar"></span>
<span class="icon-bar"></span>
<span class="icon-bar"></span>
</button>
<a class="navbar-brand" href="#">My Taxi Ride</a>
</div>
<div class="navbar-collapse collapse">
<ul class="nav navbar-nav">
<li><a href="#" data-toggle="collapse" data-target=".navbar-collapse.in" onclick="$('#aboutModal').modal('show'); return false;"><i class="icon-question-sign" style="color: white"></i> About</a></li>
</ul>
</div>
</div>
<div class="row" id="container">
<!-- Sidebar -->
<div class="col-sm-3 col-lg-3" id="sidebar" style="padding: 10px; overflow: auto;">
<h2>My Taxi Ride</h2>
<p>Calculates the cost of a taxi ride in Cairo, Egypt</p>
<p>To specify the path, select the taxi path drawing tool (just under zoom buttons), click on the map to specify
points. Click multiple times to specify more points. Double-click to end the path. After you finish, hovering
on the path will tell you its length & how much it will cost you.
</p>
</div>
<!-- Map -->
<div class="col-sm-9 col-lg-9" id="map">
</div>
</div>
<!-- aboutModal -->
<div class="modal fade" id="aboutModal">
<div class="modal-dialog">
<div class="modal-content">
<div class="modal-header">
<button type="button" class="close" data-dismiss="modal" aria-hidden="true">×</button>
<h4 class="modal-title">My Taxi Ride</h4>
</div>
<div class="modal-body">
<ul id="aboutTabs" class="nav nav-tabs">
<li class="active"><a href="#about" data-toggle="tab"><i class="icon-question-sign"></i> About the project</a></li>
<li><a href="#disclaimer" data-toggle="tab"><i class="icon-exclamation-sign"></i> Disclaimer</a></li>
</ul>
<div id="aboutTabsContent" class="tab-content" style="padding-top: 10px;">
<div class="tab-pane fade active in" id="about">
<p>Calculates the cost of a taxi ride in Cairo, Egypt.</p>
<p>Made by <a href="http://mtayseer.net">Mohammad Tayseer</a>. Open Source (<a href="https://github.com/mtayseer/my-taxi-ride/blob/master/LICENSE">MIT License</a>) on <a href="https://github.com/mtayseer/my-taxi-ride">Github</a>. Uses <a href="https://github.com/bmcbride/bootleaf" target="_blank">BootLeaf</a> and <a href="http://leafletjs.com/" target="_blank">Leaflet</a>.</p>
</div>
<div class="tab-pane fade text-danger" id="disclaimer">
<p>The data provided on this site is for informational and planning purposes only.</p>
<p>Absolutely no accuracy or completeness guarantee is implied or intended. All information on this map is subject to such variations and corrections as might result from a complete title search and/or accurate field survey.</p>
</div>
</div>
</div>
</div>
</div>
</div>
<script src="http://code.jquery.com/jquery-1.10.2.min.js"></script>
<script src="http://netdna.bootstrapcdn.com/bootstrap/3.0.0/js/bootstrap.min.js"></script>
<script src="http://cdn.leafletjs.com/leaflet-0.7.3/leaflet.js"></script>
<script src="http://leaflet.github.io/Leaflet.draw/leaflet.draw.js"></script>
<script src="http://leaflet.github.io/Leaflet.label/leaflet.label.js"></script>
<script src="taxi-ride.js"></script>
</body>
</html>