-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathindex.html
More file actions
187 lines (187 loc) · 7.52 KB
/
index.html
File metadata and controls
187 lines (187 loc) · 7.52 KB
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
<!DOCTYPE html>
<html>
<head>
<!-- Global site tag (gtag.js) - Google Analytics -->
<script async src="https://www.googletagmanager.com/gtag/js?id=UA-140781306-1"></script>
<script>
window.dataLayer = window.dataLayer || [];
function gtag(){dataLayer.push(arguments);}
gtag('js', new Date());
gtag('config', 'UA-140781306-1');
</script>
<meta charset='utf-8' />
<title>MyBusCompany</title>
<meta name='viewport' content='width = device-width initial-scale=1 maximum-scale=1' />
<script src="https://ajax.googleapis.com/ajax/libs/jquery/3.3.1/jquery.min.js"></script>
<link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/4.0.0/css/bootstrap.min.css" integrity="sha384-Gn5384xqQ1aoWXA+058RXPxPg6fy4IWvTNh0E263XmFcJlSAwiGgFAW/dAiS6JXm" crossorigin="anonymous">
<link rel="stylesheet" href="https://unpkg.com/[email protected]/dist/leaflet.css" integrity="sha512-xwE/Az9zrjBIphAcBb3F6JVqxf46+CDLwfLMHloNu6KEQCAWi6HcDUbeOfBIptF7tcCzusKFjFw2yuvEpDL9wQ==" crossorigin=""/>
<!-- Leaflet Packages -->
<link rel="stylesheet" href="https://unpkg.com/[email protected]/dist/leaflet.css"
integrity="sha512-xodZBNTC5n17Xt2atTPuE1HxjVMSvLVW9ocqUKLsCC5CXdbqCmblAshOMAS6/keqq/sMZMZ19scR4PsZChSR7A=="
crossorigin=""/>
<script src="https://unpkg.com/[email protected]/dist/leaflet.js"
integrity="sha512-XQoYMqMTK8LvdxXYG3nZ448hOEQiglfqkJs1NOQV44cWnUrBc8PkAOcXy20w0vlaXaVUearIOBhiXZ5V3ynxwA=="
crossorigin="">
</script>
<!-- Leaflet Routing Machine -->
<script src="https://cdnjs.cloudflare.com/ajax/libs/leaflet-routing-machine/3.2.12/leaflet-routing-machine.js"></script>
<script src="https://unpkg.com/esri-leaflet"></script>
<link rel="stylesheet" href="https://unpkg.com/esri-leaflet-geocoder/dist/esri-leaflet-geocoder.css">
<script src="https://unpkg.com/esri-leaflet-geocoder"></script>
<script src="https://cdnjs.cloudflare.com/ajax/libs/Sortable/1.9.0/Sortable.js"></script>
<script src="FileSaver.js"></script>
<style>
html, body{
height: 100%;
}
.container-fluid{
height: 100%
}
.mainrow{
height: 100%
}
.leaflet-control-container .leaflet-routing-container-hide{
display: none;
}
#mainrow{
display: -webkit-box;
display: -webkit-flex;
display: -ms-flexbox;
display: flex;
}
#sidebar{
height: 100%;
overflow-y: hidden;
overflow-x: hidden;
}
#logoImage{
width: 100%;
}
#newLineTitle{
text-align: center;
font-family: Blippo, fantasy;
font-size: 2em;
color: blue;
}
#newLineButton{
width: 150px;
}
#lines{
max-height: 500px;
overflow-y: auto;
}
#saveLoadButtons{
position: absolute;
width: 100%;
bottom: 30px;
margin-right: 0;
text-align: center;
}
#saveButton{
width: 100%;
}
#loadButton{
width: 100%;
}
#map{
height: 100%;
}
#stops{
max-height: 500px;
overflow-y: scroll;
}
</style>
</head>
<body>
<div class="container-fluid">
<div id="mainrow" class="row mainrow">
<div id="sidebar" class="col-lg-3 overflow-auto">
<div class="row">
<img src="mybuscompany.PNG" id="logoImage" class="rounded mx-auto d-block" alt="MyBusCompany">
</div>
<div class="row">
<button type="button" id="newLineButton" class="btn btn-success mx-auto d-block">Create a New Line</button>
</div>
<br>
<div class="collapse" id="newLineCollapse">
<div class="card">
<div id="createNewLineBody" class="card-body">
<div id="alertsDiv"></div>
<h1 id="newLineTitle">New Bus Line</h1>
<div class="form-group">
<label for="name">Name</label>
<input type="text" class="form-control" id="name">
</div>
<div class="form-group">
<label for="color">Line Color</label>
<input type="color" class="form-control" id="color" value="#ff0000">
</div>
<label>Click on the map to add stops</label>
<br>
<button type="button" id="createLineButton" class="btn btn-success">Create</button>
</div>
</div>
</div>
<br>
<ol id="lines" class="list-group"></ol>
<div id="saveLoadButtons" class="row">
<input type="file" id="loadFileInput" style="visibility:hidden"/>
<div class="col-lg-6">
<button type="button" id="saveButton" class="btn btn-primary">Save</button>
</div>
<div class="col-lg-6">
<button type="button" id="loadButton" class="btn btn-primary">Load</button>
</div>
</div>
</div>
<div id="map" class="col-lg-9"></div>
<div class="modal fade" id="moreOpsModal" tabindex="-1" role="dialog" aria-labelledby="exampleModalLabel" aria-hidden="true">
<div class="modal-dialog" role="document">
<div class="modal-content">
<div class="modal-header">
<h5 class="modal-title" id="moreOpsModalTitle">Modal title</h5>
<button type="button" class="close" data-dismiss="modal" aria-label="Close">
<span aria-hidden="true">×</span>
</button>
</div>
<div class="modal-body">
<div class="row mainrow">
<div class="col-lg-6">
<h3>Stops</h3>
<ol id="stops" class="list-group"></ol>
</div>
<div class="col-lg-6">
<button id="deleteLineButton" class="btn btn-danger">Delete Line</button>
</div>
</div>
</div>
</div>
</div>
</div>
<div class="modal fade" id="warningModal" tabindex="-1" role="dialog" aria-labelledby="exampleModalLabel" aria-hidden="true">
<div class="modal-dialog" role="document">
<div class="modal-content">
<div class="modal-header">
<h5 class="modal-title" id="warningModalTitle">Warning</h5>
<button type="button" class="close" data-dismiss="modal" aria-label="Close">
<span aria-hidden="true">×</span>
</button>
</div>
<div class="modal-body">
<p id="warningModalText"></p>
</div>
<div class="modal-footer">
<button id="confirmWarning" class="btn btn-success">Yes</button>
<button id="abortOverride" class="btn btn-danger" onclick="cancelLoad()">No</button>
</div>
</div>
</div>
</div>
</div>
</div>
<script src="main.js"></script>
<script src="https://code.jquery.com/jquery-3.2.1.slim.min.js" integrity="sha384-KJ3o2DKtIkvYIK3UENzmM7KCkRr/rE9/Qpg6aAZGJwFDMVNA/GpGFF93hXpG5KkN" crossorigin="anonymous"></script>
<script src="https://cdnjs.cloudflare.com/ajax/libs/popper.js/1.12.9/umd/popper.min.js" integrity="sha384-ApNbgh9B+Y1QKtv3Rn7W3mgPxhU9K/ScQsAP7hUibX39j7fakFPskvXusvfa0b4Q" crossorigin="anonymous"></script>
<script src="https://maxcdn.bootstrapcdn.com/bootstrap/4.0.0/js/bootstrap.min.js" integrity="sha384-JZR6Spejh4U02d8jOt6vLEHfe/JQGiRRSQQxSfFWpi1MquVdAyjUar5+76PVCmYl" crossorigin="anonymous"></script>
</body>
</html>