-
Notifications
You must be signed in to change notification settings - Fork 1
/
index.html
192 lines (171 loc) · 7.77 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
<!doctype html>
<html lang="en">
<head>
<meta charset="utf-8">
<!-- <meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no"> -->
<meta name="viewport" content="width=device-width, initial-scale=1">
<meta name="description" content="">
<meta name="author" content="Chris Bahlo">
<script defer src="https://use.fontawesome.com/releases/v5.0.8/js/fontawesome.js"
integrity="sha384-7ox8Q2yzO/uWircfojVuCQOZl+ZZBg2D2J5nkpLqzH1HY0C1dHlTKIbpRz/LG23c" crossorigin="anonymous"></script>
<link rel="stylesheet" href="https://unpkg.com/[email protected]/dist/leaflet.css"
integrity="sha512-xwE/Az9zrjBIphAcBb3F6JVqxf46+CDLwfLMHloNu6KEQCAWi6HcDUbeOfBIptF7tcCzusKFjFw2yuvEpDL9wQ=="
crossorigin=""/>
<title>AWT</title>
<!-- Bootstrap core CSS -->
<link href="css/bootstrap.min.css" rel="stylesheet">
<!-- Custom styles for this template -->
<link href="css/style.css" rel="stylesheet">
</head>
<body>
<nav id="main-nav" class="navbar navbar-expand-sm navbar-dark bg-primary mb-3 shadow">
<div class="container">
<a class="navbar-brand" href="index.html">Animal Welfare Tracker</a>
<button class="navbar-toggler" type="button" data-toggle="collapse" data-target="#navbarNav" aria-controls="navbarNav" aria-expanded="false"
aria-label="Toggle navigation">
<span class="navbar-toggler-icon"></span>
</button>
<div class="collapse navbar-collapse" id="navbarNav">
<ul class="navbar-nav">
<li class="nav-item">
<a class="nav-link" href="about.html">About</a>
</li>
</ul>
<ul class="navbar-nav ml-auto">
<!-- <li class="nav-item">
<a href="#" class="nav-link">Logout</a>
</li> -->
<li class="nav-item">
<!-- <button class="openbtn" onclick="openNav()">☰ New observation</button> -->
<a class="nav-link" onclick="openNav()" href="#">New Observation</a>
</li>
<li class="nav-item">
<a href="#" class="nav-link">Login</a>
</li>
<li class="nav-item">
<a href="#" class="nav-link">Register</a>
</li>
</ul>
</div>
</div>
</nav>
<div id="mySidebar" class="sidebar">
<a href="javascript:void(0)" class="closebtn" onclick="closeNav()">×</a>
<form>
<fieldset>
<!-- Form Name -->
<legend>Enter your observation</legend>
<!-- Select Basic -->
<div class="form-group">
<label class="col-md-12 control-label" for="animals">Animal(s) affected</label>
<div class="col-md-12">
<select id="animals" name="animals" class="form-control">
<option value="1">Cattle</option>
<option value="2">Sheep</option>
<option value="3">Horses</option>
<option value="4">Goats</option>
<option value="5">Chickens</option>
<option value="6">Ducks</option>
</select>
</div>
</div>
<!-- Select Basic -->
<div class="form-group">
<label class="col-md-12 control-label" for="problem">Welfare problem</label>
<div class="col-md-12">
<select id="problem" name="problem" class="form-control">
<option value="1">disease</option>
<option value="2">pest</option>
<option value="3">poison plant</option>
<option value="4">environmental</option>
<option value="5">predation</option>
<option value="6">other</option>
</select>
</div>
</div>
<!-- Text input-->
<div class="form-group">
<label class="col-md-12 control-label" for="welfare-details">Details of problem</label>
<div class="col-md-12">
<input id="welfare-details" name="welfare-details" type="text" placeholder="details" class="form-control input-md">
</div>
</div>
<!-- Textarea -->
<div class="form-group">
<label class="col-md-12 control-label" for="comments">Comments</label>
<div class="col-md-12">
<textarea class="form-control" id="comments" name="comments" style="min-width: 100%">Enter your comments here</textarea>
</div>
</div>
<!-- Prepended text-->
<div class="form-group">
<label class="col-md-12 control-label" for="geolocation">Location</label>
<div class="col-md-12">
<div class="input-group">
<!-- <span class="input-group-addon">use current</span> -->
<input id="geolocation" name="geolocation" class="form-control" placeholder="lat lon" type="text" required="">
</div>
<p class="help-block">Note: on mobile devices, defaults to your location</p>
</div>
</div>
<!-- File Button -->
<div class="form-group">
<label class="col-md-12 control-label" for="image">Image upload</label>
<div class="col-md-12">
<input id="image" name="image" class="input-file" type="file">
</div>
</div>
<!-- Multiple Radios -->
<div class="form-group">
<label class="col-md-4 control-label" for="location-info">Location accuracy</label>
<div class="col-md-4">
<div class="radio">
<label for="location-info-0">
<input type="radio" name="location-info" id="location-info-0" value="1" checked="checked">
Exact location
</label>
</div>
<div class="radio">
<label for="location-info-1">
<input type="radio" name="location-info" id="location-info-1" value="2">
Within 1km
</label>
</div>
<div class="radio">
<label for="location-info-2">
<input type="radio" name="location-info" id="location-info-2" value="3">
Within 5km
</label>
</div>
</div>
</div>
<!-- Button -->
<div class="form-group">
<label class="col-md-12 control-label" for="singlebutton">Submit observation</label>
<div class="col-md-12">
<button id="singlebutton" name="singlebutton" class="btn btn-primary">Go</button>
</div>
</div>
</fieldset>
</form>
</div>
<div id="main">
<div id="map"></div>
</div>
<!-- Bootstrap core JavaScript
================================================== -->
<!-- Placed at the end of the document so the pages load faster -->
<script src="js/jquery-3.3.1.min.js"></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="js/bootstrap.min.js"></script>
<script src="https://unpkg.com/[email protected]/dist/leaflet.js" integrity="sha512-gZwIG9x3wUXg2hdXF6+rVkLF/0Vi9U8D2Ntg4Ga5I5BZpVkVxlJWbSQtXPSiUTtC0TjtGOmxa1AJPuV0CPthew==" crossorigin=""></script>
<script src="https://unpkg.com/shpjs@latest/dist/shp.js"></script>
<script src="js/leaflet.shpfile.js"></script>
<script src="js/leaflet-providers.js"></script>
<script src="js/leaflet.wms.js"></script>
<script src="js/leaflet-color-markers.js"></script>
<script src="js/map.js"></script>
<script src="js/interface.js"></script>
</body>
</html>