-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathquestion.js
More file actions
459 lines (424 loc) · 38.6 KB
/
Copy pathquestion.js
File metadata and controls
459 lines (424 loc) · 38.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
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
var states = ["AL", "AK", "AZ", "AR", "CA", "CO", "CT", "DE", "DC", "FL", "GA", "HI", "ID", "IL", "IN", "IA", "KS", "KY", "LA", "ME", "MD", "MA", "MI", "MN", "MS", "MO", "MT", "NE", "NV", "NH", "NM", "NJ", "NY", "NC", "ND", "OH", "OK", "OR", "PA", "RI", "SC", "SD", "TN", "TX", "UT", "VT", "VA", "WA", "WV", "WI", "WY"];
function Quiz(questions) {
this.questions = questions;
this.questionIndex = 0;
}
Quiz.prototype.getQuestionIndex = function() {
return this.questions[this.questionIndex];
}
Quiz.prototype.guess = function(answer, lang = "en") {
if(this.getQuestionIndex().isCorrectAnswer(answer)) {
if(lang === "en") {
results(this.getQuestionIndex().getTitle(), this.getQuestionIndex().getText());
} else {
results(this.getQuestionIndex().getTitle(), this.getQuestionIndex().getText(), "vi");
}
}
this.questionIndex++;
}
Quiz.prototype.isEnded = function() {
return this.questionIndex === this.questions.length;
}
function Question(text, choices, answer, title, descr) {
this.text = text;
this.choices = choices;
this.answer = answer;
this.title = title;
this.descr = descr;
}
Question.prototype.isCorrectAnswer = function(choice) {
return this.answer === choice;
}
Question.prototype.getTitle = function() {
return this.title;
}
Question.prototype.getText = function() {
return this.descr;
}
function populate(lang = "en") {
if(quiz.isEnded()) {
if (lang === "en"){
notQualified();
} else {
notQualified("vi");
}
} else {
var element = document.getElementById("question");
element.innerHTML = quiz.getQuestionIndex().text;
var choices = quiz.getQuestionIndex().choices;
for(var i = 0; i < choices.length; i++) {
var element = document.getElementById("choice" + i);
element.innerHTML = choices[i];
if (lang === "en"){
guess("btn" + i, choices[i]);
} else {
guess("btn" + i, choices[i], "vi");
}
}
}
};
function guess(id, guess, lang="en") {
var button = document.getElementById(id);
button.onclick = function() {
if (lang === "en"){
quiz.guess(guess);
populate();
} else {
quiz.guess(guess,"vi");
populate("vi");
}
}
};
function redoQuiz(state="NY") {
var element = document.getElementById("quiz");
element.innerHTML = "<h1>Unemployment Qualification Test</h1><p id=\"question\"></p><div class=\"buttons\"><button id=\"btn0\"><span id=\"choice0\"></span></button><button id=\"btn1\"><span id=\"choice1\"></span></button></div>";
switch(state) {
case "AL":
quiz = new Quiz(al);
break;
case "AK":
quiz = new Quiz(ak);
break;
case "AZ":
quiz = new Quiz(az);
break;
case "AR":
quiz = new Quiz(ar);
break;
case "CA":
quiz = new Quiz(ca);
break;
case "CO":
quiz = new Quiz(co);
break;
case "CT":
quiz = new Quiz(ct);
break;
case "DE":
quiz = new Quiz(de);
break;
case "DC":
quiz = new Quiz(dc);
break;
case "FL":
quiz = new Quiz(fl);
break
case "GA":
quiz = new Quiz(ga);
break;
case "HI":
quiz = new Quiz(hi);
break;
case "ID":
quiz = new Quiz(id);
break;
case "IL":
quiz = new Quiz(il);
break;
case "IN":
quiz = new Quiz(ind);
break;
case "IA":
quiz = new Quiz(ia);
break;
case "KS":
quiz = new Quiz(ks);
break;
case "KY":
quiz = new Quiz(ky);
break;
case "LA":
quiz = new Quiz(la);
break;
case "ME":
quiz = new Quiz(me);
break;
case "MD":
quiz = new Quiz(md);
break;
case "MA":
quiz = new Quiz(ma);
break;
case "MI":
quiz = new Quiz(mi);
break;
case "MN":
quiz = new Quiz(mn);
break;
case "MS":
quiz = new Quiz(ms);
break;
case "MO":
quiz = new Quiz(mo);
break;
case "MT":
quiz = new Quiz(mt);
break;
case "NE":
quiz = new Quiz(ne);
break
case "NV":
quiz = new Quiz(nv);
break;
case "NH":
quiz = new Quiz(nh);
break;
case "NJ":
quiz = new Quiz(nj);
break;
case "NM":
quiz = new Quiz(nm);
break;
case "NY":
quiz = new Quiz(ny);
break;
case "NC":
quiz = new Quiz(nc);
break;
case "ND":
quiz = new Quiz(nd);
break;
case "OH":
quiz = new Quiz(oh);
break;
case "OK":
quiz = new Quiz(ok);
break;
case "OR":
quiz = new Quiz(or);
break;
case "PA":
quiz = new Quiz(pa);
break;
case "RI":
quiz = new Quiz(ri);
break;
case "SC":
quiz = new Quiz(sc);
break;
case "SD":
quiz = new Quiz(sd);
break;
case "TN":
quiz = new Quiz(tn);
break;
case "TX":
quiz = new Quiz(tx);
break
case "UT":
quiz = new Quiz(ut);
break;
case "VT":
quiz = new Quiz(vt);
break;
case "VA":
quiz = new Quiz(va);
break;
case "WA":
quiz = new Quiz(wa);
break;
case "WV":
quiz = new Quiz(wv);
break;
case "WI":
quiz = new Quiz(wi);
break;
case "WY":
quiz = new Quiz(wy);
break;
default:
quiz = new Quiz(nj);
}
populate();
}
function redoQuizViet() {
var element = document.getElementById("quiz");
element.innerHTML = "<h1>Kiểm tra trình độ thất nghiệp</h1><p id=\"question\"></p><div class=\"buttons\"><button id=\"btn0\"><span id=\"choice0\"></span></button><button id=\"btn1\"><span id=\"choice1\"></span></button></div>";
quiz = new Quiz(baseViet);
populate("vi");
}
function getStarted() {
var element = document.getElementById("quiz");
element.innerHTML = "<h1>Unemployment Qualification Test</h1><p id=\"question\"></p><div class=\"buttons\"><button id=\"btn0\" onclick=\"chooseLanguage()\">Get Started</div>";
}
function chooseLanguage() {
var element = document.getElementById("quiz");
element.innerHTML = "<h1>Unemployment Qualification Test</h1><p id=\"question\">Select your language</p><div class=\"buttons\"><button id=\"btn0\" onclick=\"chooseQuiz();\"><span id=\"choice0\">English</span></button><button id=\"btn1\" onclick=\"chooseQuiz('vi');\"><span id=\"choice1\">Tiếng Việt</span></button></div>";
}
function chooseQuiz(lang="en") {
var element = document.getElementById("quiz");
if(lang==="en"){
element.innerHTML = "<h1>Unemployment Qualification Test</h1><p id=\"question\">Are you seeking relief from COVID-19?</p><div class=\"buttons\"><button id=\"btn0\" onclick=\"covidQuiz();\"><span id=\"choice0\">Yes</span></button><button id=\"btn1\" onclick=\"chooseState();\"><span id=\"choice1\">No</span></button></div>";
} else {
element.innerHTML = "<h1>Kiểm tra trình độ thất nghiệp</h1><p id=\"question\">Bạn đang tìm kiếm sự cứu trợ từ COVID-19?</p><div class=\"buttons\"><button id=\"btn0\" onclick=\"covidQuiz('vi');\"><span id=\"choice0\">Đúng</span></button><button id=\"btn1\" onclick=\"redoQuizViet();\"><span id=\"choice1\">Không</span></button></div>";
}
}
function covidQuiz(lang="en") {
var element = document.getElementById("quiz");
if(lang==="en"){
element.innerHTML = "<h1>Unemployment Qualification Test</h1><p id=\"question\"></p><div class=\"buttons\"><button id=\"btn0\"><span id=\"choice0\"></span></button><button id=\"btn1\"><span id=\"choice1\"></span></button></div>";
quiz = new Quiz(covid19);
populate();
} else {
element.innerHTML = "<h1>Kiểm tra trình độ thất nghiệp</h1><p id=\"question\"></p><div class=\"buttons\"><button id=\"btn0\"><span id=\"choice0\"></span></button><button id=\"btn1\"><span id=\"choice1\"></span></button></div>";
quiz = new Quiz(covid19Viet);
populate("vi");
}
}
function chooseState() {
var element = document.getElementById("quiz");
var buttons = ''
for (var i = 0; i < states.length; i++) {
buttons += "<button id=\"btn0\" onclick=\"redoQuiz('" + states[i] + "');\"><span id=\"choice1\">" + states[i] + "</span></button>";
}
element.innerHTML = "<h1>Unemployment Qualification Test</h1><p id=\"question\">Select your state</p><div class=\"buttons\">" + buttons + "</div>";
}
function results(title, text,lang="en") {
var gameOverHTML = "<h1>"+title+"</h1>";
if(lang==="en"){
gameOverHTML += "<h2 id='score'> "+text+"</h2> <div class=\"buttons\"><center><button id=\"btn2\" onclick=\"getStarted(); \">Take the quiz again</button></center>";
} else {
gameOverHTML += "<h2 id='score'> "+text+"</h2> <div class=\"buttons\"><center><button id=\"btn2\" onclick=\"getStarted(); \">Làm bài kiểm tra một lần nữa</button></center>";
}
var element = document.getElementById("quiz");
element.innerHTML = gameOverHTML;
};
function notQualified(lang="en") {
if(lang==="en"){
var gameOverHTML = "<h1>Not Qualified</h1>";
gameOverHTML += "<h2 id='score'>Unfortunately, you are not qualified to receive unemployment benefits in your state.</h2><div class=\"buttons\"><center><button id=\"btn2\" onclick=\"getStarted(); \">Take the quiz again</button></center>";
} else {
var gameOverHTML = "<h1>Không chất lượng</h1>";
gameOverHTML += "<h2 id='score'>Thật không may, bạn không đủ điều kiện để nhận trợ cấp thất nghiệp trong tiểu bang của bạn.</h2><div class=\"buttons\"><center><button id=\"btn2\" onclick=\"getStarted(); \">Làm bài kiểm tra một lần nữa</button></center>";
}
var element = document.getElementById("quiz");
element.innerHTML = gameOverHTML;
};
var covid19Viet = [
new Question("Chỗ làm có cắt giảm giờ làm của anh/chị bởi ảnh hưởng của chính sách phòng chống Covid-19 không?", ["Đúng", "Không"], "Đúng", "Đủ tiêu chuẩn", "Bạn có thể đủ điều kiện để thất nghiệp theo đạo luật cứu trợ coronavirus quốc gia. Bạn nên đăng ký bảo hiểm thất nghiệp."),
new Question("Anh/chị có tự cách ly vì Covid-19 và không thể đi làm không?", ["Đúng", "Không"], "Đúng", "Đủ tiêu chuẩn", "Bạn có thể đủ điều kiện để thất nghiệp theo đạo luật cứu trợ coronavirus quốc gia. Bạn nên đăng ký bảo hiểm thất nghiệp."),
new Question("Anh/chị có không thể đi làm vì sợ tiếp xúc với Covid-19 ở chỗ làm không?", ["Đúng", "Không"], "Đúng", "Đủ tiêu chuẩn", "Bạn có thể đủ điều kiện để thất nghiệp theo đạo luật cứu trợ coronavirus quốc gia. Bạn nên đăng ký bảo hiểm thất nghiệp."),
new Question("Anh/chị có không thể đi làm vì phải chăm sóc người thân bị nhiễm Covid-19?", ["Đúng", "Không"], "Đúng", "Đủ tiêu chuẩn", "Bạn có thể đủ điều kiện để thất nghiệp theo đạo luật cứu trợ coronavirus quốc gia. Bạn nên đăng ký bảo hiểm thất nghiệp."),
];
var baseViet = [
new Question("Bạn đã bị sa thải khỏi công việc của bạn hoặc bạn đã bỏ công việc của bạn?", ["Đúng", "Không"], "Đúng", "Không chất lượng", "Bạn sẽ cần được xem xét bởi một giám khảo yêu cầu thông qua một cuộc phỏng vấn tìm hiểu thực tế. Chủ lao động của bạn cũng có thể được liên lạc và người kiểm tra sẽ xác định tư cách của bạn."),
new Question("Bạn đang tích cực tìm kiếm việc làm và bạn có sẵn sàng cho công việc?", ["Đúng", "Không"], "Đúng", "Không chất lượng", "Bạn phải tìm kiếm việc làm để đủ điều kiện nhận trợ cấp thất nghiệp."),
new Question("Trong vòng 4 của 5 quí vừa qua, anh/chị có kiếm được nhiều hơn $10,000 đôla không?", ["Đúng", "Không"], "Không", "Không chất lượng", "Nếu bạn không đáp ứng yêu cầu thu nhập tối thiểu, bạn không đủ điều kiện nhận trợ cấp thất nghiệp."),
];
var covid19 = [
new Question("Did your employer cease operations due to COVID-19?", ["Yes", "No"], "Yes", "Qualified", "You may qualify for unemployment under the national coronavirus releif act. You should apply for unemployment insurance."),
new Question("Did you stop working to quarantine and expect to work after quarantine is over?", ["Yes", "No"], "Yes", "Qualified", "You may qualify for unemployment under the national coronavirus releif act. You should apply for unemployment insurance."),
new Question("Did you stop working due to risk of exposure or to care for a family member?", ["Yes", "No"], "Yes", "Qualified", "You may qualify for unemployment under the national coronavirus releif act. You should apply for unemployment insurance."),
new Question("Did the breadwinner in your household die from COVID-19?", ["Yes", "No"], "Yes", "Qualified", "You may qualify for unemployment under the national coronavirus releif act. You should apply for unemployment insurance."),
];
var base = [
new Question("Did you leave your job voluntarily or were you fired?", ["Yes", "No"], "Yes", "Not Qualified", "You will need to be reviewed by a claims examiner through a fact-finding interview. Your employer may also be contacted and the examineer will determine your eligibility."),
new Question("Are you actively seeking employment and are you available for work?", ["Yes", "No"], "Yes", "Not Qualified", "You must be seeking employment in order to qualify for unemployment benefits."),
new Question("Do you meet the minimum earnings requirement of $10k during (a) your regular base year period (first four of the last five completed calendar quarters) or $200/week for 20 weeks, (b) the four most recently completed calendar quarters preceding the date of the claim, or (c) the three most recently completed calendar quarters preceding the date of claim, and weeks and wages in the filing quarter up to your last day of work?", ["Yes", "No"], "No", "Not Qualified", "If you don't meet the minimum earnings requirement, you do not qualify for unemployment benefits."),
// new Question("Are you a teacher or school employee?", ["Yes", "No"], "Yes", "Maybe Qualified", "If you have a claimed filed curing a recess period, only school wages in the base period of the claim, or an offer to return to work for a school employer when the recess period ends, you may not be eligibile, although eligibility depends on your unique situation."),
// new Question("Are you a corporate officer or business owner?", ["Yes", "No"], "Yes", "Maybe Qualified", "If you own more than a 5 percent equitable (you own more than 5% of the capital stock of the corporation, either by yourself or with your spouse) or debt interest and your claim is based on wages with the corproation, you will not be considered unemployed during your term of office or ownership."),
// new Question("Are you self-employed, a part-time worker, or an independent contractor?", ["Yes", "No"], "Yes", "Qualified", "You may qualify for unemployment under the national coronavirus releif act. You should apply for unemployment insurance."),
];
var al = $.extend( {}, base );
var ak = $.extend( {}, base );
var az = $.extend( {}, base );
var ar = $.extend( {}, base );
var ca = $.extend( {}, base );
var co = $.extend( {}, base );
var ct = $.extend( {}, base );
var de = $.extend( {}, base );
var dc = $.extend( {}, base );
var fl = $.extend( {}, base );
var ga = $.extend( {}, base );
var hi = $.extend( {}, base );
var id = $.extend( {}, base );
var il = $.extend( {}, base );
var ind = $.extend( {}, base );
var ia = $.extend( {}, base );
var ks = $.extend( {}, base );
var ky = $.extend( {}, base );
var la = $.extend( {}, base );
var me = $.extend( {}, base );
var md = $.extend( {}, base );
var ma = $.extend( {}, base );
var mi = $.extend( {}, base );
var mn = $.extend( {}, base );
var ms = $.extend( {}, base );
var mo = $.extend( {}, base );
var mt = $.extend( {}, base );
var ne = $.extend( {}, base );
var nv = $.extend( {}, base );
var nh = $.extend( {}, base );
var nm = $.extend( {}, base );
var nj = $.extend( {}, base );
var ny = $.extend( {}, base );
var nc = $.extend( {}, base );
var nd = $.extend( {}, base );
var oh = $.extend( {}, base );
var ok = $.extend( {}, base );
var or = $.extend( {}, base );
var pa = $.extend( {}, base );
var ri = $.extend( {}, base );
var sc = $.extend( {}, base );
var sd = $.extend( {}, base );
var tn = $.extend( {}, base );
var tx = $.extend( {}, base );
var ut = $.extend( {}, base );
var vt = $.extend( {}, base );
var va = $.extend( {}, base );
var wa = $.extend( {}, base );
var wv = $.extend( {}, base );
var wi = $.extend( {}, base );
var wy = $.extend( {}, base );
al[2] = new Question("Do you meet the minimum earnings requirement of having worked in at least two quarters of the last base period, having earned at least 1.5x your earnings in the highest paid quarter of the period, and having an average quarterly earning during the two highest paid quarters of at least $1157.01? Your base period is defined as the earliest four of the five complete calendar quarters before you filed your benefits claim.", ["Yes", "No"], "No", "Not Qualified", "If you do not meet the minimum earnings requirement, you do not qualify for unemployment benefits.")
ak[2] = new Question("Do you meet the minimum earnings requirement of having earned wages at least $2,500 in two quarters of the base period? Your base period is defined as the earliest four of the five complete calendar quarters before you filed your benefits claim.", ["Yes", "No"], "No", "Not Qualified", "If you do not meet the minimum earnings requirement, you do not qualify for unemployment benefits.")
az[2] = new Question("Do you meet the minimum earnings requirement of having earned $4,680 a quarter with at least $7,020 over the entire year? The total of the other three quarters must equal at least one half of the amount in your high quarter. Your base period is defined as the earliest four of the five complete calendar quarters before you filed your benefits claim.", ["Yes", "No"], "No", "Not Qualified", "If you do not meet the minimum earnings requirement, you do not qualify for unemployment benefits.")
ar[2] = new Question("Do you meet the minimum earnings requirement of having earned wages in at least two quarters of the base period, making at least 35x your weekly benefit amount during the entire base period? To qualify you must make equal to or greater than $2,835.00. Your base period is defined as the earliest four of the five complete calendar quarters before you filed your benefits claim.", ["Yes", "No"], "No", "Not Qualified", "If you do not meet the minimum earnings requirement, you do not qualify for unemployment benefits.")
ca[2] = new Question("Do you meet the minimum earnings requirement of having earned at least $1,300 in your highest paid quarter of the base period with at least $900 in your highest paid quarter of the base period and at least 1.25x your earnings in the highest paid quarter during the entire base period? Your base period is defined as the earliest four of the five complete calendar quarters before you filed your benefits claim.", ["Yes", "No"], "No", "Not Qualified", "If you do not meet the minimum earnings requirement, you do not qualify for unemployment benefits.")
co[2] = new Question("Do you meet the minimum earnings requirement of having earned at least $2,500 in the last base period? Your base period is defined as the earliest four of the five complete calendar quarters before you filed your benefits claim.", ["Yes", "No"], "No", "Not Qualified", "If you do not meet the minimum earnings requirement, you do not qualify for unemployment benefits.")
ct[2] = new Question("Do you meet the minimum earnings requirement of having earned at least 40 times the weekly benefit rate? (Weekly benefit amount is the average of your wages from the two highest quarters in your base period divded by 26, up to $698.) Your base period is defined as the earliest four of the five complete calendar quarters before you filed your benefits claim.", ["Yes", "No"], "No", "Not Qualified", "If you do not meet the minimum earnings requirement, you do not qualify for unemployment benefits.")
de[2] = new Question("Do you meet the minimum earnings requirement of having earned at least $720 in the last base period? Your base period is defined as the earliest four of the five complete calendar quarters before you filed your benefits claim.", ["Yes", "No"], "No", "Not Qualified", "If you do not meet the minimum earnings requirement, you do not qualify for unemployment benefits.")
dc[2] = new Question("Do you meet the minimum earnings requirement of having earned at least $1,300 in your highest paid quarter of the base period, at least $1,950 during the entire base period, and earned wages in at least two quarters of the base period? Your earnings during the entire base period must be at least 1.5 times your earnings in the highest paid quarter of the base period, or within $70 of that amount. Your base period is defined as the earliest four of the five complete calendar quarters before you filed your benefits claim.", ["Yes", "No"], "No", "Not Qualified", "If you do not meet the minimum earnings requirement, you do not qualify for unemployment benefits.")
fl[2] = new Question("Did you earn wages in at least two quarters, with the total wages at least 1.5x the highest quarter and at least $3400 during the entire base period? Your base period is defined as the earliest four of the five complete calendar quarters before you filed your benefits claim.", ["Yes", "No"], "No", "Not Qualified", "If you do not meet the minimum earnings requirement, you do not qualify for unemployment benefits.")
ga[2] = new Question("Did you earn wages in at least two quarters of the base period with at least $1134 during the two highest quarters and total wages of at least 1.5x the highest quarter? Your base period is defined as the earliest four of the five complete calendar quarters before you filed your benefits claim.", ["Yes", "No"], "No", "Not Qualified", "If you do not meet the minimum earnings requirement, you do not qualify for unemployment benefits.")
hi[2] = new Question("Did you earn wages in at least two quarters of the base period with at least $3380 for the entire base period? Your base period is defined as the earliest four of the five complete calendar quarters before you filed your benefits claim.", ["Yes", "No"], "No", "Not Qualified", "If you do not meet the minimum earnings requirement, you do not qualify for unemployment benefits.")
id[2] = new Question("Did you earn at wages in at least two quarters, with a total of at least 1.25x the highest paid quarter, and a highest-paid quarter of at least $1872? Your base period is defined as the earliest four of the five complete calendar quarters before you filed your benefits claim.", ["Yes", "No"], "No", "Not Qualified", "If you do not meet the minimum earnings requirement, you do not qualify for unemployment benefits.")
il[2] = new Question("Did you earn at least $1600 in total and at least $440 outside your highest paid quarter during the last base period? Your base period is defined as the earliest four of the five complete calendar quarters before you filed your benefits claim.", ["Yes", "No"], "No", "Not Qualified", "If you do not meet the minimum earnings requirement, you do not qualify for unemployment benefits.")
ind[2] = new Question("Did you earn at least $4200 in the base period and at least $2500 in the last six months, with at least 1.5x your highest quarter in total? Your base period is defined as the earliest four of the five complete calendar quarters before you filed your benefits claim.", ["Yes", "No"], "No", "Not Qualified", "If you do not meet the minimum earnings requirement, you do not qualify for unemployment benefits.")
ia[2] = new Question("Did you earn wages in at least two quarters of the base period, with at least 1.25x your highest quarter in total? Your highest quarter must be at least $1430 and your lowest quarter at least $720. Your base period is defined as the earliest four of the five complete calendar quarters before you filed your benefits claim.", ["Yes", "No"], "No", "Not Qualified", "If you do not meet the minimum earnings requirement, you do not qualify for unemployment benefits.")
ks[2] = new Question("Did you earn wages in at least two quarters of the base period, with at least $3660 in total? Your base period is defined as the earliest four of the five complete calendar quarters before you filed your benefits claim.", ["Yes", "No"], "No", "Not Qualified", "If you do not meet the minimum earnings requirement, you do not qualify for unemployment benefits.")
ky[2] = new Question("Did you earn at least $750 in one quarter outside of your highest paid quarter and at least 1.5x your highest quarter in total during the base period? Your base period is defined as the earliest four of the five complete calendar quarters before you filed your benefits claim.", ["Yes", "No"], "No", "Not Qualified", "If you do not meet the minimum earnings requirement, you do not qualify for unemployment benefits.")
la[2] = new Question("Did you earn at least $1200 during the base period, with a total of at least 1.5x your highest quarter? Your base period is defined as the earliest four of the five complete calendar quarters before you filed your benefits claim.", ["Yes", "No"], "No", "Not Qualified", "If you do not meet the minimum earnings requirement, you do not qualify for unemployment benefits.")
me[2] = new Question("Did you earn at least $1608 during the last two weeks of the base period and $4826 during the entire period? Your base period is defined as the earliest four of the five complete calendar quarters before you filed your benefits claim.", ["Yes", "No"], "No", "Not Qualified", "If you do not meet the minimum earnings requirement, you do not qualify for unemployment benefits.")
md[2] = new Question("Did you earn at least $1176 in your highest paid quarter, earning at least 1.5x your highest quarter? Your base period is defined as the earliest four of the five complete calendar quarters before you filed your benefits claim.", ["Yes", "No"], "No", "Not Qualified", "If you do not meet the minimum earnings requirement, you do not qualify for unemployment benefits.")
ma[2] = new Question("Did you earn at least $3500 during the base period? Your base period is defined as the earliest four of the five complete calendar quarters before you filed your benefits claim.", ["Yes", "No"], "No", "Not Qualified", "If you do not meet the minimum earnings requirement, you do not qualify for unemployment benefits.")
mi[2] = new Question("Did you earn wages in at least two quarters and earn at least $3589 in one quarter, with earnings at least 1.5x your highest quarter? Otherwise, did you earn at least $20,742 in your base period? Your base period is defined as the earliest four of the five complete calendar quarters before you filed your benefits claim.", ["Yes", "No"], "No", "Not Qualified", "If you do not meet the minimum earnings requirement, you do not qualify for unemployment benefits.")
mn[2] = new Question("Did you earn at least $3700 in the base period? Your base period is defined as the earliest four of the five complete calendar quarters before you filed your benefits claim.", ["Yes", "No"], "No", "Not Qualified", "If you do not meet the minimum earnings requirement, you do not qualify for unemployment benefits.")
ms[2] = new Question("Did you earn at least $780 in the highest quarter, working at least two quarters? Your base period is defined as the earliest four of the five complete calendar quarters before you filed your benefits claim.", ["Yes", "No"], "No", "Not Qualified", "If you do not meet the minimum earnings requirement, you do not qualify for unemployment benefits.")
mo[2] = new Question("Did you make at least $2250 in the base period with at least $1500 in one quarter and $750 in another? Also were your wages at least 1.5x your highest quarter or did you earn at least $19,500 in two of the quarters? Your base period is defined as the earliest four of the five complete calendar quarters before you filed your benefits claim.", ["Yes", "No"], "No", "Not Qualified", "If you do not meet the minimum earnings requirement, you do not qualify for unemployment benefits.")
mt[2] = new Question("Did you make at least 1.5x your wage in the highest paid quarter or have total wages of at least 50% the state's average annual wage? Your base period is defined as the earliest four of the five complete calendar quarters before you filed your benefits claim.", ["Yes", "No"], "No", "Not Qualified", "If you do not meet the minimum earnings requirement, you do not qualify for unemployment benefits.")
ne[2] = new Question("Did you make at least $4246 during the base period, with at least $1850 in one quarter and $800 in another? Your base period is defined as the earliest four of the five complete calendar quarters before you filed your benefits claim.", ["Yes", "No"], "No", "Not Qualified", "If you do not meet the minimum earnings requirement, you do not qualify for unemployment benefits.")
nv[2] = new Question("Did you make at least $400 in your highest paid quarter of the base period with total earnings at least 1.5x your earnings in the highest quarter or earning wages in at least three of the quarters? Your base period is defined as the earliest four of the five complete calendar quarters before you filed your benefits claim.", ["Yes", "No"], "No", "Not Qualified", "If you do not meet the minimum earnings requirement, you do not qualify for unemployment benefits.")
nh[2] = new Question("Did you earn at least $2800 in the base period and at least $1400 in each of two quarters? Your base period is defined as the earliest four of the five complete calendar quarters before you filed your benefits claim.", ["Yes", "No"], "No", "Not Qualified", "If you do not meet the minimum earnings requirement, you do not qualify for unemployment benefits.")
nm[2] = new Question("Did you make at least $2089 during the base period, earning wages in at least two quarters? Your base period is defined as the earliest four of the five complete calendar quarters before you filed your benefits claim.", ["Yes", "No"], "No", "Not Qualified", "If you do not meet the minimum earnings requirement, you do not qualify for unemployment benefits.")
// Skipping nj because it is used for the base
ny[2] = new Question("Did you earn wages in at leaset two quarters with at least $2600 in one quarter, making over 1.5x the wage of your highest quarter? Your base period is defined as the earliest four of the five complete calendar quarters before you filed your benefits claim.", ["Yes", "No"], "No", "Not Qualified", "If you do not meet the minimum earnings requirement, you do not qualify for unemployment benefits.")
nc[2] = new Question("Did you earn wages in at least two quarters and earn at least $780 in one of the last two quarters of the base period? Your base period is defined as the earliest four of the five complete calendar quarters before you filed your benefits claim.", ["Yes", "No"], "No", "Not Qualified", "If you do not meet the minimum earnings requirement, you do not qualify for unemployment benefits.")
nd[2] = new Question("Did you earn wages in at least two quarters and 1.5x your wages in the highest paid quarter of the base period? Your base period is defined as the earliest four of the five complete calendar quarters before you filed your benefits claim.", ["Yes", "No"], "No", "Not Qualified", "If you do not meet the minimum earnings requirement, you do not qualify for unemployment benefits.")
oh[2] = new Question("Did you work at least 20 weeks and earn an average of $269/week during the base period? Your base period is defined as the earliest four of the five complete calendar quarters before you filed your benefits claim.", ["Yes", "No"], "No", "Not Qualified", "If you do not meet the minimum earnings requirement, you do not qualify for unemployment benefits.")
ok[2] = new Question("Did you earn at least $1500 during the base period, earning at least 1.5x your earnings in the highest paid quarter? Your base period is defined as the earliest four of the five complete calendar quarters before you filed your benefits claim.", ["Yes", "No"], "No", "Not Qualified", "If you do not meet the minimum earnings requirement, you do not qualify for unemployment benefits.")
or[2] = new Question("Did you earn at least $1000 during the base period or worked at least 500 hours? Your base period is defined as the earliest four of the five complete calendar quarters before you filed your benefits claim.", ["Yes", "No"], "No", "Not Qualified", "If you do not meet the minimum earnings requirement, you do not qualify for unemployment benefits.")
pa[2] = new Question("Did you earn at least $116/week in the last 18 weeks of the base period, at least $1688 in the highest quarter, and at least $3391 in total? Your base period is defined as the earliest four of the five complete calendar quarters before you filed your benefits claim.", ["Yes", "No"], "No", "Not Qualified", "If you do not meet the minimum earnings requirement, you do not qualify for unemployment benefits.")
ri[2] = new Question("Did you earn at least $4040 during the base period and $2020 in the highest paid quarter? Your base period is defined as the earliest four of the five complete calendar quarters before you filed your benefits claim.", ["Yes", "No"], "No", "Not Qualified", "If you do not meet the minimum earnings requirement, you do not qualify for unemployment benefits.")
sc[2] = new Question("Did you earn at least $1092 during the highest quarter with at least $4455 in the base period? Your base period is defined as the earliest four of the five complete calendar quarters before you filed your benefits claim.", ["Yes", "No"], "No", "Not Qualified", "If you do not meet the minimum earnings requirement, you do not qualify for unemployment benefits.")
sd[2] = new Question("Did you earn at least $728 in the highest quarter and earn wages for two quarters of the base periood? Your base period is defined as the earliest four of the five complete calendar quarters before you filed your benefits claim.", ["Yes", "No"], "No", "Not Qualified", "If you do not meet the minimum earnings requirement, you do not qualify for unemployment benefits.")
tn[2] = new Question("Did you earn at least $780 in your two highest-paid quarters and at least $900 in the other quarters of your base period? Your base period is defined as the earliest four of the five complete calendar quarters before you filed your benefits claim.", ["Yes", "No"], "No", "Not Qualified", "If you do not meet the minimum earnings requirement, you do not qualify for unemployment benefits.")
tx[2] = new Question("Did you earn wages in at least two quarters of the base period, making at least 37x the weekly benefit amount? Your base period is defined as the earliest four of the five complete calendar quarters before you filed your benefits claim.", ["Yes", "No"], "No", "Not Qualified", "If you do not meet the minimum earnings requirement, you do not qualify for unemployment benefits.")
ut[2] = new Question("Did you earn at least $3600 during the base period and at least 1.5x your earnings in the highest paid quarter? Your base period is defined as the earliest four of the five complete calendar quarters before you filed your benefits claim.", ["Yes", "No"], "No", "Not Qualified", "If you do not meet the minimum earnings requirement, you do not qualify for unemployment benefits.")
vt[2] = new Question("Did you earn at least $2386 in the highest paid quarter of the base period? Your base period is defined as the earliest four of the five complete calendar quarters before you filed your benefits claim.", ["Yes", "No"], "No", "Not Qualified", "If you do not meet the minimum earnings requirement, you do not qualify for unemployment benefits.")
va[2] = new Question("Did you earn at least $3000 in two quarters of the base period? Your base period is defined as the earliest four of the five complete calendar quarters before you filed your benefits claim.", ["Yes", "No"], "No", "Not Qualified", "If you do not meet the minimum earnings requirement, you do not qualify for unemployment benefits.")
wa[2] = new Question("Did you work at least 680 hours during the base period? Your base period is defined as the earliest four of the five complete calendar quarters before you filed your benefits claim.", ["Yes", "No"], "No", "Not Qualified", "If you do not meet the minimum earnings requirement, you do not qualify for unemployment benefits.")
wv[2] = new Question("Were you paid wages in at least two quarters and paid at least $2200 in the entire base period? Your base period is defined as the earliest four of the five complete calendar quarters before you filed your benefits claim.", ["Yes", "No"], "No", "Not Qualified", "If you do not meet the minimum earnings requirement, you do not qualify for unemployment benefits.")
wi[2] = new Question("Did you earn wages in at least two quarters in the base period? Your base period is defined as the earliest four of the five complete calendar quarters before you filed your benefits claim.", ["Yes", "No"], "No", "Not Qualified", "If you do not meet the minimum earnings requirement, you do not qualify for unemployment benefits.")
wy[2] = new Question("Did you earn at least 8% of the state's average annual wage during the base period and at least 1.4x your earnings in the highest paid quarter? Your base period is defined as the earliest four of the five complete calendar quarters before you filed your benefits claim.", ["Yes", "No"], "No", "Not Qualified", "If you do not meet the minimum earnings requirement, you do not qualify for unemployment benefits.")
getStarted();