Help page changeLanguage integration and visibility regulation

This commit is contained in:
2026-01-21 15:29:19 +01:00
parent 2627e5f44e
commit e9be536f29
4 changed files with 116 additions and 101 deletions
+44 -99
View File
@@ -26,7 +26,9 @@
<button id="customDocBtn" onclick="showCD()"> <button id="customDocBtn" onclick="showCD()">
Manage document types Manage document types
</button> </button>
<a href="help_page.html" class="li1">Help</a> <button id="helpBtn" onclick="showHelp()">
Help
</button>
</nav> </nav>
</nav> </nav>
</section> </section>
@@ -92,159 +94,102 @@
<!-- Here starts code from the helppage --> <!-- Here starts code from the helppage -->
<div class="container" style="display: none"> <div class="containerHelp" id="helpContainer"style="display: none">
<!-- FIXER OBERER TEIL --> <!-- FIXER OBERER TEIL -->
<div class="top-bar"> <div class="top-bar" id="top_bar_help">
<a href="index.html"> <button class="back-btn" id="back_btn" onclick="showHelp()">Return</button>
<button class="back-btn">Zurück</button>
</a>
<h1>Programm Anleitung</h1> <h1 id="help_page_h1">Programm tutorial</h1>
<div class="toc-wrapper"> <div class="toc-wrapper">
<button class="toc-toggle" onclick="toggleTOC()">Inhaltsverzeichnis</button> <button class="toc-toggle" id="help_page_tableofcontents" onclick="toggleTOC()">Table of contents</button>
<div class="toc" id="toc"> <div class="toc" id="toc">
<a href="#convertVid" id='hp_convertVid' onclick="closeTOC()">Video zu Dokument umwandeln</a> <a href="#convertVid" id='hp_convertVid' onclick="closeTOC()">Convert video to document</a>
<a href="#firstStep" id='hp_firstStep' onclick="closeTOC()">Schritt 1 - Video auswählen</a> <a href="#firstStep" id='hp_firstStep' onclick="closeTOC()">Step 1 - Select video</a>
<a href="#secondStep" id='hp_secondStep' onclick="closeTOC()">Schritt 2 - Konfiguration</a> <a href="#secondStep" id='hp_secondStep' onclick="closeTOC()">Step 2 - Configuration</a>
<a href="#thirdStep" id='hp_thirdStep' onclick="closeTOC()">Schritt 3 - Dokumententyp auswählen</a> <a href="#thirdStep" id='hp_thirdStep' onclick="closeTOC()">Step 3 - Select document type</a>
<a href="#fourthStep" id='hp_fourthStep' onclick="closeTOC()">Schritt 4 - Bestätigen</a> <a href="#fourthStep" id='hp_fourthStep' onclick="closeTOC()">Step 4 - Confirm</a>
<a href="#fifthStep" id='hp_fifthStep' onclick="closeTOC()">Schritt 5 - Sprecher identifizieren</a> <a href="#fifthStep" id='hp_fifthStep' onclick="closeTOC()">Step 5 - Identify speakers</a>
<a href="#sixthStep" id='hp_sixthStep' onclick="closeTOC()">Schritt 6 - Dokument speichern</a> <a href="#sixthStep" id='hp_sixthStep' onclick="closeTOC()">Step 6 - Save document</a>
<a href="#createDoc" id='hp_createDoc' onclick="closeTOC()">Dokumententyp erstellen</a> <a href="#createDoc" id='hp_createDoc' onclick="closeTOC()">Create document type</a>
<a href="#editDoc" id='hp_editDoc' onclick="closeTOC()">Dokumententyp bearbeiten</a> <a href="#editDoc" id='hp_editDoc' onclick="closeTOC()">Edit document type</a>
<a href="#deleteDoc" id='hp_deleteDoc' onclick="closeTOC()">Dokumententyp löschen</a> <a href="#deleteDoc" id='hp_deleteDoc' onclick="closeTOC()">Delete document type</a>
</div> </div>
</div> </div>
</div> </div>
<!-- NUR DIESER TEIL SCROLLT --> <!-- NUR DIESER TEIL SCROLLT -->
<div class="content"> <div class="content" id="content">
<div class="step" id="convertVid"> <div class="step" id="convertVid">
<h2 id="hp_convertVid_h2">Video zu Dokument umwandeln.</h2> <h2 id="hp_convertVid_h2">Convert video to document.</h2>
<div class="step" id="firstStep"> <div class="step" id="firstStep">
<h3 id="hp_firstStep_h3">Schritt 1 - Video auswählen</h3> <h3 id="hp_firstStep_h3">Step 1 - Select video</h3>
<p id="hp_firstStep_p"> <p id="hp_firstStep_p">
- Ziehe eine Videodatei in das Drag-and-Drop-Feld oder klicke auf <strong>„Video - Drag a video file into the drag-and-drop field or click <strong>“Search video”</strong>,<br>to select a file using your file browser.<br>- Then click <strong>Step 2</strong> or the blue arrow on the right to continue.
suchen“</strong>,<br>
um eine Datei über deinen Dateibrowser auszuwählen.<br>
- Klicke anschließend auf <strong>Schritt 2</strong> oder auf den blauen Pfeil rechts, um
fortzufahren.
</p> </p>
</div> </div>
<div class="step" id="secondStep"> <div class="step" id="secondStep">
<h3 id="hp_secondStep_h3">Schritt 2 - Konfiguration</h3> <h3 id="hp_secondStep_h3">Step 2 - Configuration</h3>
<p id="hp_secondStep_p"> <p id="hp_secondStep_p">
- Wähle im ersten Auswahlmenü die zu verwendende <strong>KI</strong>.<br> - Select the <strong>AI</strong> to be used in the first dropdown menu.<br>- Select the <strong>transcription tool</strong> to be used in the second dropdown menu.<br>- Select the <strong>file format</strong> of the document to be created in the third dropdown menu.<br>- Select the <strong>language</strong> of the document to be created in the fourth dropdown menu.<br>- Then click <strong>Step 3</strong> or the blue arrow on the right to continue.
- Wähle im zweiten Auswahlmenü das zu verwendende <strong>Transkriptions-Tool</strong>.<br>
- Wähle im dritten Auswahlmenü das <strong>Dateiformat</strong> des zu erstellenden
Dokuments.<br>
- Wähle im vierten Auswahlmenü die <strong>Sprache</strong> des zu erstellenden Dokuments.<br>
- Klicke anschließend auf <strong>Schritt 3</strong> oder auf den blauen Pfeil rechts, um
fortzufahren.
</p> </p>
</div> </div>
<div class="step" id="thirdStep"> <div class="step" id="thirdStep">
<h3 id="hp_thirdStep_h3">Schritt 3 - Dokumententyp auswählen</h3> <h3 id="hp_thirdStep_h3">Step 3 - Select document type</h3>
<p id="hp_thirdStep_p"> <p id="hp_thirdStep_p">
- Wähle einen Dokumententyp über die Checkbox oder einen zuvor erstellten Dokumententyp aus dem Select a document type using the checkbox or choose a previously created document type from the dropdown menu.<br>- Then click <strong>Step 4</strong> or the blue arrow on the right to continue.
Dropdown-Menü aus.<br>
- Klicke anschließend auf <strong>Schritt 4</strong> oder auf den blauen Pfeil rechts, um
fortzufahren.
</p> </p>
</div> </div>
<div class="step" id="fourthStep"> <div class="step" id="fourthStep">
<h3 id="hp_fourthStep_h3">Schritt 4 - Bestätigen</h3> <h3 id="hp_fourthStep_h3">Step 4 - Confirm</h3>
<p id="hp_fourthStep_p"> <p id="hp_fourthStep_p">
Klicke auf <strong>Submit</strong>, um die Dokumentengenerierung zu starten.<br> Click <strong>Submit</strong> to start the document generation.<br>During processing, four status indicators are displayed that gradually change from red to green and show the current progress:<br><br>Indicator 1: Upload and preparation of the video file.<br>Indicator 2: Transcription of the video content.<br>Indicator 3: AI-based processing and document creation.<br>Indicator 4: Completion of generation and provision of the document.<br><br>After successful completion, click <strong>Step 5</strong> or the blue arrow on the right to continue.
Während der Verarbeitung werden vier Statuspunkte angezeigt, die sich schrittweise von rot zu
grün färben und den aktuellen Fortschritt darstellen:
<br><br>
Punkt 1: Upload und Vorbereitung der Videodatei.<br>
Punkt 2: Transkription des Videoinhalts.<br>
Punkt 3: KI-gestützte Verarbeitung und Dokumentenerstellung.<br>
Punkt 4: Abschluss der Generierung und Bereitstellung des Dokuments.
<br><br>
Nach erfolgreichem Abschluss klicke auf <strong>Schritt 5</strong> oder auf den blauen Pfeil
rechts, um fortzufahren.
</p> </p>
</div> </div>
<div class="step" id="fifthStep"> <div class="step" id="fifthStep">
<h3 id="hp_fifthStep_h3">Schritt 5 - Sprecher identifizieren</h3> <h3 id="hp_fifthStep_h3">Step 5 - Identify speakers</h3>
<p id="hp_fifthStep_p"> <p id="hp_fifthStep_p">
Im Auswahlmenü kannst du einen erkannten Sprecher auswählen.<br> In the dropdown menu, you can select a recognized speaker.<br>Using the play button, you can listen to a spoken sentence to clearly identify the speaker.<br>With the speaker icon, you can adjust the volume.<br>Using the three-dot menu, you can set the playback speed.<br><br>In the text field <strong>“Write name”</strong>, enter the actual name of the speaker so that it is displayed in the document instead of placeholders such as “Speaker A”.<br>Confirm the entry with <strong>“Rename Speaker”</strong>.<br><br>With the <strong>“Rewrite Document”</strong> button, all speaker labels in the document are then replaced.<br><br>After that, click <strong>Step 6</strong> or the blue arrow on the right to continue.
Über den Play-Button lässt sich ein gesprochener Satz anhören, um den Sprecher eindeutig zu
identifizieren.<br>
Mit dem Lautsprecher-Symbol kannst du die Lautstärke anpassen.<br>
Über das Drei-Punkte-Menü lässt sich die Wiedergabegeschwindigkeit einstellen.<br><br>
Im Textfeld <strong>„Write name“</strong> gibst du den tatsächlichen Namen des Sprechers ein,
damit dieser im Dokument
anstelle von Platzhaltern wie z. B. „Sprecher A“ angezeigt wird.<br>
Bestätige die Eingabe mit <strong>„Rename Speaker“</strong>.<br><br>
Mit dem Button <strong>„Rewrite Document“</strong> werden anschließend alle
Sprecherbezeichnungen im Dokument ersetzt.<br><br>
Klicke danach auf <strong>Schritt 6</strong> oder auf den blauen Pfeil rechts, um fortzufahren.
</p> </p>
</div> </div>
<div class="step" id="sixthStep"> <div class="step" id="sixthStep">
<h3 id="hp_sixthStep_h3">Schritt 6 - Dokument speichern</h3> <h3 id="hp_sixthStep_h3">Step 6 - Save document</h3>
<p id="hp_sixthStep_p"> <p id="hp_sixthStep_p">
Klicke auf <strong>Download</strong>, um das Dokument zu speichern.<br> Click <strong>Download</strong> to save the document.<br>A file explorer will then open, where you can select the desired storage location.
Es öffnet sich anschließend ein Dateiexplorer, in dem du den gewünschten Speicherort auswählen
kannst.
</p> </p>
</div> </div>
</div> </div>
<div class="step" id="createDoc"> <div class="step" id="createDoc">
<h2 id="hp_createDoc_h2">Dokumententyp erstellen</h2> <h2 id="hp_createDoc_h2">Create document type</h2>
<p id="hp_createDoc_p"> <p id="hp_createDoc_p">
- Öffne oben links das Burgermenü und wähle den Punkt <strong>„Dokumententypen - Open the burger menu at the top left and select <strong>“Manage document types”</strong>.<br>- Then select the option <strong>“-- Create new document type --”</strong> from the dropdown menu.<br>- Enter a descriptive name for the new document type.<br>- Carefully formulate the prompt for the AI-based processing.<br>- Click <strong>Save document type</strong>.<br><br><strong>Note:</strong><br>The entered prompt is transmitted unchanged to an AI service. Therefore, make sure to comply with applicable data protection regulations and do not enter any sensitive or personal data.
verwalten“</strong>.<br>
- Wähle anschließend im Auswahlmenü die Option <strong>„-- Neuen Dokumententyp erstellen
--“</strong>.<br>
- Vergib einen aussagekräftigen Namen für den neuen Dokumententyp.<br>
- Formuliere den Prompt für die KI-gestützte Verarbeitung sorgfältig.<br>
- Klicke auf <strong>Dokumententyp speichern</strong>.<br><br>
<strong>Hinweis:</strong> <br>Der eingegebene Prompt wird unverändert an einen KI-Dienst
übermittelt.
Achte daher unbedingt auf die Einhaltung der geltenden Datenschutzrichtlinien und gib keine
sensiblen oder personenbezogenen Daten ein.
</p> </p>
</div> </div>
<div class="step" id="editDoc"> <div class="step" id="editDoc">
<h2 id="hp_editDoc_h2">Dokumententyp bearbeiten</h2> <h2 id="hp_editDoc_h2">Edit document type</h2>
<p id="hp_editDoc_p"> <p id="hp_editDoc_p">
- Öffne oben links das Burgermenü und wähle den Punkt <strong>„Dokumententypen - Open the burger menu at the top left and select <strong>“Manage document types”</strong>.<br>- Then select the document type to be edited from the dropdown menu.<br>- Revise the existing AI prompt or formulate a new prompt.<br>- Finally, click <strong>“Save document type”</strong>.<br><br><strong>Note:</strong><br>The entered prompt is transmitted unchanged to an AI service. Therefore, make sure to comply with applicable data protection regulations and do not enter any sensitive or personal data.
verwalten“</strong>.<br>
- Wähle anschließend im Auswahlmenü den zu bearbeitenden Dokumententyp aus.<br>
- Überarbeite den bestehenden KI-Prompt oder formuliere einen neuen Prompt.<br>
- Klicke abschließend auf <strong>„Dokumententyp speichern“</strong>.<br><br>
<strong>Hinweis:</strong><br>
Der eingegebene Prompt wird unverändert an einen KI-Dienst übermittelt.
Achte daher unbedingt auf die Einhaltung der geltenden Datenschutzrichtlinien und gib keine
sensiblen oder personenbezogenen Daten ein.
</p> </p>
</div> </div>
<div class="step" id="deleteDoc"> <div class="step" id="deleteDoc">
<h2 id="hp_deleteDoc_h2">Dokumententyp löschen</h2> <h2 id="hp_deleteDoc_h2">Delete document type</h2>
<p id="hp_deleteDoc_p"> - Öffne oben links das Burgermenü und wähle den Punkt <strong>„Dokumententypen <p id="hp_deleteDoc_p">
verwalten“</strong>.<br> - Open the burger menu at the top left and select <strong>“Manage document types”</strong>.<br>- Then select the document type to be deleted from the dropdown menu.<br>- Finally, click <strong>“Delete document type”</strong>.<br><br><strong>Note:</strong><br>After confirming the deletion process, the document type cannot be restored.
- Wähle anschließend im Auswahlmenü den zu löschenden Dokumententyp aus.<br>
- Klicke abschließend auf <strong>„Dokumententyp löschen“</strong>.<br><br>
<strong>Hinweis:</strong><br>
Nach Bestätigung des Löschvorgangs kann der Dokumententyp nicht wiederhergestellt werden.
</p> </p>
</div> </div>
</div> </div>
+9
View File
@@ -51,6 +51,9 @@ var languageOptions = {
"step6_h2" : "Click to download your document:", "step6_h2" : "Click to download your document:",
//help page //help page
"back_btn" : "Back",
"help_page_h1" : "Programm tutorial",
"help_page_tableofcontents" : "Table of contents",
//Inhaltsverzeichnis //Inhaltsverzeichnis
"hp_convertVid" : "Convert video to document", "hp_convertVid" : "Convert video to document",
"hp_firstStep" : "Step 1 - Select video", "hp_firstStep" : "Step 1 - Select video",
@@ -138,6 +141,9 @@ var languageOptions = {
"step6_h2" : "Klicken Sie hier, um Ihr Dokument herunterzuladen:", "step6_h2" : "Klicken Sie hier, um Ihr Dokument herunterzuladen:",
//help page //help page
"back_btn" : "Zurück",
"help_page_h1" : "Programm Anleitung",
"help_page_tableofcontents" : "Inhaltsverzeichnis",
//Inhaltsverzeichnis //Inhaltsverzeichnis
"hp_convertVid" : "Video zu Dokument umwandeln", "hp_convertVid" : "Video zu Dokument umwandeln",
"hp_firstStep" : "Schritt 1 - Video auswählen", "hp_firstStep" : "Schritt 1 - Video auswählen",
@@ -224,6 +230,9 @@ var languageOptions = {
"step6_h2" : "अपना दस्तावेज़ डाउनलोड करने के लिए यहां क्लिक करें:", "step6_h2" : "अपना दस्तावेज़ डाउनलोड करने के लिए यहां क्लिक करें:",
//help page //help page
"back_btn" : "पीछे",
"help_page_h1" : "प्रोग्राम ट्यूटोरियल",
"help_page_tableofcontents" : "विषयसूची",
//Inhaltsverzeichnis //Inhaltsverzeichnis
"hp_convertVid" : "वीडियो को दस्तावेज़ में बदलें", "hp_convertVid" : "वीडियो को दस्तावेज़ में बदलें",
"hp_firstStep" : "चरण 1 - वीडियो चुनें", "hp_firstStep" : "चरण 1 - वीडियो चुनें",
+62
View File
@@ -5,10 +5,12 @@ let currentVideoPath = null;
Functions used in the setup or affect most of the gui Functions used in the setup or affect most of the gui
*/ */
//For managing the displaying of the costum document section
var showCDValue = 0; var showCDValue = 0;
function showCD() { function showCD() {
if(showCDValue == 0){ if(showCDValue == 0){
document.getElementById('cdContainer').style.display = "block"; document.getElementById('cdContainer').style.display = "block";
document.getElementById('helpContainer').style.display = "none";
document.getElementById('step1').style.display ="none"; document.getElementById('step1').style.display ="none";
document.getElementById('step2').style.display ="none"; document.getElementById('step2').style.display ="none";
document.getElementById('step3').style.display ="none"; document.getElementById('step3').style.display ="none";
@@ -16,6 +18,7 @@ function showCD() {
document.getElementById('step5').style.display ="none"; document.getElementById('step5').style.display ="none";
document.getElementById('step6').style.display ="none"; document.getElementById('step6').style.display ="none";
showCDValue = 1; showCDValue = 1;
showHelpValue = 0;
} else { } else {
currentStep = 1; currentStep = 1;
showCDValue = 0; showCDValue = 0;
@@ -24,6 +27,27 @@ function showCD() {
} }
} }
var showHelpValue = 0;
function showHelp() {
if(showHelpValue == 0){
document.getElementById('helpContainer').style.display = "flex";
document.getElementById('cdContainer').style.display = "none";
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";
showHelpValue = 1;
} else {
currentStep = 1;
showHelpValue = 0;
showCDValue = 0;
document.getElementById('helpContainer').style.display = "none";
showStep(1);
}
}
//language changing feature => changes the language of every displayed text //language changing feature => changes the language of every displayed text
function changeLanguage(language) { function changeLanguage(language) {
try { try {
@@ -74,6 +98,40 @@ function changeLanguage(language) {
document.getElementById("step5_h2").textContent = languageOptions[language].step5_h2; document.getElementById("step5_h2").textContent = languageOptions[language].step5_h2;
document.getElementById("step6_h2").textContent = languageOptions[language].step6_h2; document.getElementById("step6_h2").textContent = languageOptions[language].step6_h2;
document.getElementById("back_btn").textContent = languageOptions[language].back_btn;
document.getElementById("help_page_h1").textContent = languageOptions[language].help_page_h1;
document.getElementById("help_page_tableofcontents").textContent = languageOptions[language].help_page_tableofcontents;
document.getElementById("hp_convertVid").textContent = languageOptions[language].hp_convertVid;
document.getElementById("hp_firstStep").textContent = languageOptions[language].hp_firstStep;
document.getElementById("hp_secondStep").textContent = languageOptions[language].hp_secondStep;
document.getElementById("hp_thirdStep").textContent = languageOptions[language].hp_thirdStep;
document.getElementById("hp_fourthStep").textContent = languageOptions[language].hp_fourthStep;
document.getElementById("hp_fifthStep").textContent = languageOptions[language].hp_fifthStep;
document.getElementById("hp_sixthStep").textContent = languageOptions[language].hp_sixthStep;
document.getElementById("hp_createDoc").textContent = languageOptions[language].hp_createDoc;
document.getElementById("hp_editDoc").textContent = languageOptions[language].hp_editDoc;
document.getElementById("hp_deleteDoc").textContent = languageOptions[language].hp_deleteDoc;
document.getElementById("hp_convertVid_h2").textContent = languageOptions[language].hp_convertVid_h2;
document.getElementById("hp_firstStep_h3").textContent = languageOptions[language].hp_firstStep_h3;
document.getElementById("hp_secondStep_h3").textContent = languageOptions[language].hp_secondStep_h3;
document.getElementById("hp_thirdStep_h3").textContent = languageOptions[language].hp_thirdStep_h3;
document.getElementById("hp_fourthStep_h3").textContent = languageOptions[language].hp_fourthStep_h3;
document.getElementById("hp_fifthStep_h3").textContent = languageOptions[language].hp_fifthStep_h3;
document.getElementById("hp_sixthStep_h3").textContent = languageOptions[language].hp_sixthStep_h3;
document.getElementById("hp_createDoc_h2").textContent = languageOptions[language].hp_createDoc_h2;
document.getElementById("hp_editDoc_h2").textContent = languageOptions[language].hp_editDoc_h2;
document.getElementById("hp_deleteDoc_h2").textContent = languageOptions[language].hp_deleteDoc_h2;
document.getElementById("hp_firstStep_p").textContent = languageOptions[language].hp_firstStep_p;
document.getElementById("hp_secondStep_p").textContent = languageOptions[language].hp_secondStep_p;
document.getElementById("hp_thirdStep_p").textContent = languageOptions[language].hp_thirdStep_p;
document.getElementById("hp_fourthStep_p").textContent = languageOptions[language].hp_fourthStep_p;
document.getElementById("hp_fifthStep_p").textContent = languageOptions[language].hp_fifthStep_p;
document.getElementById("hp_sixthStep_p").textContent = languageOptions[language].hp_sixthStep_p;
document.getElementById("hp_createDoc_p").textContent = languageOptions[language].hp_createDoc_p;
document.getElementById("hp_editDoc_p").textContent = languageOptions[language].hp_editDoc_p;
document.getElementById("hp_deleteDoc_p").textContent = languageOptions[language].hp_deleteDoc_p;
} catch (error) { } catch (error) {
console.log("Error in script.js changeLanguage function"); console.log("Error in script.js changeLanguage function");
console.log(error); console.log(error);
@@ -98,6 +156,10 @@ function showStep(stepNumber) {
showCDValue = 0; showCDValue = 0;
document.getElementById('cdContainer').style.display = "none"; document.getElementById('cdContainer').style.display = "none";
} }
if(showHelpValue == 1){
showHelpValue = 0;
document.getElementById('helpContainer').style.display = "none";
}
if (stepNumber < 1 || stepNumber > totalSteps) { if (stepNumber < 1 || stepNumber > totalSteps) {
console.error("StepNumber out of Bounds", stepNumber); console.error("StepNumber out of Bounds", stepNumber);
return; return;
+1 -2
View File
@@ -812,7 +812,7 @@ button:hover {
/* help page */ /* help page */
/* ===== CONTAINER ===== */ /* ===== CONTAINER ===== */
.container { .containerHelp {
background: white; background: white;
width: 90%; width: 90%;
max-width: 800px; max-width: 800px;
@@ -820,7 +820,6 @@ button:hover {
/* feste Höhe */ /* feste Höhe */
border-radius: 12px; border-radius: 12px;
box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1); box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
display: flex;
flex-direction: column; flex-direction: column;
} }