aboutsummaryrefslogtreecommitdiff
path: root/index.html
blob: 0eb6be8eaba55ef83319c7d0b59c357304c445e5 (plain)
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
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
<!DOCTYPE html>
<html lang="en">
  <head>
    <meta charset="utf-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="initial-scale=1,user-scalable=no,maximum-scale=1,width=device-width">
    <meta name="mobile-web-app-capable" content="yes">
    <meta name="apple-mobile-web-app-capable" content="yes">
    <meta name="description" content="">
    <meta name="author" content="Christopher Baines <cb15g11@soton.ac.uk>">
    <title>Map - University of Southampton</title>

    <link rel="stylesheet" href="css/style.css">
  </head>

  <body>
    <div class="navbar-inverse navbar-fixed-top" role="navigation">
      <div class="navbar-header">
        <button type="button" class="navbar-toggle visible-xs" onclick="$('.navbar-collapse').collapse('toggle'); return false;">
            <span class="icon-bar"></span>
            <span class="icon-bar"></span>
            <span class="icon-bar"></span>
        </button>
        <a class="navbar-brand" href="#">Map<span class="visible-md-inline visible-lg-inline"> - University of Southampton</span></a>
      </div>
      <div class="navbar-collapse collapse">
        <form class="navbar-form navbar-right" role="search">
          <div class="form-group has-feedback navbar-right">
              <input id="searchbox" type="text" placeholder="Search" class="form-control">
              <span id="searchicon" class="glyphicon glyphicon-search form-control-feedback"></span>
          </div>
        </form>
        <ul class="nav navbar-nav">
            <li>
                <a href="#" data-toggle="collapse"
                            data-target=".navbar-collapse.in"
                            onclick="$('#linksModal').modal('show');
                            return false;">
                    More Maps
                </a>
            </li>
          <li>
            <a href="#" data-toggle="collapse" data-target=".navbar-collapse.in" onclick="$('#aboutModal').modal('show'); return false;">
              About
            </a>
          </li>
          <li id="navBuildingsLi">
            <a href="#" data-toggle="collapse" data-target=".navbar-collapse.in" id="buildingsSidebarLink">
              Buildings
            </a>
          </li>
          <li id="navSitesLi">
            <a href="#" data-toggle="collapse" data-target=".navbar-collapse.in" id="sitesSidebarLink">
              Sites
            </a>
          </li>
        </ul>
      </div><!--/.navbar-collapse -->
    </div>

    <div id="container">
      <div id="buildingsSidebar" style="display: none;">
        <div class="sidebar-wrapper">
          <div class="panel panel-default" style="margin: 0px; border: none;
          border-radius: 0px; -webkit-box-shadow: none; box-shadow: none;"
                                           id="buildings">
            <div class="panel-heading">
              <h3 class="panel-title">Buildings
                <button id="buildingsSidebarHideButton"
                  type="button"
                  class="btn btn-xs btn-default pull-right"
                  style="margin-top: -2px;" >
                  <i class="glyphicon glyphicon-chevron-left"></i>
                </button>
              </h3>
            </div>
            <div class="panel-body">
                <div class="row">
                  <div class="col-xs-8 col-md-8">
                    <input type="text" class="form-control search" placeholder="Filter" />
                  </div>
                  <div class="col-xs-4 col-md-4">
                    <button
                        type="button"
                        class="btn btn-primary pull-right sort"
                        data-sort="feature-name"
                        id="sort-btn">
                      <i class="glyphicon glyphicon-sort"></i>
                      &nbsp;&nbsp;Sort
                    </button>
                  </div>
                </div>
            </div>
            <div class="sidebar-table">
              <table class="table table-hover" id="buildingsList">
                <thead class="hidden">
                  <tr>
                    <th>Ref</th>
                  <tr>
                  <tr>
                    <th>Name</th>
                  <tr>
                  <tr>
                    <th>Chevron</th>
                  <tr>
                </thead>
                <tbody class="list"></tbody>
              </table>
            </div>
          </div>
        </div>
      </div>
      <div id="sitesSidebar" style="display: none;">
        <div class="sidebar-wrapper">
          <div class="panel panel-default" style="margin: 0px; border: none;
          border-radius: 0px; -webkit-box-shadow: none; box-shadow: none;"
                                           id="sites">
            <div class="panel-heading">
              <h3 class="panel-title">Sites
                <button id="sitesSidebarHideButton"
                  type="button"
                  class="btn btn-xs btn-default pull-right"
                  style="margin-top: -2px;" >
                  <i class="glyphicon glyphicon-chevron-left"></i>
                </button>
              </h3>
            </div>
            <div class="panel-body">
                <div class="row">
                  <div class="col-xs-8 col-md-8">
                    <input type="text" class="form-control search" placeholder="Filter" />
                  </div>
                  <div class="col-xs-4 col-md-4">
                    <button
                        type="button"
                        class="btn btn-primary pull-right sort"
                        data-sort="feature-name"
                        id="sort-btn">
                      <i class="glyphicon glyphicon-sort"></i>
                      &nbsp;&nbsp;Sort
                    </button>
                  </div>
                </div>
            </div>
            <div class="sidebar-table">
              <table class="table table-hover" id="sitesList">
                <thead class="hidden">
                  <tr>
                    <th>Ref</th>
                  <tr>
                  <tr>
                    <th>Name</th>
                  <tr>
                  <tr>
                    <th>Chevron</th>
                  <tr>
                </thead>
                <tbody class="list"></tbody>
              </table>
            </div>
          </div>
        </div>
      </div>

      <div id="map"></div>
    </div>

    <div class="modal fade" id="aboutModal" tabindex="-1" role="dialog">
      <div class="modal-dialog modal-lg">
        <div class="modal-content">
          <div class="modal-header">
            <button class="close" type="button" data-dismiss="modal" aria-hidden="true">&times;</button>
            <h4 class="modal-title">About</h4>
          </div>
          <div class="modal-body">
              This application uses the following libraries and datasets.

              <h5>Libraries</h5>
              <ul>
                <li>leaflet</li>
                <li>leaflet-locatecontrol</li>
                <li>leaflet-markercluster</li>
              </ul>

              <h5>Data</h5>
              <ul>
                <li>OpenStreetMap</li>
                <li>University of Southampton</li>
                <li>mfd-location</li>
                <li>library data</li>
              </ul>

              <h4>Contributors</h4>
              <p>
                Those who have contributed to this application, or
                leaflet-soton.
              </p>
              <ul>
                  <li><a href="http://cbaines.net">
                    Christopher Baines
                   </a></li>
                  <li><a href="http://www.ecs.soton.ac.uk/people/ads04r">
                    Dr Ash Smith
                  </a></li>
                  <li><a href="http://www.ecs.soton.ac.uk/people/cjg">
                    Christopher Gutteridge
                  </a></li>
                  <li>
                    Ian Barker
                  </li>
              </ul>
            </li>
          </div>
          <div class="modal-footer">
            <button type="button" class="btn btn-default" data-dismiss="modal">Close</button>
          </div>
        </div><!-- /.modal-content -->
      </div><!-- /.modal-dialog -->
    </div><!-- /.modal -->

    <div class="modal fade" id="linksModal" tabindex="-1" role="dialog">
      <div class="modal-dialog modal-lg">
        <div class="modal-content">
          <div class="modal-header">
            <button class="close" type="button" data-dismiss="modal" aria-hidden="true">&times;</button>
            <h4 class="modal-title">More Maps</h4>
          </div>
          <div class="modal-body">
          <p>The University currently has no 'official' digital mapping system. However, there are several systems produced by various people within the organisation.</p>
          <p><a href="http://opendatamap.ecs.soton.ac.uk/">Open Data Map</a> by Colin Williams</p>
          <p>Additionally, we have official printed maps available from our central website.</p>
          <p><a href="http://www.southampton.ac.uk/visitus/campuses/">http://www.southampton.ac.uk/visitus/campuses/</a></p>
          </div>
          <div class="modal-footer">
            <button type="button" class="btn btn-default" data-dismiss="modal">Close</button>
          </div>
        </div><!-- /.modal-content -->
      </div><!-- /.modal-dialog -->
    </div><!-- /.modal -->

    <div class="modal fade" id="featureModal" tabindex="-1" role="dialog">
      <div class="modal-dialog modal-lg">
        <div class="modal-content">
          <div class="modal-header">
            <button class="close" type="button" data-dismiss="modal" aria-hidden="true">&times;</button>
            <h4 class="modal-title text-primary" id="feature-title"></h4>
          </div>
          <div class="modal-body" id="feature-info"></div>
          <div class="modal-footer">
            <button type="button" class="btn btn-default" data-dismiss="modal">Close</button>
          </div>
        </div><!-- /.modal-content -->
      </div><!-- /.modal-dialog -->
    </div><!-- /.modal -->

    <script src="scripts.js"></script>
  </body>
</html>