Ubuntu

버그: OX퀴즈 중 한 종류만 퀴즈목록에 추가되던 버그 수정

Showing 1 changed file with 9 additions and 14 deletions
......@@ -291,23 +291,18 @@ function generateQuiz() {
}
function generateOX(quizO, quizX, moreInfo) {
var quiz;
var ans;
var info;
info = moreInfo;
if (Math.random() > 0.5) {
quiz = quizO;
ans = 'o';
} else {
quiz = quizX;
ans = 'x';
quizList.push(
{
quiz: '[OX퀴즈] ' + quizO,
ans: 'o',
info: moreInfo
}
quiz = '[OX퀴즈] ' + quiz;
);
quizList.push(
{
quiz: quiz,
ans: ans,
info: info
quiz: '[OX퀴즈] ' + quizX,
ans: 'x',
info: moreInfo
}
);
}
......