bChaukar commited on
Commit
b700c49
·
verified ·
1 Parent(s): 28208b6

Update assessment.html

Browse files
Files changed (1) hide show
  1. assessment.html +201 -57
assessment.html CHANGED
@@ -1,92 +1,236 @@
1
  <!DOCTYPE html>
 
2
  <html lang="en">
3
 
4
  <head>
5
  <meta charset="UTF-8">
6
  <meta name="viewport" content="width=device-width, initial-scale=1.0">
7
 
8
- <title>Initial Assessment - RISE</title>
 
 
 
 
9
 
10
- <link rel="stylesheet" href="style.css">
11
  </head>
12
 
13
  <body>
14
 
15
- <div class="signup-container">
16
-
17
- <div class="signup-box">
18
 
19
- <div class="logo">
20
- RISE
21
- </div>
22
 
23
- <h1>Let's get to know you</h1>
 
 
24
 
25
- <p class="signup-subtitle">
26
- Answer a few questions so RISE can personalize your practice.
27
- </p>
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
28
 
29
- <form onsubmit="goToDashboard(event)">
30
 
31
- <label>How confident are you when speaking with others?</label>
32
 
33
- <select required>
34
- <option value="">Select your confidence level</option>
35
- <option value="beginner">I find speaking difficult</option>
36
- <option value="intermediate">I am somewhat comfortable</option>
37
- <option value="confident">I am confident speaking</option>
38
- </select>
39
 
 
40
 
41
- <label>What would you like to improve?</label>
42
 
43
- <select required>
44
- <option value="">Select an area</option>
45
- <option value="speaking">Speaking</option>
46
- <option value="reading">Reading & Fluency</option>
47
- <option value="pronunciation">Pronunciation</option>
48
- <option value="conversation">Everyday Conversation</option>
49
- <option value="emotion">Understanding Emotions</option>
50
- </select>
51
 
 
52
 
53
- <label>How comfortable are you in everyday conversations?</label>
54
 
55
- <select required>
56
- <option value="">Select your comfort level</option>
57
- <option value="low">Not very comfortable</option>
58
- <option value="medium">Somewhat comfortable</option>
59
- <option value="high">Very comfortable</option>
60
- </select>
61
 
 
 
 
62
 
63
- <label>What is your main goal?</label>
64
 
65
- <select required>
66
- <option value="">Select your goal</option>
67
- <option value="confidence">Build speaking confidence</option>
68
- <option value="fluency">Improve fluency</option>
69
- <option value="pronunciation">Improve pronunciation</option>
70
- <option value="conversation">Communicate more naturally</option>
71
- <option value="social">Feel more comfortable socially</option>
72
- </select>
73
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
74
 
75
- <button type="submit" class="primary-btn">
76
- Continue
77
- </button>
78
 
79
- </form>
 
80
 
81
- </div>
 
82
 
83
- </div>
84
- <script>
85
- function goToDashboard(event) {
86
- event.preventDefault();
87
- window.location.href = "dashboard.html";
88
- }
89
  </script>
 
 
90
  </body>
91
 
92
- </html>
 
1
  <!DOCTYPE html>
2
+
3
  <html lang="en">
4
 
5
  <head>
6
  <meta charset="UTF-8">
7
  <meta name="viewport" content="width=device-width, initial-scale=1.0">
8
 
9
+ ```
10
+ <title>Initial Assessment - RISE</title>
11
+
12
+ <link rel="stylesheet" href="style.css">
13
+ ```
14
 
 
15
  </head>
16
 
17
  <body>
18
 
19
+ ```
20
+ <div class="signup-container">
 
21
 
22
+ <div class="signup-box">
 
 
23
 
24
+ <div class="logo">
25
+ RISE
26
+ </div>
27
 
28
+ <h1>Let's get to know you</h1>
29
+
30
+ <p class="signup-subtitle">
31
+ Complete this short assessment so RISE can personalize
32
+ your communication journey.
33
+ </p>
34
+
35
+ <form onsubmit="calculateAssessment(event)">
36
+
37
+ <!-- Question 1 -->
38
+ <label>
39
+ 1. How comfortable are you speaking with someone you don't know?
40
+ </label>
41
+
42
+ <select name="q1" required>
43
+ <option value="">Select an answer</option>
44
+ <option value="1">I find it very difficult</option>
45
+ <option value="2">I feel somewhat comfortable</option>
46
+ <option value="3">I am comfortable</option>
47
+ <option value="4">I am very comfortable</option>
48
+ </select>
49
+
50
+
51
+ <!-- Question 2 -->
52
+ <label>
53
+ 2. How well can you introduce yourself?
54
+ </label>
55
+
56
+ <select name="q2" required>
57
+ <option value="">Select an answer</option>
58
+ <option value="1">I struggle to introduce myself</option>
59
+ <option value="2">I can say a few basic things</option>
60
+ <option value="3">I can introduce myself clearly</option>
61
+ <option value="4">I can introduce myself confidently</option>
62
+ </select>
63
+
64
+
65
+ <!-- Question 3 -->
66
+ <label>
67
+ 3. How comfortable are you speaking in complete sentences?
68
+ </label>
69
+
70
+ <select name="q3" required>
71
+ <option value="">Select an answer</option>
72
+ <option value="1">Very difficult</option>
73
+ <option value="2">Somewhat difficult</option>
74
+ <option value="3">Usually comfortable</option>
75
+ <option value="4">Very comfortable</option>
76
+ </select>
77
+
78
+
79
+ <!-- Question 4 -->
80
+ <label>
81
+ 4. How well can you express your thoughts during a conversation?
82
+ </label>
83
+
84
+ <select name="q4" required>
85
+ <option value="">Select an answer</option>
86
+ <option value="1">I struggle to express them</option>
87
+ <option value="2">I can express simple thoughts</option>
88
+ <option value="3">I can explain my thoughts clearly</option>
89
+ <option value="4">I can explain detailed thoughts naturally</option>
90
+ </select>
91
+
92
+
93
+ <!-- Question 5 -->
94
+ <label>
95
+ 5. Someone asks, "How was your day?" What would you most likely do?
96
+ </label>
97
+
98
+ <select name="q5" required>
99
+ <option value="">Select an answer</option>
100
+ <option value="1">Give a very short answer or avoid answering</option>
101
+ <option value="2">Give a simple answer</option>
102
+ <option value="3">Give an answer with some details</option>
103
+ <option value="4">Give a detailed answer and continue the conversation</option>
104
+ </select>
105
+
106
+
107
+ <!-- Question 6 -->
108
+ <label>
109
+ 6. If you don't understand what someone said, what would you do?
110
+ </label>
111
+
112
+ <select name="q6" required>
113
+ <option value="">Select an answer</option>
114
+ <option value="1">Stay silent</option>
115
+ <option value="2">Try to guess what they meant</option>
116
+ <option value="3">Ask them to repeat</option>
117
+ <option value="4">Politely ask them to explain or rephrase</option>
118
+ </select>
119
+
120
+
121
+ <!-- Question 7 -->
122
+ <label>
123
+ 7. How comfortable are you continuing a conversation after the other person answers you?
124
+ </label>
125
+
126
+ <select name="q7" required>
127
+ <option value="">Select an answer</option>
128
+ <option value="1">I usually don't know what to say</option>
129
+ <option value="2">I can continue with difficulty</option>
130
+ <option value="3">I can usually continue</option>
131
+ <option value="4">I can naturally keep the conversation going</option>
132
+ </select>
133
+
134
+
135
+ <!-- Question 8 -->
136
+ <label>
137
+ 8. How well can you understand someone's emotion from their facial expression or tone?
138
+ </label>
139
+
140
+ <select name="q8" required>
141
+ <option value="">Select an answer</option>
142
+ <option value="1">I find it very difficult</option>
143
+ <option value="2">I sometimes understand</option>
144
+ <option value="3">I usually understand</option>
145
+ <option value="4">I understand emotions quite well</option>
146
+ </select>
147
+
148
+
149
+ <!-- Question 9 -->
150
+ <label>
151
+ 9. How comfortable are you reading a short paragraph aloud?
152
+ </label>
153
+
154
+ <select name="q9" required>
155
+ <option value="">Select an answer</option>
156
+ <option value="1">Very uncomfortable</option>
157
+ <option value="2">Somewhat uncomfortable</option>
158
+ <option value="3">Comfortable</option>
159
+ <option value="4">Very comfortable</option>
160
+ </select>
161
+
162
+
163
+ <!-- Question 10 -->
164
+ <label>
165
+ 10. How confident are you about improving your communication skills?
166
+ </label>
167
+
168
+ <select name="q10" required>
169
+ <option value="">Select an answer</option>
170
+ <option value="1">I am not confident yet</option>
171
+ <option value="2">I am slightly confident</option>
172
+ <option value="3">I am confident</option>
173
+ <option value="4">I am very confident and ready to practice</option>
174
+ </select>
175
+
176
+
177
+ <button type="submit" class="primary-btn">
178
+ Complete Assessment
179
+ </button>
180
+
181
+ </form>
182
 
183
+ </div>
184
 
185
+ </div>
186
 
 
 
 
 
 
 
187
 
188
+ <script>
189
 
190
+ function calculateAssessment(event) {
191
 
192
+ event.preventDefault();
 
 
 
 
 
 
 
193
 
194
+ const form = event.target;
195
 
196
+ let totalScore = 0;
197
 
198
+ for (let i = 1; i <= 10; i++) {
 
 
 
 
 
199
 
200
+ totalScore += Number(
201
+ form.querySelector(`[name="q${i}"]`).value
202
+ );
203
 
204
+ }
205
 
206
+ let level;
 
 
 
 
 
 
 
207
 
208
+ if (totalScore <= 15) {
209
+ level = 1;
210
+ }
211
+ else if (totalScore <= 23) {
212
+ level = 2;
213
+ }
214
+ else if (totalScore <= 29) {
215
+ level = 3;
216
+ }
217
+ else if (totalScore <= 35) {
218
+ level = 4;
219
+ }
220
+ else {
221
+ level = 5;
222
+ }
223
 
 
 
 
224
 
225
+ localStorage.setItem("assessmentScore", totalScore);
226
+ localStorage.setItem("startingLevel", level);
227
 
228
+ window.location.href = "dashboard.html";
229
+ }
230
 
 
 
 
 
 
 
231
  </script>
232
+ ```
233
+
234
  </body>
235
 
236
+ </html>