mirror of
https://gitlab.rlp.net/proj-wise2526-video2document/video2document.git
synced 2026-06-15 18:01:52 +02:00
502 lines
21 KiB
HTML
502 lines
21 KiB
HTML
<!doctype html>
|
|
<html lang="de">
|
|
<head>
|
|
<meta charset="UTF-8" />
|
|
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
|
|
<title id="title">Video to document</title>
|
|
<link rel="stylesheet" href="style.css" />
|
|
<link
|
|
rel="stylesheet"
|
|
href="https://cdn.jsdelivr.net/npm/lc-select@1.3.0/themes/light.css"
|
|
/>
|
|
</head>
|
|
|
|
<body>
|
|
<div id="h1-wrapper">
|
|
<section class="p-menu1">
|
|
<nav id="navbar" class="navigation" role="navigation">
|
|
<input id="toggle1" type="checkbox" />
|
|
<label class="hamburger1" for="toggle1">
|
|
<div class="top"></div>
|
|
<div class="meat"></div>
|
|
<div class="bottom"></div>
|
|
</label>
|
|
|
|
<nav class="menu1">
|
|
<button id="customDocBtn" onclick="showCD()">
|
|
Manage document types
|
|
</button>
|
|
<a href="help_page.html" class="li1">Help</a>
|
|
</nav>
|
|
</nav>
|
|
</section>
|
|
|
|
<h1 id="h1">Video to document</h1>
|
|
|
|
<div class="gui-language">
|
|
<select name="language_option" id="language_option"></select>
|
|
</div>
|
|
</div>
|
|
|
|
<div class="step-nav">
|
|
<div class="step-item active" data-step="1" id="step_nav1">1. Step</div>
|
|
<div class="step-item" data-step="2" id="step_nav2">2. Step</div>
|
|
<div class="step-item" data-step="3" id="step_nav3">3. Step</div>
|
|
<div class="step-item" data-step="4" id="step_nav4">4. Step</div>
|
|
<div class="step-item" data-step="5" id="step_nav5">5. Step</div>
|
|
<div class="step-item" data-step="6" id="step_nav6">6. Step</div>
|
|
</div>
|
|
|
|
<div id="middleContainerWrapper" class="middle-container-wrapper">
|
|
<button id="prevBtn" class="navBtn" disabled>←</button>
|
|
|
|
<!-- Visible middle part-->
|
|
<div class="mitte" id="mitte">
|
|
<!--Costum document section-->
|
|
<div class="container" id="cdContainer" style="display: none">
|
|
<h1 id="cd_h1">Manage document types</h1>
|
|
|
|
<label for="existingDocs" id="cd_existingDocs"
|
|
>Select existing documents (optional):</label
|
|
>
|
|
<!--Drop Down-->
|
|
<select name="existingDocs" id="existingDocs">
|
|
<option value="newDoc" id="newDoc">
|
|
-- Create new document --
|
|
</option>
|
|
</select>
|
|
|
|
<div id="docNameWrapper">
|
|
<label for="docName" id="cd_docName">Document name:</label>
|
|
<input
|
|
type="text"
|
|
id="docName"
|
|
placeholder="Enter the document name here"
|
|
/>
|
|
</div>
|
|
|
|
<label for="prompt" id="cd_promt">Your prompt:</label>
|
|
<textarea
|
|
id="prompt"
|
|
placeholder="Type the prompt for your document here..."
|
|
></textarea>
|
|
|
|
<div class="buttons">
|
|
<button id="goBackBtn">Return</button>
|
|
<button id="deleteBtn">Delete document</button>
|
|
<button id="generateBtn">Save document</button>
|
|
</div>
|
|
|
|
<div id="result"></div>
|
|
</div>
|
|
|
|
<!-- Here starts code from the helppage -->
|
|
|
|
<div class="container" style="display: none">
|
|
<!-- FIXER OBERER TEIL -->
|
|
<div class="top-bar">
|
|
<a href="index.html">
|
|
<button class="back-btn">Zurück</button>
|
|
</a>
|
|
|
|
<h1>Programm Anleitung</h1>
|
|
|
|
|
|
<div class="toc-wrapper">
|
|
<button class="toc-toggle" onclick="toggleTOC()">Inhaltsverzeichnis</button>
|
|
<div class="toc" id="toc">
|
|
<a href="#convertVid" id='hp_convertVid' onclick="closeTOC()">Video zu Dokument umwandeln</a>
|
|
<a href="#firstStep" id='hp_firstStep' onclick="closeTOC()">Schritt 1 - Video auswählen</a>
|
|
<a href="#secondStep" id='hp_secondStep' onclick="closeTOC()">Schritt 2 - Konfiguration</a>
|
|
<a href="#thirdStep" id='hp_thirdStep' onclick="closeTOC()">Schritt 3 - Dokumententyp auswählen</a>
|
|
<a href="#fourthStep" id='hp_fourthStep' onclick="closeTOC()">Schritt 4 - Bestätigen</a>
|
|
<a href="#fifthStep" id='hp_fifthStep' onclick="closeTOC()">Schritt 5 - Sprecher identifizieren</a>
|
|
<a href="#sixthStep" id='hp_sixthStep' onclick="closeTOC()">Schritt 6 - Dokument speichern</a>
|
|
<a href="#createDoc" id='hp_createDoc' onclick="closeTOC()">Dokumententyp erstellen</a>
|
|
<a href="#editDoc" id='hp_editDoc' onclick="closeTOC()">Dokumententyp bearbeiten</a>
|
|
<a href="#deleteDoc" id='hp_deleteDoc' onclick="closeTOC()">Dokumententyp löschen</a>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
|
|
<!-- NUR DIESER TEIL SCROLLT -->
|
|
<div class="content">
|
|
|
|
<div class="step" id="convertVid">
|
|
<h2 id="hp_convertVid_h2">Video zu Dokument umwandeln.</h2>
|
|
|
|
<div class="step" id="firstStep">
|
|
<h3 id="hp_firstStep_h3">Schritt 1 - Video auswählen</h3>
|
|
<p id="hp_firstStep_p">
|
|
- Ziehe eine Videodatei in das Drag-and-Drop-Feld oder klicke auf <strong>„Video
|
|
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>
|
|
</div>
|
|
<div class="step" id="secondStep">
|
|
<h3 id="hp_secondStep_h3">Schritt 2 - Konfiguration</h3>
|
|
<p id="hp_secondStep_p">
|
|
- Wähle im ersten Auswahlmenü die zu verwendende <strong>KI</strong>.<br>
|
|
- 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>
|
|
</div>
|
|
<div class="step" id="thirdStep">
|
|
<h3 id="hp_thirdStep_h3">Schritt 3 - Dokumententyp auswählen</h3>
|
|
<p id="hp_thirdStep_p">
|
|
- Wähle einen Dokumententyp über die Checkbox oder einen zuvor erstellten Dokumententyp aus dem
|
|
Dropdown-Menü aus.<br>
|
|
- Klicke anschließend auf <strong>Schritt 4</strong> oder auf den blauen Pfeil rechts, um
|
|
fortzufahren.
|
|
</p>
|
|
</div>
|
|
<div class="step" id="fourthStep">
|
|
<h3 id="hp_fourthStep_h3">Schritt 4 - Bestätigen</h3>
|
|
<p id="hp_fourthStep_p">
|
|
Klicke auf <strong>„Submit“</strong>, um die Dokumentengenerierung zu starten.<br>
|
|
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>
|
|
</div>
|
|
<div class="step" id="fifthStep">
|
|
<h3 id="hp_fifthStep_h3">Schritt 5 - Sprecher identifizieren</h3>
|
|
<p id="hp_fifthStep_p">
|
|
Im Auswahlmenü kannst du einen erkannten Sprecher auswählen.<br>
|
|
Ü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>
|
|
</div>
|
|
<div class="step" id="sixthStep">
|
|
<h3 id="hp_sixthStep_h3">Schritt 6 - Dokument speichern</h3>
|
|
<p id="hp_sixthStep_p">
|
|
Klicke auf <strong>„Download“</strong>, um das Dokument zu speichern.<br>
|
|
Es öffnet sich anschließend ein Dateiexplorer, in dem du den gewünschten Speicherort auswählen
|
|
kannst.
|
|
</p>
|
|
</div>
|
|
</div>
|
|
|
|
|
|
<div class="step" id="createDoc">
|
|
<h2 id="hp_createDoc_h2">Dokumententyp erstellen</h2>
|
|
<p id="hp_createDoc_p">
|
|
- Öffne oben links das Burgermenü und wähle den Punkt <strong>„Dokumententypen
|
|
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>
|
|
</div>
|
|
|
|
<div class="step" id="editDoc">
|
|
<h2 id="hp_editDoc_h2">Dokumententyp bearbeiten</h2>
|
|
<p id="hp_editDoc_p">
|
|
- Öffne oben links das Burgermenü und wähle den Punkt <strong>„Dokumententypen
|
|
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>
|
|
</div>
|
|
|
|
<div class="step" id="deleteDoc">
|
|
<h2 id="hp_deleteDoc_h2">Dokumententyp löschen</h2>
|
|
<p id="hp_deleteDoc_p"> - Öffne oben links das Burgermenü und wähle den Punkt <strong>„Dokumententypen
|
|
verwalten“</strong>.<br>
|
|
- 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>
|
|
</div>
|
|
</div>
|
|
|
|
</div>
|
|
|
|
<!-- Here starts code from step 1-->
|
|
<div class="step" id="step1">
|
|
<h2 class="h2" id="step1_h2">Upload your video here:</h2>
|
|
<div class="upload-container" id="uploadContainer">
|
|
<p id="p1">Drag and drop video file</p>
|
|
<video id="previewThumbnail" autoplay="false"></video>
|
|
<div class="file-name" id="fileName">No video chosen</div>
|
|
<div id="thumbnailContainer">
|
|
<img id="thumbnailImage" style="display: none" />
|
|
</div>
|
|
<button class="custom-btn" id="manualUploadBtn">
|
|
Search video
|
|
</button>
|
|
<input type="file" id="videoUpload" accept="video/*" />
|
|
</div>
|
|
</div>
|
|
|
|
<!-- Here starts code from step 2-->
|
|
<div class="step" id="step2" style="display: none">
|
|
<h2 class="h2" id="step2_h2">Choose your preferences:</h2>
|
|
<div class="step2-form">
|
|
<div class="KI-wrapper">
|
|
<label id="labelKI">Select ki:</label>
|
|
<select name="ai_type" id="ai_type"></select>
|
|
</div>
|
|
|
|
<div class="transcript-wrap">
|
|
<label id="labelTranscription">Select transcription:</label>
|
|
<select name="transkript_type" id="transkript_type"></select>
|
|
</div>
|
|
|
|
<div class="type-wrapper">
|
|
<label id="labelType">Select type:</label>
|
|
<select name="output_type" id="output_type">
|
|
<option value="pdf">.pdf</option>
|
|
<option value="docx">.docx</option>
|
|
<option value="txt">.txt</option>
|
|
</select>
|
|
</div>
|
|
|
|
<div class="language-wrapper">
|
|
<label id="labelLanguage">Select language:</label>
|
|
|
|
<select
|
|
name="document_language_option"
|
|
id="document_language_option"
|
|
></select>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
|
|
<!-- Here starts code from step 3-->
|
|
|
|
<!-- Hover Effekt für Dokumentenvorschau, Fragezeichen hinter Text, drüber hoven zeigt Beispieldokument -->
|
|
<div class="step" id="step3" style="display: none">
|
|
<div class="checkbox-group">
|
|
<h2 class="h2" id="step3_h2">Choose prefered document style:</h2>
|
|
<div class="checkbox-container">
|
|
<input
|
|
type="checkbox"
|
|
name="docFormat"
|
|
id="docFormat"
|
|
value="followup-report"
|
|
/>
|
|
<label id="label_format" for="docFormat">Follow-up Report</label>
|
|
<div class="figure1">
|
|
<img
|
|
class="img-icon"
|
|
src="icons/question-mark-button-icon--free-clip-art-30.png"
|
|
/>
|
|
<img
|
|
class="img-hover1"
|
|
src="flags/germany-flag-png-large.jpg"
|
|
/>
|
|
</div>
|
|
</div>
|
|
<div class="checkbox-container">
|
|
<input
|
|
type="checkbox"
|
|
name="docFormat"
|
|
id="docFormatSummary1"
|
|
value="agenda"
|
|
/>
|
|
<label id="label_summary" for="docFormatSummary">Agenda</label>
|
|
<div class="figure2">
|
|
<img
|
|
class="img-icon"
|
|
src="icons/question-mark-button-icon--free-clip-art-30.png"
|
|
/>
|
|
<img class="img-hover2" src="flags/india-flag-png-large.png" />
|
|
</div>
|
|
</div>
|
|
<div class="checkbox-container">
|
|
<input
|
|
type="checkbox"
|
|
name="docFormat"
|
|
id="docFormatSummary2"
|
|
value="result-protocol"
|
|
/>
|
|
<label id="label_summary" for="docFormatSummary"
|
|
>Resultprotocol</label
|
|
>
|
|
<div class="figure3">
|
|
<img
|
|
class="img-icon"
|
|
src="icons/question-mark-button-icon--free-clip-art-30.png"
|
|
/>
|
|
<img
|
|
class="img-hover3"
|
|
src="flags/united-kingdom-flag-png-large.jpg"
|
|
/>
|
|
</div>
|
|
</div>
|
|
<div class="checkbox-container">
|
|
<input
|
|
type="checkbox"
|
|
name="docFormat"
|
|
id="docFormatSummary3"
|
|
value="sprint-planning"
|
|
/>
|
|
<label id="label_summary" for="docFormatSummary"
|
|
>Sprint Planning Note</label
|
|
>
|
|
<div class="figure4">
|
|
<img
|
|
class="img-icon"
|
|
src="icons/question-mark-button-icon--free-clip-art-30.png"
|
|
/>
|
|
<img
|
|
class="img-hover4"
|
|
src="flags/germany-flag-png-large.jpg"
|
|
/>
|
|
</div>
|
|
</div>
|
|
<div class="checkbox-container">
|
|
<input
|
|
type="checkbox"
|
|
name="docFormat"
|
|
id="docFormatCustom"
|
|
value="custom"
|
|
/>
|
|
<select
|
|
name="customDocumentTypes"
|
|
id="customDocumentTypes"
|
|
></select>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
|
|
<!-- Here starts code from step 4-->
|
|
<div class="step" id="step4" style="display: none">
|
|
<h2 class="h2" id="step4_h2">Click to submit:</h2>
|
|
<button
|
|
class="submit-btn"
|
|
id="submitButton"
|
|
onclick="checkBoxes()"
|
|
disabled
|
|
>
|
|
Submit
|
|
</button>
|
|
|
|
<div class="testy" id="testy">
|
|
<div class="box2" id="box1"></div>
|
|
<p id="box1_p1">---Starting---</p>
|
|
<div class="box2" id="box2"></div>
|
|
<p id="box2_p2">---Transkribing---</p>
|
|
<div class="box2" id="box3"></div>
|
|
<p id="box3_p3">---Document creation---</p>
|
|
<div class="box2" id="box4"></div>
|
|
</div>
|
|
</div>
|
|
|
|
<!-- Here starts code from step 5-->
|
|
<div class="step" id="step5" style="display: none">
|
|
<h2 class="h2" id="step5_h2">Change names of the speakers:</h2>
|
|
|
|
<div class="speaker-container">
|
|
<table class="speaker-table">
|
|
<tbody>
|
|
<tr>
|
|
<td class="label-cell">
|
|
<label id="labelSpeaker" for="cur_speaker"
|
|
>Select Speaker:</label
|
|
>
|
|
</td>
|
|
<td class="input-cell">
|
|
<select name="cur_speaker" id="cur_speaker"></select>
|
|
</td>
|
|
</tr>
|
|
<tr>
|
|
<td class="label-cell">
|
|
<label id="labelSpeakerAudio">Speaker Audio:</label>
|
|
</td>
|
|
<td class="input-cell">
|
|
<audio controls id="speakerAudioViewer">
|
|
Currently there is no audio file here.
|
|
</audio>
|
|
</td>
|
|
</tr>
|
|
<tr>
|
|
<td class="label-cell">
|
|
<label id="labelSpeakerWriter" for="newSpeaker"
|
|
>New Name:</label
|
|
>
|
|
</td>
|
|
<td class="input-cell">
|
|
<input
|
|
type="text"
|
|
id="newSpeaker"
|
|
placeholder="Enter new speaker name"
|
|
/>
|
|
</td>
|
|
</tr>
|
|
</tbody>
|
|
</table>
|
|
|
|
<div class="speaker-button-group">
|
|
<button id="speakerLocker" onclick="rewriteSpeakerName()">
|
|
Rename Speaker
|
|
</button>
|
|
<button id="speakerResender" onclick="sendSpeakerPackages()">
|
|
Rewrite Document
|
|
</button>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
|
|
<!-- Here starts code from step 6-->
|
|
<div class="step" id="step6" style="display: none">
|
|
<h2 class="h2" id="step6_h2">Click to download your document:</h2>
|
|
<button
|
|
class="download-btn"
|
|
id="downloadButton"
|
|
onclick="fileDownload()"
|
|
>
|
|
Download
|
|
</button>
|
|
</div>
|
|
</div>
|
|
|
|
<button id="nextBtn" class="navBtn">→</button>
|
|
</div>
|
|
<script src="https://cdn.jsdelivr.net/npm/lc-select@1.3.0/lc_select.min.js"></script>
|
|
<script src="languages.js"></script>
|
|
<script src="script.js"></script>
|
|
<script src="./renderer.js"></script>
|
|
</body>
|
|
</html>
|