-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathindex.html
More file actions
51 lines (46 loc) · 1.86 KB
/
index.html
File metadata and controls
51 lines (46 loc) · 1.86 KB
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
<!DOCTYPE html>
<html>
<head>
<title>Personality Test</title>
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<link rel="stylesheet" href="./style.css">
</head>
<body>
<h1>Personality Test</h1>
<div class="toolbar">
<button type="button" id="theme-toggle" aria-label="Toggle theme">Toggle Theme</button>
<span id="progress-text" aria-live="polite">Progress: 0/3 answered</span>
</div>
<div class="progress" aria-hidden="true">
<div class="progress-bar" id="progress-bar" style="width: 0%"></div>
</div>
<form id="personality-test">
<fieldset>
<legend>You tend to enjoy spending time alone and value your independence.</legend>
<input type="radio" name="q1" value="yes">Yes<br>
<input type="radio" name="q1" value="sometimes">Sometimes<br>
<input type="radio" name="q1" value="no">No<br>
<span class="error-text" aria-hidden="true">Please select an option.</span>
</fieldset>
<fieldset>
<legend>I tend to listen more than I talk in group conversations.</legend>
<input type="radio" name="q2" value="yes">Yes<br>
<input type="radio" name="q2" value="sometimes">Sometimes<br>
<input type="radio" name="q2" value="no">No<br>
<span class="error-text" aria-hidden="true">Please select an option.</span>
</fieldset>
<fieldset>
<legend>I find it easier to express myself through writing rather than speaking.</legend>
<input type="radio" name="q3" value="yes">Yes<br>
<input type="radio" name="q3" value="sometimes">Sometimes<br>
<input type="radio" name="q3" value="no">No<br>
<span class="error-text" aria-hidden="true">Please select an option.</span>
</fieldset>
<!-- Add more question fieldsets here as needed -->
<button type="submit">Submit</button>
<button type="button" id="reset-btn">Reset</button>
</form>
<div id="result" class="result"></div>
<script src="./script.js"></script>
</body>
</html>