-
Notifications
You must be signed in to change notification settings - Fork 46
Expand file tree
/
Copy pathindex.html
More file actions
171 lines (165 loc) · 5.53 KB
/
index.html
File metadata and controls
171 lines (165 loc) · 5.53 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
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
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<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=Inter:ital,opsz,wght@0,14..32,100..900;1,14..32,100..900&display=swap"
rel="stylesheet"
/>
<title>Web Accessibility Quiz</title>
<link rel="stylesheet" href="styles.css" />
</head>
<body>
<a href="#mainContent" class="skip-link">Skip to main content</a>
<header id="header">
<div class="headerInner">
<h1 id="site-title">Web Accessibility Quiz</h1>
<div class="headerContent">
<nav aria-label="Main menu">
<a href="index.html">Home</a>
<a href="about.html">About</a>
</nav>
</div>
</div>
</header>
<main id="mainContent">
<section id="quiz-container" class="quiz-container" hidden>
<div class="progress-container" id="progress-container">
<div class="progress-text" id="progress-text"></div>
<div class="progress-bar" id="progress-bar">
<div class="progress-fill" id="progress-fill"></div>
</div>
</div>
<h2 id="question-heading" class="question-heading"></h2>
<fieldset
class="question-fieldset"
id="question-fieldset"
aria-labelledby="question-heading"
></fieldset>
<div
class="feedback-message"
id="feedback-message"
aria-live="polite"
role="alert"
></div>
<button class="submit-btn" id="submit-btn">Submit</button>
<button class="next-btn" id="next-btn" hidden>Next question</button>
</section>
<div class="resultCard" id="resultCard" hidden>
<div class="container">
<h2 class="result-heading">Result</h2>
<div
class="result-message"
id="resultMessage"
aria-live="polite"
role="status"
></div>
<img
src="img/results.png"
alt=""
role="presentation"
class="resultImg"
id="resultImg"
/>
<button class="back-to-main-btn" id="back-to-main-btn">
Back to main
</button>
</div>
</div>
<section id="banner">
<button
class="startQuizButton"
id="start-quiz-btn"
aria-label="Start the web accessibility quiz"
>
Start Quiz
</button>
<img src="img/HQbanner.png" alt="" id="bannerImg" />
</section>
<section id="introduction" aria-labelledby="intro-heading">
<div class="formControls introSection">
<div class="container">
<h2 id="intro-heading">Four Principles of Accessibility</h2>
<div class="cardsContainer">
<div class="cards" role="listitem">
<img
src="img/HQprinciple1.png"
class="principlesImg"
alt="A human head, symbolizing perception."
/>
<h3>Perception</h3>
<p>
Information and user interface components must be presentable
to users in ways they can perceive.
</p>
</div>
<div class="cards" role="listitem">
<img
src="img/HQprinciple2.png"
class="principlesImg"
alt="A car, symbolizing operable user interfaces."
/>
<h3>Operable</h3>
<p>
User interface components and navigation must be operable by
all users.
</p>
</div>
<div class="cards" role="listitem">
<img
src="img/HQprinciple3.png"
class="principlesImg"
alt="A brain-shaped cloud, symbolizing understandability."
/>
<h3>Understandable</h3>
<p>
Information and the operation of the user interface must be
understandable.
</p>
</div>
<div class="cards" role="listitem">
<img
src="img/HQprinciple4.png"
class="principlesImg"
alt="A keyboard, symbolizing robustness."
/>
<h3>Robust</h3>
<p>
Content must be robust enough to be interpreted reliably by a
wide variety of user agents, including assistive technologies.
</p>
</div>
</div>
</div>
</div>
</section>
</main>
<div
id="spinner-container"
class="spinner-container"
role="status"
aria-live="polite"
hidden
>
<div class="spinner" aria-label="Loading content"></div>
<span class="sr-only">Loading content...</span>
</div>
<hr />
<footer role="contentInfo">
<div class="footerContent">
<p class="footer-text">For everyone. Built by Ida, Oskar and Tilde.</p>
<img
src="img/idaoskartilde.svg"
alt=""
role="presentation"
class="footer-logo"
/>
</div>
</footer>
<script src="quizdata.js"></script>
<script src="js/main.js"></script>
</body>
</html>