Ubuntu

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

Showing 1 changed file with 10 additions and 15 deletions
...@@ -291,23 +291,18 @@ function generateQuiz() { ...@@ -291,23 +291,18 @@ function generateQuiz() {
291 } 291 }
292 292
293 function generateOX(quizO, quizX, moreInfo) { 293 function generateOX(quizO, quizX, moreInfo) {
294 - var quiz;
295 - var ans;
296 - var info;
297 - info = moreInfo;
298 - if (Math.random() > 0.5) {
299 - quiz = quizO;
300 - ans = 'o';
301 - } else {
302 - quiz = quizX;
303 - ans = 'x';
304 - }
305 - quiz = '[OX퀴즈] ' + quiz;
306 quizList.push( 294 quizList.push(
307 { 295 {
308 - quiz: quiz, 296 + quiz: '[OX퀴즈] ' + quizO,
309 - ans: ans, 297 + ans: 'o',
310 - info: info 298 + info: moreInfo
299 + }
300 + );
301 + quizList.push(
302 + {
303 + quiz: '[OX퀴즈] ' + quizX,
304 + ans: 'x',
305 + info: moreInfo
311 } 306 }
312 ); 307 );
313 } 308 }
......