From d21bbbce12e999f9fa1ad9355381698a844f399c Mon Sep 17 00:00:00 2001 From: Verena Schulz Date: Sat, 10 Jan 2026 19:51:29 +0100 Subject: [PATCH] Implemented the visibility regulation of the custom document section --- electron/main/index.html | 61 ++++++++++++++++++++-------------------- electron/main/script.js | 18 ++++++++++++ 2 files changed, 48 insertions(+), 31 deletions(-) diff --git a/electron/main/index.html b/electron/main/index.html index 9ff8b88..c316a80 100644 --- a/electron/main/index.html +++ b/electron/main/index.html @@ -20,7 +20,7 @@ @@ -49,6 +49,35 @@
+ + +

Upload your video here:

@@ -176,36 +205,6 @@
- - - - diff --git a/electron/main/script.js b/electron/main/script.js index 2523e3f..361027d 100644 --- a/electron/main/script.js +++ b/electron/main/script.js @@ -5,6 +5,24 @@ let currentVideoPath = null; Functions used in the setup or affect most of the gui */ +var showCDValue = 0; +function showCD() { + if(showCDValue == 0){ + document.getElementById('cdContainer').style.display = "block"; + document.getElementById('step1').style.display ="none"; + document.getElementById('step2').style.display ="none"; + document.getElementById('step3').style.display ="none"; + document.getElementById('step4').style.display ="none"; + document.getElementById('step5').style.display ="none"; + document.getElementById('step6').style.display ="none"; + showCDValue = 1; + } else { + currentStep = 1; + showCDValue = 0; + document.getElementById('cdContainer').style.display = "none"; + showStep(1); + } +} //language changing feature => changes the language of every displayed text function changeLanguage(language) {