|
|
|
|
|
document.addEventListener('DOMContentLoaded', () => { |
|
|
|
|
|
const tabButtons = document.querySelectorAll('.tab-btn'); |
|
|
|
|
|
|
|
|
tabButtons.forEach(button => { |
|
|
button.addEventListener('click', () => { |
|
|
|
|
|
tabButtons.forEach(btn => btn.classList.remove('active')); |
|
|
|
|
|
|
|
|
button.classList.add('active'); |
|
|
|
|
|
|
|
|
const tabToShow = button.getAttribute('data-tab'); |
|
|
|
|
|
|
|
|
|
|
|
console.log(`Tab ${tabToShow} selected`); |
|
|
|
|
|
|
|
|
if (tabToShow === 'single-sample') { |
|
|
document.getElementById('tab1').style.display = 'block'; |
|
|
document.getElementById('singleSamplePlot').style.display = 'block'; |
|
|
|
|
|
} |
|
|
}); |
|
|
}); |
|
|
|
|
|
|
|
|
const confidenceLevelInput = document.querySelector('#confidenceLevel'); |
|
|
const confidenceLevelValue = document.querySelector('#confidenceLevelValue'); |
|
|
|
|
|
if (confidenceLevelInput && confidenceLevelValue) { |
|
|
confidenceLevelInput.addEventListener('input', () => { |
|
|
confidenceLevelValue.textContent = `${confidenceLevelInput.value}%`; |
|
|
}); |
|
|
} |
|
|
}); |