-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex.html
109 lines (89 loc) · 3.74 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
<!DOCTYPE html>
<html lang="en-US">
<head>
<title>Independent Survey</title>
<link href="css/bootstrap.css" rel="stylesheet" type="text/css">
<link href="css/styles.css" rel="stylesheet" type="text/css">
<script src="js/jquery-3.6.0.js"></script>
<script src="js/scripts.js"></script>
<link rel="preconnect" href="https://fonts.googleapis.com">
<link rel="preconnect" href="https://fonts.gstatic.com" crossorigin>
<link href="https://fonts.googleapis.com/css2?family=Merriweather:ital,wght@0,300;0,700;0,900;1,900&family=Montserrat:wght@300&display=swap" rel="stylesheet">
</head>
<body>
<div class="container">
<div class="survey">
<div class="surveyIntro">
<h1>Personality Survey</h1>
<p>Please take a moment to fill out the form below so that we can get a clear idea of your personal preferences:</p>
</div>
<div class="formSection">
<form id="persForm">
<div class="form-group">
<label for="name" id="labelName">Name:</label>
<input id="name" class="form-control" type="text">
</div>
<div class="form-group">
<label for="birthday" id="labelBD">Birth date:</label>
<input id="birthday" class="form-control" type="date">
</div>
<div class="form-group">
<label for="faveFoods" id="labelFoods">Select your favorite type of food from the options:</label>
<select class="form-control" id="faveFoods">
<option>Select</option>
<option>Italian</option>
<option>Thai</option>
<option>Cajun</option>
<option>Chinese</option>
</select>
</div>
<div class="form-group">
<label for="faveMusic" id="labelMusic">Select your favorite type of music from the options:</label>
<div class="radio">
<label>
<input type="radio" name="faveMusic" value="Jazz">
Jazz
</label>
</div>
<div class="radio">
<label>
<input type="radio" name="faveMusic" value="Rb">
R&B
</label>
</div>
<div class="radio">
<label>
<input type="radio" name="faveMusic" value="Electronic">
Electronic
</label>
</div>
</div>
<div class="form-group">
<label for="faveColor" id="labelColor">What is your favorite color:</label>
<input id="faveColor" class="form-control" type="color">
</div>
<button type="submit" class="btn btn-secondary" id="formButton">submit</button>
</form>
</div>
<div class="resultsSumm">
<h4>Thanks! Here is what we know about you now:</h4>
<ul>
<li>Your name is <strong><span id="userName"></span></strong></li>
<li>You were born <strong><span id="userBirth"></span></strong></li>
<li>Your favorite food from the options provided is <strong><span id="userFoods"></span></strong></li>
<li>Of the music options listed, you prefer to listen to <strong><span id="userMusic"></span></strong></li>
<li>This box is your favorite color!</li>
</ul>
</div>
<div class="error">
<h4>Oops! Looks like you need to fill out some more info.</h4>
</div>
<div class="arrayDiv">
<h4>Here's a list of your first three answers:</h4>
<ul class="arrayList">
</ul>
</div>
</div>
</div>
</body>
</html>