-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathadd-observation.html
190 lines (180 loc) · 7.92 KB
/
add-observation.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
<!-- Worked on by Stefan Frunza [email protected] 021650148 and only me! -->
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8" />
<title>Web Wildlife Walk v3.0</title>
<meta name="description" content="WEB222 Wildlife Assignment" />
<meta name="viewport" content="width=device-width, initial-scale=1" />
<!-- Favicon from https://www.favicon.cc/?action=icon&file_id=716323 -->
<link
href="data:image/x-icon;base64,AAABAAEAEBAAAAEAIABoBAAAFgAAACgAAAAQAAAAIAAAAAEAIAAAAAAAAAQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAKZMDGCmTAzQpkwMZgAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAApkwMJqZMDGKmTAzspkwM/6ZMDPmmTAwEAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAACmTAxMpkwMz6ZMDPimTAz6pkwM/6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AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA//8AAP9/AAD+PwAA8D8AAMAjAADAIQAA4CEAAPh/AAD35wAA48MAAOIjAADiIwAA9h8AAP8/AAD/vwAA//8AAA=="
rel="icon"
type="image/x-icon"
/>
<!-- Normalize CSS across browsers -->
<link
rel="stylesheet"
href="https://unpkg.com/[email protected]/normalize.css"
/>
<!-- Water CSS theme, see https://watercss.kognise.dev/ -->
<link
rel="stylesheet"
href="https://cdn.jsdelivr.net/npm/water.css@2/out/light.min.css"
/>
<!-- Font Awesome -->
<link
rel="stylesheet"
href="https://use.fontawesome.com/releases/v5.12.1/css/all.css"
crossorigin="anonymous"
/>
<!-- Our site's styles -->
<link rel="stylesheet" href="css/common.css" />
<link rel="stylesheet" href="css/form.css" />
</head>
<body>
<header>
<nav>
<a href="/"><i class="fas fa-home"></i> Home</a>
<a href="add-observation.html"
><i class="fas fa-plus"></i> Add Observation</a
>
</nav>
<h1>Web Wildlife Walk v3.0</h1>
<h2>Adding New Observations</h2>
<p>
The data used on this web site is generated by volunteers like you who
love nature and want to share it. You can improve the database of
wildlife information simply by adding your own observations!
</p>
</header>
<main>
<section>
<h2>Observation Details</h2>
<p><span class="required"></span> Required field</p>
<form action="https://formspree.io/f/xgervkoa" method="post">
<!-- TODO: create the form based on the specification in the Final Assessment -->
<div id="Observation">
<fieldset>
<legend>Observation</legend>
<label for="SpeciesGuess" class="required">Species Guess</label>
<input
id="SpeciesGuess"
name="SpeciesGuess"
placeholder="Great Horned Owl"
type="text"
maxlength="200"
required
/>
<label for="Description" class="required"> Description</label>
<input
id="Description"
name="Description"
placeholder="Roosting on fence post at the edge of a field"
type="text"
required
/>
<label for="DateObserved" class="required">Date Observed</label>
<input
id="DateObserved"
name="DateObserved"
type="date"
required
/>
<label for="Notes"> Notes </label>
<textarea
id="Notes"
name="Notes"
placeholder="Notes about observation..."
type="text"
rows="3"
></textarea>
</fieldset>
</div>
<div id="Location">
<fieldset>
<legend>Location</legend>
<label for="Latitude" class="required">Latitude </label
><span id="latspan" hidden="true" class="error"
>must be a valid Latitude (-90 to 90)</span
>
<input
id="Latitude"
name="Latitude"
placeholder="43.7955"
type="text"
required
/>
<label for="Longitude" class="required">Longitude </label
><span id="longspan" hidden="true" class="error"
>must be a valid Longitude (-180 to 180)</span
>
<input
id="Longitude"
name="Longitude"
placeholder="-79.3496"
type="text"
required
/>
<input id="ShareInfo" name="Share Info" type="checkbox" />
<label for="ShareInfo"
>Share location information (i.e., it's ok to make this
public)</label
>
</fieldset>
</div>
<div id="PhotoDiv">
<fieldset>
<legend>Photo</legend>
<label for="PhotographerName">Photographer Name</label>
<input
id="PhotographerName"
name="PhotographerName"
type="text"
placeholder="Karen Shu"
maxlength="100"
/>
<label for="PhotographerEmail">Photographer Email</label>
<input
id="PhotographerEmail"
name="PhotographerEmail"
type="email"
placeholder="[email protected]"
/>
<label for="Photo">Photo</label>
<input id="Photo" name="Photo" type="file" />
<label for="LicenseList"
>License(<a href="https://creativecommons.org/choose/"
>help on choosing a license</a
>)</label
>
<select id="LicenseList" name="LicenseList">
<option value="CC-BY">
Creative Commons Attribution License
</option>
<option value="CC-BY-NC">
Creative Commons Attribution-NonCommercial License
</option>
<option value="CC-BY-SA">
Creative Commons Attribution-ShareAlike License
</option>
<option value="CC-BY-ND">
Creative Commons Attribution-NoDerivs License
</option>
<option value="CC-BY-NC-SA">
Creative Commons Attribution-NonCommercial-ShareAlike License
</option>
<option value="CC-BY-NC-ND">
Creative Commons Attribution-NonCommercial-NoDerivs License
</option>
</select>
</fieldset>
</div>
<input id="Submit" type="submit" value="Submit" />
</form>
</section>
</main>
<!-- Your custom form validation code goes in the file js/validate.js -->
<script src="js/validate.js"></script>
</body>
</html>