Added arrows for navigating through steps

This commit is contained in:
Verena Schulz
2025-12-02 17:13:36 +01:00
parent 4f0d2bcc4a
commit 33093733ef
4 changed files with 121 additions and 66 deletions
+15
View File
@@ -88,4 +88,19 @@ manualUploadBtn.addEventListener('click', () => {
console.log(error);
}
});
stepButtons.forEach(btn => {
btn.addEventListener("click", () => {
const step = btn.dataset.step;
showStep(step);
});
});
prevBtn.addEventListener("click", () => {
if (currentStep > 1) showStep(currentStep - 1);
});
nextBtn.addEventListener("click", () => {
if(currentStep < totalSteps) showStep(currentStep + 1);
});