YoonJ-C commited on
Commit
af0efc6
·
1 Parent(s): e583197

Update static files: script.js and style.css

Browse files
Files changed (2) hide show
  1. static/script.js +1 -1
  2. static/style.css +1 -1
static/script.js CHANGED
@@ -73,7 +73,7 @@ function showQuestion(questionIndex) {
73
 
74
  currentQuestion = questionIndex;
75
  document.getElementById('questionCounter').textContent = 'Question ' + questionIndex + ' of ' + totalQuestions;
76
- document.getElementById('progressBar').style.width = (questionIndex / totalQuestions) * 100 + '%';
77
  updateNavigationButtons();
78
  }
79
 
 
73
 
74
  currentQuestion = questionIndex;
75
  document.getElementById('questionCounter').textContent = 'Question ' + questionIndex + ' of ' + totalQuestions;
76
+ document.getElementById('progressBar').style.width = ((questionIndex - 1) / (totalQuestions - 1)) * 100 + '%';
77
  updateNavigationButtons();
78
  }
79
 
static/style.css CHANGED
@@ -273,7 +273,7 @@ button:disabled {
273
 
274
  .progress-bar {
275
  background: var(--bg-gray);
276
- height: 8px;
277
  border-radius: 4px;
278
  overflow: hidden;
279
  margin-bottom: var(--space-lg);
 
273
 
274
  .progress-bar {
275
  background: var(--bg-gray);
276
+ height: 6px;
277
  border-radius: 4px;
278
  overflow: hidden;
279
  margin-bottom: var(--space-lg);