(question_id)
| 46 | } |
| 47 | |
| 48 | function updateQuestionSelect(question_id) { |
| 49 | const select = document.getElementById('question-select'); |
| 50 | // Clear the question select. |
| 51 | select.innerHTML = ''; |
| 52 | // Populate the question select. |
| 53 | category = questionMapping[question_id].category; |
| 54 | categoryMapping[category].forEach(question_id => { |
| 55 | const question = questionMapping[question_id]; |
| 56 | const option = document.createElement('option'); |
| 57 | option.value = question_id; |
| 58 | option.textContent = 'Q' + question_id.toString() + ': ' + question.question; |
| 59 | select.appendChild(option); |
| 60 | }); |
| 61 | select.value = question_id; |
| 62 | } |
| 63 | |
| 64 | function updateModelSelect() { |
| 65 | const select = document.getElementById('model-select'); |
no outgoing calls
no test coverage detected