ruslanmv commited on
Commit
6aadeff
1 Parent(s): 148d537

Update script.js

Browse files
Files changed (1) hide show
  1. static/script.js +2 -1
static/script.js CHANGED
@@ -51,7 +51,8 @@ function updateSliderValue(value) {
51
  }
52
 
53
  function startQuiz() {
54
- socket.emit('start_quiz');
 
55
  }
56
 
57
  function checkAnswers() {
 
51
  }
52
 
53
  function startQuiz() {
54
+ const startQuestion = parseInt(document.getElementById('start-question-number').value, 10);
55
+ socket.emit('start_quiz', { start_question: startQuestion });
56
  }
57
 
58
  function checkAnswers() {