-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathindex.html
102 lines (85 loc) · 4.93 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
<!doctype html>
<html lang="en">
<head>
<!-- Required meta tags -->
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no">
<!-- Bootstrap CSS -->
<link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/bootstrap@4.5.3/dist/css/bootstrap.min.css" integrity="sha384-TX8t27EcRE3e/ihU7zmQxVncDAy5uIKz4rEkgIXeMed4M0jlfIDPvg6uqKI2xXr2" crossorigin="anonymous">
<script src="https://kit.fontawesome.com/c9eb3a95ef.js" crossorigin="anonymous"></script>
<link rel="stylesheet" href="stylesheet.css">
<title>Area Risk Assessment</title>
</head>
<body>
<div class="title titleContainer text-center">
<h1 class="title">Area Risk Assessment</h1>
</div>
<div class="container input">
<div class="row">
<div class="col-lg-10 mx-auto">
<form action="results.html" method="GET" class="needs-validation" novalidate>
<label for="citySearch">City:</label>
<input type="text" class="form-control" pattern="[A-Za-z\s]+" placeholder="City" id="citySearch" name="citySearch" required/>
<label for="stateSearch">State:</label>
<input type="text" class="form-control" pattern="^(?:(A[KLRZ]|C[AOT]|D[CE]|FL|GA|HI|I[ADLN]|K[SY]|LA|M[ADEINOST]|N[CDEHJMVY]|O[HKR]|P[AR]|RI|S[CD]|T[NX]|UT|V[AIT]|W[AIVY]))$" placeholder="State Abbreviation" id="stateSearch" name="stateSearch" required/> <br>
<input class="btn btn-info" type="submit" value="Submit"/><a href="help.html" class="helpButton"><i class="far fa-question-circle"></i></a>
</form>
</div>
</div>
</div>
<script>
(function() {
'use strict';
window.addEventListener('load', function() {
// Fetch all the forms we want to apply custom Bootstrap validation styles to
let forms = document.getElementsByClassName('needs-validation');
// Loop over them and prevent submission
let validation = Array.prototype.filter.call(forms, function(form) {
form.addEventListener('submit', function(event) {
if (form.checkValidity() === false) {
event.preventDefault();
event.stopPropagation();
}
form.classList.add('was-validated');
}, false);
});
}, false);
})();
</script>
<div class="container input">
<div class="row">
<div class="col-lg-5 mx-auto">
<div class="list-group topCities">
<a class="list-group-item listTitle">
Most Popular Cities:
</a>
<a href="results.html?citySearch=New York City&stateSearch=NY" class="list-group-item list-group-item-action">New York City, NY</a>
<a href="results.html?citySearch=Los Angeles&stateSearch=CA" class="list-group-item list-group-item-action">Los Angeles, CA</a>
<a href="results.html?citySearch=Chicago&stateSearch=IL" class="list-group-item list-group-item-action">Chicago, IL</a>
<a href="results.html?citySearch=Houston&stateSearch=TX" class="list-group-item list-group-item-action">Houston, TX</a>
<a href="results.html?citySearch=Phoenix&stateSearch=AZ" class="list-group-item list-group-item-action">Phoenix, AZ</a>
<a href="results.html?citySearch=Philadelphia&stateSearch=PA" class="list-group-item list-group-item-action">Philadelphia, PA</a>
<a href="results.html?citySearch=San Antonio&stateSearch=TX" class="list-group-item list-group-item-action">San Antonio, TX</a>
<a href="results.html?citySearch=San Diego&stateSearch=CA" class="list-group-item list-group-item-action">San Diego, CA</a>
<a href="results.html?citySearch=Dallas&stateSearch=TX" class="list-group-item list-group-item-action">Dallas, TX</a>
<a href="results.html?citySearch=San Jose&stateSearch=CA" class="list-group-item list-group-item-action">San Jose, CA</a>
</div>
<p class="text-center title">Area Risk Assessment</p>
<div class="container">
<div class="row">
<div class="col-lg-6 mx-auto">
<div class="input-group">
<form action="results.html" method="GET" class="form-inline">
<input type="text" class="form-control" placeholder="City" id="citySearch" name="citySearch"/>
<input type="text" class="form-control" placeholder="State" maxlength="2" id="stateSearch" name="stateSearch"/>
<input type="submit" value="submit"/>
</form>
</div>
</div>
</div>
</div>
<!-- Option 1: jQuery and Bootstrap Bundle (includes Popper) -->
<script src="https://code.jquery.com/jquery-3.5.1.min.js" integrity="sha384-ZvpUoO/+PpLXR1lu4jmpXWu80pZlYUAfxl5NsBMWOEPSjUn/6Z/hRTt8+pR6L4N2" crossorigin="anonymous"></script>
<script src="https://cdn.jsdelivr.net/npm/bootstrap@4.5.3/dist/js/bootstrap.bundle.min.js" integrity="sha384-ho+j7jyWK8fNQe+A12Hb8AhRq26LrZ/JpcUGGOn+Y7RsweNrtN/tE3MoK7ZeZDyx" crossorigin="anonymous"></script>
</body>
</html>