Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
K
kus-admin
Project
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Иван Кубота
kus-admin
Commits
d107ab3a
Commit
d107ab3a
authored
Mar 10, 2020
by
Иван Кубота
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
update 1
parent
4f3a860c
Pipeline
#568
failed with stage
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
2 deletions
+2
-2
quizGenerator.js
public/js/controller/quizGenerator.js
+2
-2
No files found.
public/js/controller/quizGenerator.js
View file @
d107ab3a
...
...
@@ -65,11 +65,11 @@ const standardGenerator = function(random) {
q
.
answers
.
forEach
(
a
=>
log
.
push
((
a
.
correct
?
'+'
:
' '
)
+
` >
${
a
.
title
}
`
));
debugger
return
{
type
:
q
.
multiple
?
'checkbox'
:
'radio'
,
categoryId
:
q
.
category_id
,
productId
:
q
.
q
ID
,
productId
:
q
.
cardInfo
ID
,
question
:
textFormat
(
q
.
title
),
answers
:
shuffle
(
q
.
answers
.
map
(
a
=>
a
.
correct
?
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment