-
Notifications
You must be signed in to change notification settings - Fork 3
/
gbContribute.html
348 lines (304 loc) · 13.4 KB
/
gbContribute.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
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
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
<!DOCTYPE HTML>
<!--
Verti by HTML5 UP
html5up.net | @ajlkn
Free for personal and commercial use under the CCA 3.0 license (html5up.net/license)
-->
<html>
<head>
<title>geoBoundaries</title>
<meta charset="utf-8" />
<meta name="viewport" content="width=device-width, initial-scale=1, user-scalable=no" />
<link rel="stylesheet" href="assets/css/main.css" />
<link rel="stylesheet" href="assets/css/tabulator.css">
<link rel="stylesheet" href="assets/css/BeerSlider.css" />
<link rel="stylesheet" type="text/css" href="assets/js/slick/slick.css" />
<script type="text/javascript" src="assets/js/tabulator.js"></script>
<!-- Global site tag (gtag.js) - Google Analytics -->
<script async src="https://www.googletagmanager.com/gtag/js?id=UA-9276981-3"></script>
<script>
window.dataLayer = window.dataLayer || [];
function gtag() { dataLayer.push(arguments); }
gtag('js', new Date());
gtag('config', 'UA-9276981-3');
</script>
<!-- Global site tag (gtag.js) - Google Ads: 984002936 -->
<script async src="https://www.googletagmanager.com/gtag/js?id=AW-984002936"></script>
<script>
window.dataLayer = window.dataLayer || [];
function gtag(){dataLayer.push(arguments);}
gtag('js', new Date());
gtag('config', 'AW-984002936');
</script>
<!-- Event snippet for Website traffic conversion page -->
<script>
gtag('event', 'conversion', {'send_to': 'AW-984002936/BycZCJ_8kdMBEPjimtUD'});
</script>
</head>
<body class="is-preload left-sidebar">
<div id="page-wrapper">
<!-- Header & Nav -->
<div id="header-wrapper">
<header id="header" class="container">
<!-- Logo -->
<div id="logo">
<h1><a href="index.html">geoBoundaries</a></h1>
<span><a href="http://geolab.wm.edu">@ William & Mary</a></span>
</div>
<nav id="nav">
<ul>
<li>
<a href="visualize.html">Visualize Data</a>
</li>
<li>
<a href="index.html#features-wrapper">Download Data</a>
</li>
<li>
<a href="api.html">API</a>
</li>
<li>
<a href="contribute.html">Get Involved</a>
</li>
</ul>
</nav>
</header>
</div>
<!-- Main -->
<div id="main-wrapper">
<div class="container">
<div class="row gtr-200">
<div class="col-4 col-12-medium">
<div id="sidebar">
<!-- Sidebar -->
<section>
<h3>Submit a Boundary</h3>
<p>Fill out this form to make a new boundary submissions to geoBoundaries.
The information you provide will be formatted, packaged, and submitted as a new <a href="https://github.com/wmgeolab/geoBoundaries/pulls" target="_blank">pull request to the geoBoundaries Github repository</a>.
After submission, we will manually assess your provided files and information, and as warranted follow up for any clarifications. <b>Please note that all submissions must be compatible with the <a href="https://github.com/wmgeolab/geoBoundaryBot/blob/main/dta/licenseText/CCBY_40.pdf">CC-BY SA license</a>, which allows for most uses so long as attribution is provided. </b> For more information, please review the <a href="https://github.com/wmgeolab/geoBoundaries/blob/main/CONTRIBUTING.md" target='_blank'>Guidelines for Submission</a>. </p>
</section>
</div>
</div>
<div class="col-8 col-12-medium imp-medium">
<div id="content">
<!-- Content -->
<!--https://geoboundary-contributions.herokuapp.com https://geoboundaries.geolab.wm.edu/api_contribute/-->
<form id="contribute-form" action="https://geoboundaries.geolab.wm.edu/api_contribute/" method="post" enctype="multipart/form-data">
<!--the 'enctype' attribute above is necessary for django to receive the file-->
<div id="contribute-tab-container" style="height:80%; overflow:auto">
<div id="contribute-data" class="box">
<div style="width:90%; text-align:center; padding-top:20px; margin:auto">
<p>Drag-and-drop or select a zipped shapefile. Data must use WGS84 projection (EPSG 4326). Please note that if your submission fails, you may be required to re-upload this zip file.</p>
<span class="fas fa-file" style="padding:0px 3px important!; margin-left:10px; width:auto">
<input id="file-input" name="file" class="fas" type="file" accept=".zip" onchange="zipfileSelected()" required>
</span>
</div>
<div id="file-input-form" style="width:97%; margin:20px; display:none">
<div>
<div style="display:flex; flex-direction:row; align-items:center">
<div style="flex:0 0 30%">File<span style="color:red">*</span>:</div>
<div style="flex:0 0 70%">
<select name="path" onchange="zipfileFileDropdownChanged(this)" required>
</select>
</div>
</div>
<div style="margin:10px;"></div>
<div style="display:flex; flex-direction:row; align-items:center">
<div style="flex:0 0 30%">Administrative level<span style="color:red">*</span>:</div>
<div style="flex:0 0 70%">
<select name="level" required>
<option value='' selected></option>
<option value='ADM0'>ADM0</option>
<option value='ADM1'>ADM1</option>
<option value='ADM2'>ADM2</option>
<option value='ADM3'>ADM3</option>
<option value='ADM4'>ADM4</option>
<option value='ADM5'>ADM5</option>
</select>
</div>
</div>
<div style="margin:10px;"></div>
<div style="display:flex; flex-direction:row; align-items:center">
<div style="flex:0 0 30%">Name field<span style="color:red">*</span>:</div>
<div style="flex:0 0 70%">
<select name="name_field" class="field-dropdown" required>
</select>
</div>
</div>
<div style="margin:10px;"></div>
<div style="display:flex; flex-direction:row; align-items:center">
<div style="flex:0 0 30%">ISO 3166-2 field:</div>
<div style="flex:0 0 70%">
<select name="iso_field" class="field-dropdown">
</select>
</div>
</div>
<div style="margin:10px;"></div>
<div style="display:flex; flex-direction:row; align-items:center">
<div style="flex:0 0 30%"></div>
<div style="flex:0 0 70%">
<input name="type" type="hidden" value="gbOpen">
</input>
</div>
</div>
</div>
<div style="width:100%; padding-left:1%; margin-top:30px; overflow:auto">
<table class="table file-preview-table">
<thead></thead>
<tbody></tbody>
</table>
</div>
</div>
</div>
<div id="contribute-metadata" class="box">
<table style="width:97%; margin:10px;">
<tr>
<td>Country<span style="color:red">*</span>:</td>
<td>
<select name="iso" type="text" placeholder=" " required>
</select>
</td>
</tr>
<tr>
<td>Year the boundary represents<span style="color:red">*</span>:</td>
<td>
<input name="year" type="text" placeholder=" " minlength=4 maxlength=4 pattern="\d{4}" required>
</td>
</tr>
<tr>
<td>Source<span style="color:red">*</span>:</td>
<td>
<input name="source" type="text" placeholder=" " required>
</td>
</tr>
<tr>
<td>Source URL<span style="color:red">*</span>:</td>
<td>
<input name="source_url" type="url" placeholder=" " required>
</td>
</tr>
<tr>
<td>Canonical Name:</td>
<td>
<input name="canonical" type="text" placeholder=" ">
</td>
</tr>
<tr>
<td>License<span style="color:red">*</span>:</td>
<td>
<select name="license" type="text" placeholder=" " required>
</select>
</td>
</tr>
<tr>
<td>License URL<span style="color:red">*</span>:</td>
<td>
<input name="license_url" type="url" placeholder=" " required>
</td>
</tr>
<tr>
<td>License Screenshot:</td>
<td>
<span class="fas fa-file" style="padding:0px 3px important!; margin-left:10px; width:auto">
<input name="license_screenshot" class="fas" type="file" accept="image/png, image/jpeg">
</span>
</td>
</tr>
<tr>
<td>License details:</td>
<td>
<input name="license_detail" type="text" placeholder=" ">
</td>
</tr>
</table>
</div>
<div id="contribute-contact" class="box">
<table style="width:97%; margin:10px;">
<tr>
<td>Your Name<span style="color:red">*</span>:</td>
<td>
<input name="contributor_name" type="text" placeholder=" " required>
</td>
</tr>
<tr>
<td>Affiliation<span style="color:red">*</span>:</td>
<td>
<input name="contributor_affiliation" type="text" placeholder=" " required>
</td>
</tr>
<tr>
<td>Contact email<span style="color:red">*</span>:</td>
<td>
<input name="contributor_email" type="email" placeholder=" " required>
</td>
</tr>
<tr>
<td>Notes/comment:</td>
<td>
<input name="notes" type="text" placeholder=" ">
</td>
</tr>
</table>
<div id="Captcha" class="container">
<div class="wrapper">
<canvas id="canvas" width="200" height="70"></canvas>
<button id="reload-button">
<i class="fa-solid fa-arrow-rotate-right"></i>
</button>
</div>
<input
type="text"
id="user-input"
placeholder="Enter the text in the image"
required
/>
</div>
<div id="error-container"></div>
<div style="margin-left:5%; width:90%; display:flex; flex-direction:row">
<p style="margin-left:10px; font-size:smaller">I understand that by submitting this form the boundary data, metadata,
and contact information will be made publicly available
on the code sharing platform GitHub.</p>
</div>
<div style="text-align:right; margin-top:10px">
<ul hidden class='etabs' id="submitButton">
<li class='tab'>Submit</li>
</ul>
<button id="submit-button" type="submit" onclick="submitBoundary()">Submit!</button>
</div>
</div>
</form>
<!-- END CONTENT -->
</div>
</div>
</div>
</div>
</div>
</div>
<!-- Footer -->
<div data-include="_includes/footer.shtml"></div>
</div>
<!-- Scripts -->
<script src="assets/js/jquery.min.js"></script>
<script src="assets/js/jquery.dropotron.min.js"></script>
<script src="assets/js/browser.min.js"></script>
<script src="assets/js/breakpoints.min.js"></script>
<script src="assets/js/util.js"></script>
<script src="assets/js/main.js"></script>
<script src="assets/js/HTMLInclude.min.js"></script>
<script src="assets/js/jquery.easytabs.js" type="text/javascript"></script>
<script src="assets/js/BeerSlider.js" type="text/javascript"></script>
<!--this is for jszip-->
<script src="assets/js/jszip/jszip.js"></script>
<script src="assets/js/jszip/jszip-utils.js"></script>
<script type="text/javascript" src="assets/js/jszip/jszip-utils-ie.js"></script>
<!-- this is for shapefile-js -->
<!--<script src="https://cdnjs.cloudflare.com/ajax/libs/proj4js/2.3.3/proj4.js"></script>-->
<script src="https://unpkg.com/shpjs@latest/dist/shp.js"></script>
<script src="assets/js/papaparse.min.js"></script>
<script src="assets/js/ol.js"></script>
<script src="assets/js/internalHelpers.js"></script>
<script src="assets/js/internalData.js"></script>
<script src="assets/js/internalSpatial.js"></script>
<script src="assets/js/gbContribute.js"></script>
<script type="text/javascript" src="assets/js/slick/slick.min.js"></script>
</body>
</html>