-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex.html
63 lines (38 loc) · 1.22 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
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width">
<title>repl.it</title>
<h2>Input type="text"</h2>
<input type="text"></input>
<h2>Textarea</h2>
<textarea></textarea>
<h2>Input type="radio"</h2>
<input type="radio" name="rad1" value="A"> A<br>
<input type="radio" name="rad1" value="B"> B<br>
<h2>Select</h2>
<select>
<option></option>
<option>C</option>
<option>D</option>
<option>E</option>
</select>
<h2>Input type="checkbox"</h2>
<input type="checkbox" name="ck1" value="F"> F<br>
<input type="checkbox" name="ck1" value="G"> G<br>
<input type="checkbox" name="ck1" value="H"> H<br>
<button id="search">Find towed vehicles</button>
</head>
<body>
<script>
// endpoint variable
let apiEndpoint = "https://data.cityofchicago.org/resource/ygr5-vcbg.json";
let url = apiEndpoint;
fetch(url)
.then ( response => {return response.json()} )
.then ( json => console.log(json) )
.catch(err => alert(err))
</script>
</body>
</html>