first commit
This commit is contained in:
@@ -0,0 +1,8 @@
|
||||
# frontend task 3
|
||||
Create a quiz in html/css/js using main.js as the data.
|
||||
|
||||
You can see the screenshots of how the different quiz questions should look like.
|
||||
|
||||
All answers should be saved at the end in a response object
|
||||
|
||||
This need to be completed at end of day.
|
||||
Binary file not shown.
|
After Width: | Height: | Size: 75 KiB |
Binary file not shown.
|
After Width: | Height: | Size: 48 KiB |
@@ -0,0 +1,52 @@
|
||||
let quiz = [
|
||||
{
|
||||
"id": 1,
|
||||
"type": "short_answer",
|
||||
"question": "Why is the sky blue?",
|
||||
"answers": [],
|
||||
"correct_answer": 0
|
||||
},
|
||||
{
|
||||
"id": 2,
|
||||
"type": "multiple_choice",
|
||||
"question": "Why is the sky blue?",
|
||||
"answers": [
|
||||
{ "id": 1, "answer": "Because of physics"},
|
||||
{ "id": 2, "answer": "Because that the way it always was"},
|
||||
{ "id": 3, "answer": "I don't know"},
|
||||
],
|
||||
"correct_answer": 1
|
||||
},
|
||||
{
|
||||
"id": 3,
|
||||
"type": "multiple_selection_choice",
|
||||
"question": "Why is the sky blue?",
|
||||
"answers": [
|
||||
{ "id": 1, "answer": "Because of physics"},
|
||||
{ "id": 2, "answer": "Because that the way it always was"},
|
||||
{ "id": 3, "answer": "I don't know"},
|
||||
],
|
||||
"correct_answer": 1
|
||||
},
|
||||
{
|
||||
"id": 4,
|
||||
"type": "long_text",
|
||||
"question": "Why is the sky blue?",
|
||||
"answers": [],
|
||||
"correct_answer": 0
|
||||
},
|
||||
{
|
||||
"id": 5,
|
||||
"type": "description",
|
||||
"question": "random text to show to the user",
|
||||
"answers": [],
|
||||
"correct_answer": 0
|
||||
},
|
||||
{
|
||||
"id": 6,
|
||||
"type": "true_false",
|
||||
"question": "Is the sky blue",
|
||||
"answers": [],
|
||||
"correct_answer": 2
|
||||
}
|
||||
];
|
||||
Binary file not shown.
|
After Width: | Height: | Size: 309 KiB |
Binary file not shown.
|
After Width: | Height: | Size: 76 KiB |
Reference in New Issue
Block a user