-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdemo.html
More file actions
278 lines (265 loc) · 17.6 KB
/
demo.html
File metadata and controls
278 lines (265 loc) · 17.6 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
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Interview Questionnaire</title>
<link href="https://stackpath.bootstrapcdn.com/bootstrap/4.5.2/css/bootstrap.min.css" rel="stylesheet">
<link rel="stylesheet" href="styles.css">
</head>
<body>
<!-- Splash Page -->
<div id="splashPage" class="splash-page">
<div class="splash-content">
<h1 class="text-center">Welcome to the Interview Questionnaire</h1>
<p class="text-center">Please select your preferred language:</p>
<div class="text-center">
<button class="btn btn-primary btn-lg" onclick="selectLanguage('en')">English</button>
<button class="btn btn-primary btn-lg" onclick="selectLanguage('sw')">Swahili</button>
</div>
</div>
</div>
<!-- Main Questionnaire -->
<div id="mainQuestionnaire" class="container animated-background" style="display: none;">
<h1 class="text-center my-4 text-dark font-weight-bold" id="questionnaireTitle">Interview Questionnaire</h1>
<form id="interviewForm">
<!-- Swali 1 -->
<div id="question1" class="question animated-question">
<label class="text-dark font-weight-bold" id="q1Label">1. How would you describe me to someone else?</label>
<div class="form-check">
<input class="form-check-input" type="radio" name="question1" id="q1Option1" value="Friendly" required>
<label class="form-check-label" for="q1Option1" id="q1Option1Label">Friendly</label>
</div>
<div class="form-check">
<input class="form-check-input" type="radio" name="question1" id="q1Option2" value="Hardworking">
<label class="form-check-label" for="q1Option2" id="q1Option2Label">Hardworking</label>
</div>
<div class="form-check">
<input class="form-check-input" type="radio" name="question1" id="q1Option3" value="Creative">
<label class="form-check-label" for="q1Option3" id="q1Option3Label">Creative</label>
</div>
<button type="button" class="btn btn-secondary mt-3" onclick="previousQuestion(1)" disabled id="prevButton1">Previous</button>
<button type="button" class="btn btn-primary mt-3" onclick="nextQuestion(2)" id="nextButton1">Next</button>
</div>
<!-- Swali 2 -->
<div id="question2" class="question animated-question" style="display: none;">
<label class="text-dark font-weight-bold" id="q2Label">2. What stands out about me?</label>
<div class="form-check">
<input class="form-check-input" type="radio" name="question2" id="q2Option1" value="My communication skills" required>
<label class="form-check-label" for="q2Option1" id="q2Option1Label">My communication skills</label>
</div>
<div class="form-check">
<input class="form-check-input" type="radio" name="question2" id="q2Option2" value="My dedication">
<label class="form-check-label" for="q2Option2" id="q2Option2Label">My dedication</label>
</div>
<div class="form-check">
<input class="form-check-input" type="radio" name="question2" id="q2Option3" value="My problem-solving ability">
<label class="form-check-label" for="q2Option3" id="q2Option3Label">My problem-solving ability</label>
</div>
<button type="button" class="btn btn-secondary mt-3" onclick="previousQuestion(1)" id="prevButton2">Previous</button>
<button type="button" class="btn btn-primary mt-3" onclick="nextQuestion(3)" id="nextButton2">Next</button>
</div>
<!-- Swali 3 -->
<div id="question3" class="question animated-question" style="display: none;">
<label class="text-dark font-weight-bold" id="q3Label">3. How do I inspire you?</label>
<div class="form-check">
<input class="form-check-input" type="radio" name="question3" id="q3Option1" value="By being a good leader" required>
<label class="form-check-label" for="q3Option1" id="q3Option1Label">By being a good leader</label>
</div>
<div class="form-check">
<input class="form-check-input" type="radio" name="question3" id="q3Option2" value="By always staying positive">
<label class="form-check-label" for="q3Option2" id="q3Option2Label">By always staying positive</label>
</div>
<div class="form-check">
<input class="form-check-input" type="radio" name="question3" id="q3Option3" value="By helping others">
<label class="form-check-label" for="q3Option3" id="q3Option3Label">By helping others</label>
</div>
<button type="button" class="btn btn-secondary mt-3" onclick="previousQuestion(2)" id="prevButton3">Previous</button>
<button type="button" class="btn btn-primary mt-3" onclick="nextQuestion(4)" id="nextButton3">Next</button>
</div>
<!-- Swali 4 -->
<div id="question4" class="question animated-question" style="display: none;">
<label class="text-dark font-weight-bold" id="q4Label">4. What are my strengths?</label>
<div class="form-check">
<input class="form-check-input" type="radio" name="question4" id="q4Option1" value="Teamwork" required>
<label class="form-check-label" for="q4Option1" id="q4Option1Label">Teamwork</label>
</div>
<div class="form-check">
<input class="form-check-input" type="radio" name="question4" id="q4Option2" value="Time management">
<label class="form-check-label" for="q4Option2" id="q4Option2Label">Time management</label>
</div>
<div class="form-check">
<input class="form-check-input" type="radio" name="question4" id="q4Option3" value="Adaptability">
<label class="form-check-label" for="q4Option3" id="q4Option3Label">Adaptability</label>
</div>
<button type="button" class="btn btn-secondary mt-3" onclick="previousQuestion(3)" id="prevButton4">Previous</button>
<button type="button" class="btn btn-primary mt-3" onclick="nextQuestion(5)" id="nextButton4">Next</button>
</div>
<!-- Swali 5 -->
<div id="question5" class="question animated-question" style="display: none;">
<label class="text-dark font-weight-bold" id="q5Label">5. What areas do you think I can improve on?</label>
<div class="form-check">
<input class="form-check-input" type="radio" name="question5" id="q5Option1" value="Public speaking" required>
<label class="form-check-label" for="q5Option1" id="q5Option1Label">Public speaking</label>
</div>
<div class="form-check">
<input class="form-check-input" type="radio" name="question5" id="q5Option2" value="Technical skills">
<label class="form-check-label" for="q5Option2" id="q5Option2Label">Technical skills</label>
</div>
<div class="form-check">
<input class="form-check-input" type="radio" name="question5" id="q5Option3" value="Delegation">
<label class="form-check-label" for="q5Option3" id="q5Option3Label">Delegation</label>
</div>
<button type="button" class="btn btn-secondary mt-3" onclick="previousQuestion(4)" id="prevButton5">Previous</button>
<button type="button" class="btn btn-primary mt-3" onclick="nextQuestion(7)" id="submitButton">Next</button>
</div>
<!-- Swali 7 -->
<div id="question7" class="question animated-question" style="display: none;">
<label class="text-dark font-weight-bold" id="q7Label">7. What motivates me to do my best work?</label>
<div class="form-check">
<input class="form-check-input" type="radio" name="question7" id="q7Option1" value="Passion for the work" required>
<label class="form-check-label" for="q7Option1" id="q7Option1Label">Passion for the work</label>
</div>
<div class="form-check">
<input class="form-check-input" type="radio" name="question7" id="q7Option2" value="Desire to succeed">
<label class="form-check-label" for="q7Option2" id="q7Option2Label">Desire to succeed</label>
</div>
<div class="form-check">
<input class="form-check-input" type="radio" name="question7" id="q7Option3" value="Team support">
<label class="form-check-label" for="q7Option3" id="q7Option3Label">Team support</label>
</div>
<button type="button" class="btn btn-secondary mt-3" onclick="previousQuestion(5)" id="prevButton7">Previous</button>
<button type="button" class="btn btn-primary mt-3" onclick="nextQuestion(8)" id="nextButton7">Next</button>
</div>
<!-- Swali 8 -->
<div id="question8" class="question animated-question" style="display: none;">
<label class="text-dark font-weight-bold" id="q8Label">8. How do I handle challenges?</label>
<div class="form-check">
<input class="form-check-input" type="radio" name="question8" id="q8Option1" value="I tackle them head-on" required>
<label class="form-check-label" for="q8Option1" id="q8Option1Label">I tackle them head-on</label>
</div>
<div class="form-check">
<input class="form-check-input" type="radio" name="question8" id="q8Option2" value="I analyze and plan a solution">
<label class="form-check-label" for="q8Option2" id="q8Option2Label">I analyze and plan a solution</label>
</div>
<div class="form-check">
<input class="form-check-input" type="radio" name="question8" id="q8Option3" value="I seek advice from others">
<label class="form-check-label" for="q8Option3" id="q8Option3Label">I seek advice from others</label>
</div>
<button type="button" class="btn btn-secondary mt-3" onclick="previousQuestion(7)" id="prevButton8">Previous</button>
<button type="button" class="btn btn-primary mt-3" onclick="nextQuestion(10)" id="nextButton8">Next</button>
</div>
<!-- Question 10: Multiple Answers with Checkboxes -->
<div id="question10" class="question animated-question" style="display: none;">
<label class="text-dark font-weight-bold" id="q10Label">
10. Which language should I learn to improve my communication? (Select all that apply)
</label>
<div class="form-check">
<input class="form-check-input" type="checkbox" name="question10" id="q10Option1" value="English">
<label class="form-check-label" for="q10Option1">English</label>
</div>
<div class="form-check">
<input class="form-check-input" type="checkbox" name="question10" id="q10Option2" value="Spanish">
<label class="form-check-label" for="q10Option2">Spanish</label>
</div>
<div class="form-check">
<input class="form-check-input" type="checkbox" name="question10" id="q10Option3" value="French">
<label class="form-check-label" for="q10Option3">French</label>
</div>
<div class="form-check">
<input class="form-check-input" type="checkbox" name="question10" id="q10Option4" value="Mandarin">
<label class="form-check-label" for="q10Option4">Mandarin</label>
</div>
<button type="button" class="btn btn-secondary mt-3" onclick="previousQuestion(8)" id="prevButton10">Previous</button>
<button type="button" class="btn btn-primary mt-3" onclick="nextQuestion(11)" id="nextButton10">Next</button>
</div>
<!-- Question 11: Text Input for Details -->
<div id="question11" class="question animated-question" style="display: none;">
<label class="text-dark font-weight-bold" id="q11Label">11. What challenges have you faced in your career development?</label>
<textarea class="form-control" id="q11Input" rows="4" placeholder="Enter your response here..." required></textarea>
<button type="button" class="btn btn-secondary mt-3" onclick="previousQuestion(10)" id="prevButton11">Previous</button>
<button type="button" class="btn btn-primary mt-3" onclick="nextQuestion(12)" id="nextButton11">Next</button>
</div>
<!-- Question 12: Rating Question (Stars) -->
<div id="question12" class="question animated-question" style="display: none;">
<label class="text-dark font-weight-bold" id="q12Label">12. How satisfied are you with your current job?</label>
<div class="rating">
<input type="radio" id="star5" name="rating" value="5">
<label for="star5">★</label>
<input type="radio" id="star4" name="rating" value="4">
<label for="star4">★</label>
<input type="radio" id="star3" name="rating" value="3">
<label for="star3">★</label>
<input type="radio" id="star2" name="rating" value="2">
<label for="star2">★</label>
<input type="radio" id="star1" name="rating" value="1">
<label for="star1">★</label>
</div>
<button type="button" class="btn btn-secondary mt-3" onclick="previousQuestion(11)" id="prevButton12">Previous</button>
<button type="button" class="btn btn-primary mt-3" onclick="nextQuestion(13)" id="nextButton12">Next</button>
</div>
<!-- Question 13: Date Input -->
<div id="question13" class="question animated-question" style="display: none;">
<label class="text-dark font-weight-bold" id="q13Label">13. When did you start your career in programming?</label>
<input type="date" class="form-control" id="q13Date" required>
<button type="button" class="btn btn-secondary mt-3" onclick="previousQuestion(12)" id="prevButton13">Previous</button>
<button type="button" class="btn btn-primary mt-3" onclick="nextQuestion(14)" id="nextButton13">Next</button>
</div>
<!-- Question 14: Dropdown (Select one option) -->
<div id="question14" class="question animated-question" style="display: none;">
<label class="text-dark font-weight-bold" id="q14Label">14. What is your preferred method of learning?</label>
<select class="form-control" id="q14Select" required>
<option value="Online Courses">Online Courses</option>
<option value="Books">Books</option>
<option value="Workshops">Workshops</option>
<option value="Mentorship">Mentorship</option>
</select>
<button type="button" class="btn btn-secondary mt-3" onclick="previousQuestion(13)" id="prevButton14">Previous</button>
<button type="button" class="btn btn-primary mt-3" onclick="nextQuestion(15)" id="nextButton14">Next</button>
</div>
<!-- Sehemu ya Maoni -->
<div id="question15" class="question animated-question" style="display: none;">
<label class="text-dark font-weight-bold" id="q6Label">15. Any additional comments or feedback?</label>
<textarea class="form-control" id="feedback" rows="4" placeholder="Enter your comments here..."></textarea>
<button type="button" class="btn btn-secondary mt-3" onclick="previousQuestion(14)" id="prevButton6">Previous</button>
<button type="button" class="btn btn-primary mt-3" onclick="submitForm()" id="submitButton">Submit</button>
</div>
<!-- Final Page (Thank You Message) unda -->
<div id="thankYouPage" class="question animated-question" style="display: none;">
<h2 class="text-center text-dark font-weight-bold">Thank you for completing the questionnaire!</h2>
<p class="text-center">Your responses have been successfully submitted. We appreciate your time and feedback.</p>
</div>
</form>
<!-- Sehemu ya kuonyesha majibu -->
<div id="results" class="mt-4" style="display: none;">
<h2 class="text-dark font-weight-bold text-center" id="resultsTitle">Your Answers:</h2>
<ul id="answersList" class="list-group mb-4"></ul>
<div class="d-flex justify-content-around">
<button class="btn btn-outline-success btn-lg" onclick="sendViaEmail()" id="emailButton">
Send via Email
</button>
<button class="btn btn-outline-success btn-lg" onclick="sendViaWhatsApp()" id="whatsappButton">
Send via WhatsApp
</button>
</div>
</div>
<!-- Footer -->
<footer class="footer">
<div class="container text-center">
<p>© 2025 PatriceTech. All Rights Reserved.</p>
<div class="social-icons">
<a href="https://wa.me/25571486409" target="_blank" title="WhatsApp"><i class="fab fa-whatsapp"></i></a>
<a href="https://github.com/YourGitHub" target="_blank" title="GitHub"><i class="fab fa-github"></i></a>
<a href="https://www.linkedin.com/in/YourProfile" target="_blank" title="LinkedIn"><i class="fab fa-linkedin"></i></a>
<a href="https://www.instagram.com/YourUsername" target="_blank" title="Instagram"><i class="fab fa-instagram"></i></a>
<a href="https://www.youtube.com/channel/YourChannel" target="_blank" title="YouTube"><i class="fab fa-youtube"></i></a>
<a href="https://t.me/YourTelegram" target="_blank" title="Telegram"><i class="fab fa-telegram"></i></a>
</div>
</div>
</footer>
<script src="https://code.jquery.com/jquery-3.5.1.slim.min.js"></script>
<script src="https://cdn.jsdelivr.net/npm/@popperjs/core@2.5.2/dist/umd/popper.min.js"></script>
<script src="https://stackpath.bootstrapcdn.com/bootstrap/4.5.2/js/bootstrap.min.js"></script>
<script src="scripts.js"></script>
</body>
</html>