Improved stability

This commit is contained in:
Verena Schulz
2025-12-15 13:48:27 +01:00
parent bb589e6aad
commit accb65252c
3 changed files with 6 additions and 2 deletions
+1 -1
View File
@@ -81,7 +81,7 @@ manualUploadBtn.addEventListener('click', () => {
stepButtons.forEach(btn => {
btn.addEventListener("click", () => {
try {
const step = btn.dataset.step;
const step = parseInt(btn.dataset.step);
showStep(step);
} catch (error) {
+4
View File
@@ -279,6 +279,10 @@ let currentStep = 1;
const totalSteps = steps.length;
function showStep(stepNumber) {
if (stepNumber < 1 || stepNumber > totalSteps){
console.error("StepNumber out of Bounds", stepNumber);
return;
}
steps.forEach(step => step.style.display = "none");
document.getElementById("step" + stepNumber).style.display = "block";
+1 -1
View File
@@ -291,7 +291,7 @@ input[type="file"] {
/*panels*/
.step {
padding-top: 70px;
margin-top: 70px;
display: flex;
flex-direction: column;
justify-content: center;