-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.html
143 lines (97 loc) · 6.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
<!DOCTYPE html>
<html>
<head>
<title>Rick and Shorty</title>
<meta charset="utf-8" />
<!-- META TAGS FOR WEBS APPS -->
<meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1, user-scalable=no">
<meta name="mobile-web-app-capable" content="yes">
<meta name="apple-mobile-web-app-capable" content="yes">
<meta name="apple-mobile-web-app-status-bar-style" content="black-translucent">
<link rel="apple-touch-icon" href="assets/auto.png">
<!-- TAGS END -->
<link rel="shortcut icon" type="image/x-icon" href="assets/auto.png" />
<!-- CSS START -->
<link rel="stylesheet" href="vendor/bootstrap/css/simple-sidebar.css">
<link rel="stylesheet" href="https://use.fontawesome.com/releases/v5.7.2/css/all.css" integrity="sha384-fnmOCqbTlWIlj8LyTjo7mOUStjsKC4pOpQbqyi7RrhN7udi9RwhKkMHpvLbHG9Sr" crossorigin="anonymous">
<link href="https://stackpath.bootstrapcdn.com/bootstrap/4.3.1/css/bootstrap.min.css" rel="stylesheet" integrity="sha384-ggOyR0iXCbMQv3Xipma34MD+dH/1fQ784/j6cY/iJTQUOhcWr7x9JvoRxT2MZw1T" crossorigin="anonymous">
<link rel="stylesheet" href="https://unpkg.com/leaflet@1.4.0/dist/leaflet.css" integrity="sha512-puBpdR0798OZvTTbP4A8Ix/l+A4dHDD0DGqYW6RQ+9jxkRFclaxxQb/SJAWZfWAkuyeQUytO7+7N4QKrDh+drA==" crossorigin=""/>
<style>
html, body {
height: 100%;
margin: 0;
}
</style>
<style>#map { width: 100%; height: 100%; }
.info { padding: 6px 8px; font: 14px/16px Arial, Helvetica, sans-serif; background: white; background: rgba(255,255,255,0.8); box-shadow: 0 0 15px rgba(0,0,0,0.2); border-radius: 5px; } .info h4 { margin: 0 0 5px; color: #777; }
.legend { text-align: left; line-height: 18px; color: #555; } .legend i { width: 18px; height: 18px; float: left; margin-right: 8px; opacity: 0.7; }</style>
<link rel="stylesheet" href="https://use.fontawesome.com/releases/v5.7.2/css/all.css" integrity="sha384-fnmOCqbTlWIlj8LyTjo7mOUStjsKC4pOpQbqyi7RrhN7udi9RwhKkMHpvLbHG9Sr" crossorigin="anonymous">
<!-- CSS END -->
<script src="https://unpkg.com/leaflet@1.4.0/dist/leaflet.js" integrity="sha512-QVftwZFqvtRNi0ZyCtsznlKSWOStnDORoefr1enyq5mVL4tmKB3S/EnC3rRJcxCPavG10IcrVGSmPh6Qw5lwrg==" crossorigin=""></script>
<script src="https://d3js.org/d3-dsv.v1.min.js"></script>
<script src="https://d3js.org/d3-fetch.v1.min.js"></script>
<script type="text/javascript" src="JS/delhi.js"></script>
<script type="text/javascript" src="JS/chloropleth.js"></script>
<script src="https://stackpath.bootstrapcdn.com/bootstrap/4.3.1/js/bootstrap.min.js" integrity="sha384-JjSmVgyd0p3pXB1rRibZUAYoIIy6OrQ6VrjIEaFf/nJGzIxFDsf4x0xIM+B07jRM" crossorigin="anonymous"></script>
</head>
<body>
<div class="d-flex" id="wrapper">
<!-- Sidebar -->
<div class="bg-light border-right" id="sidebar-wrapper">
<div class="sidebar-heading">Rick-&-Shorty <img src="assets/auto.png" class="float-right img-responsive" style="width: 35px"></div>
<div class="list-group list-group-flush">
<div id="colour">
<a href="#" class="list-group-item list-group-item-action bg-dark" style="color: #f5f5f5" disabled>Change Time of the day</a>
<button class="list-group-item list-group-item-action bg-light" onclick="addDensity(1)">AM Peak <i class="far fa-sun float-right fa-lg"></i></button>
<button class="list-group-item list-group-item-action bg-light" onclick="addDensity(2)">Mid-Day<i class="fas fa-sun float-right fa-lg"></i></button>
<button class="list-group-item list-group-item-action bg-light" onclick="addDensity(3)">PM Peak<i class="far fa-moon float-right fa-lg"></i></button>
<button class="list-group-item list-group-item-action bg-light" onclick="addDensity(4)">Evening <i class="fas fa-moon float-right fa-lg"></i></button>
<div id="location">
<a href="#" class="list-group-item list-group-item-action bg-dark" style="color: #f5f5f5" disabled>Change Origin</a>
<button class="list-group-item list-group-item-action bg-light" onclick="changeLoc('ChIJcZcxM_TkDDkRtpFJvLUOKWs')">91springboard Noida</button>
<button class="list-group-item list-group-item-action bg-light" onclick="changeLoc('ChIJKc0NNbbmDDkR_c2HSXA-MB4')">91springboard Okhla</button>
<button class="list-group-item list-group-item-action bg-light" onclick="changeLoc('ChIJi3fh1Vz9DDkRkQvh1gH36Q4')">91springboard Jhandewaln</button>
<button class="list-group-item list-group-item-action bg-light" onclick="changeLoc('ChIJ__-vmMXjDDkRT66N2NCmf60')">91springboard Nehru Place</button>
</div>
</div>
</div>
</div>
<!-- /#sidebar-wrapper -->
<!-- Page Content -->
<div id="page-content-wrapper">
<nav class="navbar navbar-expand-lg navbar-light bg-light border-bottom">
<button class="btn btn-primary" id="menu-toggle"><i class="fas fa-arrows-alt-h fa-2x"></i></button>
<button class="navbar-toggler" type="button" data-toggle="collapse" data-target="#navbarSupportedContent" aria-controls="navbarSupportedContent" aria-expanded="false" aria-label="Toggle navigation">
<span class="navbar-toggler-icon"></span>
</button>
</nav>
<div class="container-fluid">
<div class="row">
<div class="col-md-6">
<div id='map'></div>
</div>
<div class="col-md-6">
<div id="route" data-loc="ChIJcZcxM_TkDDkRtpFJvLUOKWs">
<iframe style="overflow:hidden;width: 100%;" height="700" frameborder="0" style="border:0" src="https://www.google.com/maps/embed/v1/place?q=place_id:ChIJcZcxM_TkDDkRtpFJvLUOKWs&key=AIzaSyB4VIRQy7MBfOztHtc_SdlEk6x1YdS9rBw" allowfullscreen></iframe>
</div>
</div>
</div>
</div>
</div>
<!-- /#page-content-wrapper -->
</div>
<!-- /#wrapper -->
<!-- Bootstrap core JavaScript -->
<script src="vendor/jquery/jquery.min.js"></script>
<script src="vendor/bootstrap/js/bootstrap.bundle.min.js"></script>
<script type="text/javascript" src="JS/map.js"></script>
<script type="text/javascript" src="JS/app.js"></script>
<!-- Menu Toggle Script -->
<script>
$("#menu-toggle").click(function(e) {
e.preventDefault();
$("#wrapper").toggleClass("toggled");
});
</script>
</body>
</html>