-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdata.js
61 lines (59 loc) · 1.65 KB
/
data.js
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
let questions = [
cppQuestions,
htmlQuestions,
cssQuestions,
jsQuestions,
jsonQuestions,
jqueryQuestions,
bootstrapQuestions,
reactQuestions
]
let tests = [
{
title: "C++ Test",
description: "This test covers Data Types, Variables, Console Output, User Input, Comments, Operators, Conditional Statements, Loops, Arrays and Functions.",
},
{
title: "HTML Test",
description: "This test covers Attributes.",
},
{
title: "CSS Test",
description: "This test covers Selectors.",
},
{
title: "JavaScript Test",
description: "This test covers Variables.",
},
{
title: "JSON Test",
description: "This test covers Properties.",
},
{
title: "jQuery Test",
description: "This test covers $ selector.",
},
{
title: "Bootstrap Test",
description: "This test covers Text Classes.",
},
{
title: "React Test",
description: "This test covers ReactDOM.",
}
]
for(let i = 0; i < tests.length; i++){
document.getElementsByClassName("tests")[0].innerHTML += `
<div class="test">
<div class="btns">
<h2>${tests[i].title}</h2>
<span>${questions[i].length} Questions</span>
</div>
<p>${tests[i].description}</p>
<div class="btns">
<button class="startBtn" onclick="toTest(${i})">Start the Test</button>
<!-- <button class="startBtn" onclick="toLeaderboard(${i})"><i class="fa fa-award"></i></button> -->
</div>
</div>
`
}