mirror of
https://gitlab.rlp.net/proj-wise2526-video2document/video2document.git
synced 2026-06-15 18:01:52 +02:00
Merge branch 'feature/ui-test' of https://gitlab.rlp.net/proj-wise2526-video2document/video2document into feature/ui-test
This commit is contained in:
@@ -81,7 +81,7 @@ manualUploadBtn.addEventListener('click', () => {
|
|||||||
stepButtons.forEach(btn => {
|
stepButtons.forEach(btn => {
|
||||||
btn.addEventListener("click", () => {
|
btn.addEventListener("click", () => {
|
||||||
try {
|
try {
|
||||||
const step = btn.dataset.step;
|
const step = parseInt(btn.dataset.step);
|
||||||
showStep(step);
|
showStep(step);
|
||||||
} catch (error) {
|
} catch (error) {
|
||||||
|
|
||||||
|
|||||||
@@ -280,6 +280,10 @@ let currentStep = 1;
|
|||||||
const totalSteps = steps.length;
|
const totalSteps = steps.length;
|
||||||
|
|
||||||
function showStep(stepNumber) {
|
function showStep(stepNumber) {
|
||||||
|
if (stepNumber < 1 || stepNumber > totalSteps){
|
||||||
|
console.error("StepNumber out of Bounds", stepNumber);
|
||||||
|
return;
|
||||||
|
}
|
||||||
steps.forEach(step => step.style.display = "none");
|
steps.forEach(step => step.style.display = "none");
|
||||||
document.getElementById("step" + stepNumber).style.display = "block";
|
document.getElementById("step" + stepNumber).style.display = "block";
|
||||||
|
|
||||||
|
|||||||
@@ -291,7 +291,7 @@ input[type="file"] {
|
|||||||
|
|
||||||
/*panels*/
|
/*panels*/
|
||||||
.step {
|
.step {
|
||||||
padding-top: 70px;
|
margin-top: 70px;
|
||||||
display: flex;
|
display: flex;
|
||||||
flex-direction: column;
|
flex-direction: column;
|
||||||
justify-content: center;
|
justify-content: center;
|
||||||
|
|||||||
Reference in New Issue
Block a user