mou3az commited on
Commit
9a722a3
1 Parent(s): 4d33dac

Update templates/quiz.html

Browse files
Files changed (1) hide show
  1. templates/quiz.html +0 -6
templates/quiz.html CHANGED
@@ -65,7 +65,6 @@
65
  });
66
 
67
  function generateQuiz(filteredText, answersAndExplanations) {
68
- document.getElementById('inputSection').style.display = 'none';
69
  let quizSection = document.getElementById('quizSection');
70
  quizSection.innerHTML = '';
71
 
@@ -92,7 +91,6 @@
92
  input.name = `question_${index + 1}`;
93
  input.value = label;
94
  input.id = `q${index + 1}_${label}`;
95
- input.setAttribute('data-answered', 'false');
96
 
97
  let choiceLabel = document.createElement('label');
98
  choiceLabel.setAttribute('for', `q${index + 1}_${label}`);
@@ -102,10 +100,6 @@
102
  choiceDiv.appendChild(choiceLabel);
103
 
104
  div.appendChild(choiceDiv);
105
-
106
- input.addEventListener('change', function() {
107
- input.setAttribute('data-answered', 'true');
108
- });
109
  });
110
 
111
  let answerDiv = document.createElement('div');
 
65
  });
66
 
67
  function generateQuiz(filteredText, answersAndExplanations) {
 
68
  let quizSection = document.getElementById('quizSection');
69
  quizSection.innerHTML = '';
70
 
 
91
  input.name = `question_${index + 1}`;
92
  input.value = label;
93
  input.id = `q${index + 1}_${label}`;
 
94
 
95
  let choiceLabel = document.createElement('label');
96
  choiceLabel.setAttribute('for', `q${index + 1}_${label}`);
 
100
  choiceDiv.appendChild(choiceLabel);
101
 
102
  div.appendChild(choiceDiv);
 
 
 
 
103
  });
104
 
105
  let answerDiv = document.createElement('div');