Fixes in language.js and script.js

This commit is contained in:
2026-01-21 18:30:47 +01:00
parent 56224d9c14
commit 14c89bfb17
3 changed files with 429 additions and 461 deletions
+74 -124
View File
@@ -1,17 +1,15 @@
<!doctype html> <!doctype html>
<html lang="de"> <html lang="de">
<head>
<head>
<meta charset="UTF-8" /> <meta charset="UTF-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" /> <meta name="viewport" content="width=device-width, initial-scale=1.0" />
<title id="title">Video to document</title> <title id="title">Video to document</title>
<link rel="stylesheet" href="style.css" /> <link rel="stylesheet" href="style.css" />
<link <link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/lc-select@1.3.0/themes/light.css" />
rel="stylesheet" </head>
href="https://cdn.jsdelivr.net/npm/lc-select@1.3.0/themes/light.css"
/>
</head>
<body> <body>
<div id="h1-wrapper"> <div id="h1-wrapper">
<section class="p-menu1"> <section class="p-menu1">
<nav id="navbar" class="navigation" role="navigation"> <nav id="navbar" class="navigation" role="navigation">
@@ -59,9 +57,7 @@
<div class="container" id="cdContainer" style="display: none"> <div class="container" id="cdContainer" style="display: none">
<h1 id="cd_h1">Manage document types</h1> <h1 id="cd_h1">Manage document types</h1>
<label for="existingDocs" id="cd_existingDocs" <label for="existingDocs" id="cd_existingDocs">Select existing documents (optional):</label>
>Select existing documents (optional):</label
>
<!--Drop Down--> <!--Drop Down-->
<select name="existingDocs" id="existingDocs"> <select name="existingDocs" id="existingDocs">
<option value="newDoc" id="newDoc"> <option value="newDoc" id="newDoc">
@@ -71,18 +67,11 @@
<div id="docNameWrapper"> <div id="docNameWrapper">
<label for="docName" id="cd_docName">Document name:</label> <label for="docName" id="cd_docName">Document name:</label>
<input <input type="text" id="docName" placeholder="Enter the document name here" />
type="text"
id="docName"
placeholder="Enter the document name here"
/>
</div> </div>
<label for="prompt" id="cd_promt">Your prompt:</label> <label for="prompt" id="cd_promt">Your prompt:</label>
<textarea <textarea id="prompt" placeholder="Type the prompt for your document here..."></textarea>
id="prompt"
placeholder="Type the prompt for your document here..."
></textarea>
<div class="buttons"> <div class="buttons">
<button id="goBackBtn">Return</button> <button id="goBackBtn">Return</button>
@@ -95,7 +84,7 @@
<!-- Here starts code from the helppage --> <!-- Here starts code from the helppage -->
<div class="containerHelp" id="helpContainer"style="display: none"> <div class="containerHelp" id="helpContainer" style="display: none">
<!-- FIXER OBERER TEIL --> <!-- FIXER OBERER TEIL -->
<div class="top-bar" id="top_bar_help"> <div class="top-bar" id="top_bar_help">
<button class="back-btn" id="back_btn" onclick="showHelp()">Return</button> <button class="back-btn" id="back_btn" onclick="showHelp()">Return</button>
@@ -129,41 +118,61 @@
<div class="step_hp" id="firstStep"> <div class="step_hp" id="firstStep">
<h3 id="hp_firstStep_h3">Step 1 - Select video</h3> <h3 id="hp_firstStep_h3">Step 1 - Select video</h3>
<p id="hp_firstStep_p"> <p id="hp_firstStep_p">
- 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. - 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.
</p> </p>
</div> </div>
<div class="step_hp" id="secondStep"> <div class="step_hp" id="secondStep">
<h3 id="hp_secondStep_h3">Step 2 - Configuration</h3> <h3 id="hp_secondStep_h3">Step 2 - Configuration</h3>
<p id="hp_secondStep_p"> <p id="hp_secondStep_p">
- 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. - 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.
</p> </p>
</div> </div>
<div class="step_hp" id="thirdStep"> <div class="step_hp" id="thirdStep">
<h3 id="hp_thirdStep_h3">Step 3 - Select document type</h3> <h3 id="hp_thirdStep_h3">Step 3 - Select document type</h3>
<p id="hp_thirdStep_p"> <p id="hp_thirdStep_p">
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. 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.
</p> </p>
</div> </div>
<div class="step_hp" id="fourthStep"> <div class="step_hp" id="fourthStep">
<h3 id="hp_fourthStep_h3">Step 4 - Confirm</h3> <h3 id="hp_fourthStep_h3">Step 4 - Confirm</h3>
<p id="hp_fourthStep_p"> <p id="hp_fourthStep_p">
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. 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.
</p> </p>
</div> </div>
<div class="step_hp" id="fifthStep"> <div class="step_hp" id="fifthStep">
<h3 id="hp_fifthStep_h3">Step 5 - Identify speakers</h3> <h3 id="hp_fifthStep_h3">Step 5 - Identify speakers</h3>
<p id="hp_fifthStep_p"> <p id="hp_fifthStep_p">
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. 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.
</p> </p>
</div> </div>
<div class="step_hp" id="sixthStep"> <div class="step_hp" id="sixthStep">
<h3 id="hp_sixthStep_h3">Step 6 - Save document</h3> <h3 id="hp_sixthStep_h3">Step 6 - Save document</h3>
<p id="hp_sixthStep_p"> <p id="hp_sixthStep_p">
Click <strong>“Download”</strong> to save the document.<br>A file explorer will then open, where you can select the desired storage location. Click <strong>“Download”</strong> to save the document.<br>A file explorer will then open, where you can
select the desired storage location.
</p> </p>
</div> </div>
@@ -173,7 +182,12 @@
<div class="step_hp" id="createDoc"> <div class="step_hp" id="createDoc">
<h2 id="hp_createDoc_h2">Create document type</h2> <h2 id="hp_createDoc_h2">Create document type</h2>
<p id="hp_createDoc_p"> <p id="hp_createDoc_p">
- 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. - 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.
</p> </p>
</div> </div>
@@ -181,7 +195,12 @@
<div class="step_hp" id="editDoc"> <div class="step_hp" id="editDoc">
<h2 id="hp_editDoc_h2">Edit document type</h2> <h2 id="hp_editDoc_h2">Edit document type</h2>
<p id="hp_editDoc_p"> <p id="hp_editDoc_p">
- 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. - 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.
</p> </p>
</div> </div>
@@ -189,7 +208,10 @@
<div class="step_hp" id="deleteDoc"> <div class="step_hp" id="deleteDoc">
<h2 id="hp_deleteDoc_h2">Delete document type</h2> <h2 id="hp_deleteDoc_h2">Delete document type</h2>
<p id="hp_deleteDoc_p"> <p id="hp_deleteDoc_p">
- 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. - 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.
</p> </p>
</div> </div>
@@ -240,10 +262,7 @@
<div class="language-wrapper"> <div class="language-wrapper">
<label id="labelLanguage">Select language:</label> <label id="labelLanguage">Select language:</label>
<select <select name="document_language_option" id="document_language_option"></select>
name="document_language_option"
id="document_language_option"
></select>
</div> </div>
</div> </div>
</div> </div>
@@ -255,93 +274,40 @@
<div class="checkbox-group"> <div class="checkbox-group">
<h2 class="h2" id="step3_h2">Choose prefered document style:</h2> <h2 class="h2" id="step3_h2">Choose prefered document style:</h2>
<div class="checkbox-container"> <div class="checkbox-container">
<input <input type="checkbox" name="docFormat" id="docFormat" value="followup-report" />
type="checkbox"
name="docFormat"
id="docFormat"
value="followup-report"
/>
<label id="label_format" for="docFormat">Follow-up Report</label> <label id="label_format" for="docFormat">Follow-up Report</label>
<div class="figure1"> <div class="figure1">
<img <img class="img-icon" src="icons/question-mark-button-icon--free-clip-art-30.png" />
class="img-icon" <img class="img-hover1" src="icons/follow_up_report_example.png" />
src="icons/question-mark-button-icon--free-clip-art-30.png"
/>
<img
class="img-hover1"
src="icons/follow_up_report_example.png"
/>
</div> </div>
</div> </div>
<div class="checkbox-container"> <div class="checkbox-container">
<input <input type="checkbox" name="docFormat" id="docFormatSummary1" value="agenda" />
type="checkbox"
name="docFormat"
id="docFormatSummary1"
value="agenda"
/>
<label id="label_summary" for="docFormatSummary">Agenda</label> <label id="label_summary" for="docFormatSummary">Agenda</label>
<div class="figure2"> <div class="figure2">
<img <img class="img-icon" src="icons/question-mark-button-icon--free-clip-art-30.png" />
class="img-icon"
src="icons/question-mark-button-icon--free-clip-art-30.png"
/>
<img class="img-hover2" src="icons/agenda_example.png" /> <img class="img-hover2" src="icons/agenda_example.png" />
</div> </div>
</div> </div>
<div class="checkbox-container"> <div class="checkbox-container">
<input <input type="checkbox" name="docFormat" id="docFormatSummary2" value="result-protocol" />
type="checkbox" <label id="label_summary_result" for="docFormatSummary">Resultprotocol</label>
name="docFormat"
id="docFormatSummary2"
value="result-protocol"
/>
<label id="label_summary" for="docFormatSummary"
>Resultprotocol</label
>
<div class="figure3"> <div class="figure3">
<img <img class="img-icon" src="icons/question-mark-button-icon--free-clip-art-30.png" />
class="img-icon" <img class="img-hover3" src="icons/result_protocol_example.png" />
src="icons/question-mark-button-icon--free-clip-art-30.png"
/>
<img
class="img-hover3"
src="icons/result_protocol_example.png"
/>
</div> </div>
</div> </div>
<div class="checkbox-container"> <div class="checkbox-container">
<input <input type="checkbox" name="docFormat" id="docFormatSummary3" value="sprint-planning" />
type="checkbox" <label id="label_summary_note" for="docFormatSummary">Sprint Planning Note</label>
name="docFormat"
id="docFormatSummary3"
value="sprint-planning"
/>
<label id="label_summary" for="docFormatSummary"
>Sprint Planning Note</label
>
<div class="figure4"> <div class="figure4">
<img <img class="img-icon" src="icons/question-mark-button-icon--free-clip-art-30.png" />
class="img-icon" <img class="img-hover4" src="icons/sprint_planning_note_example.png" />
src="icons/question-mark-button-icon--free-clip-art-30.png"
/>
<img
class="img-hover4"
src="icons/sprint_planning_note_example.png"
/>
</div> </div>
</div> </div>
<div class="checkbox-container"> <div class="checkbox-container">
<input <input type="checkbox" name="docFormat" id="docFormatCustom" value="custom" />
type="checkbox" <select name="customDocumentTypes" id="customDocumentTypes"></select>
name="docFormat"
id="docFormatCustom"
value="custom"
/>
<select
name="customDocumentTypes"
id="customDocumentTypes"
></select>
</div> </div>
</div> </div>
</div> </div>
@@ -349,12 +315,7 @@
<!-- Here starts code from step 4--> <!-- Here starts code from step 4-->
<div class="step" id="step4" style="display: none"> <div class="step" id="step4" style="display: none">
<h2 class="h2" id="step4_h2">Click to submit:</h2> <h2 class="h2" id="step4_h2">Click to submit:</h2>
<button <button class="submit-btn" id="submitButton" onclick="checkBoxes()" disabled>
class="submit-btn"
id="submitButton"
onclick="checkBoxes()"
disabled
>
Submit Submit
</button> </button>
@@ -378,9 +339,7 @@
<tbody> <tbody>
<tr> <tr>
<td class="label-cell"> <td class="label-cell">
<label id="labelSpeaker" for="cur_speaker" <label id="labelSpeaker" for="cur_speaker">Select Speaker:</label>
>Select Speaker:</label
>
</td> </td>
<td class="input-cell"> <td class="input-cell">
<select name="cur_speaker" id="cur_speaker"></select> <select name="cur_speaker" id="cur_speaker"></select>
@@ -398,16 +357,10 @@
</tr> </tr>
<tr> <tr>
<td class="label-cell"> <td class="label-cell">
<label id="labelSpeakerWriter" for="newSpeaker" <label id="labelSpeakerWriter" for="newSpeaker">New Name:</label>
>New Name:</label
>
</td> </td>
<td class="input-cell"> <td class="input-cell">
<input <input type="text" id="newSpeaker" placeholder="Enter new speaker name" />
type="text"
id="newSpeaker"
placeholder="Enter new speaker name"
/>
</td> </td>
</tr> </tr>
</tbody> </tbody>
@@ -427,11 +380,7 @@
<!-- Here starts code from step 6--> <!-- Here starts code from step 6-->
<div class="step" id="step6" style="display: none"> <div class="step" id="step6" style="display: none">
<h2 class="h2" id="step6_h2">Click to download your document:</h2> <h2 class="h2" id="step6_h2">Click to download your document:</h2>
<button <button class="download-btn" id="downloadButton" onclick="fileDownload()">
class="download-btn"
id="downloadButton"
onclick="fileDownload()"
>
Download Download
</button> </button>
</div> </div>
@@ -443,5 +392,6 @@
<script src="languages.js"></script> <script src="languages.js"></script>
<script src="script.js"></script> <script src="script.js"></script>
<script src="./renderer.js"></script> <script src="./renderer.js"></script>
</body> </body>
</html> </html>
+14 -8
View File
@@ -10,8 +10,10 @@ var languageOptions = {
"fileName": "No video chosen", "fileName": "No video chosen",
"manualUploadBtn": "Search video", "manualUploadBtn": "Search video",
"checkbox_group": "Choose preferred document style:", "checkbox_group": "Choose preferred document style:",
"label_format": "Meeting report", "label_format": "Follow-up Report",
"label_summary": "Summary with timestamps", "label_summary": "Agenda",
"label_summary_result": "Resultprotocol",
"label_summary_note" : "Sprint Planning Note",
"submitButton": "Submit", "submitButton": "Submit",
"step_nav1": "Step 1", "step_nav1": "Step 1",
"step_nav2": "Step 2", "step_nav2": "Step 2",
@@ -100,8 +102,10 @@ var languageOptions = {
"fileName": "Kein Video ausgewählt", "fileName": "Kein Video ausgewählt",
"manualUploadBtn": "Video suchen", "manualUploadBtn": "Video suchen",
"checkbox_group": "Bevorzugte Dokumentvarianten:", "checkbox_group": "Bevorzugte Dokumentvarianten:",
"label_format": "Meeting Bericht", "label_format": "Folgebericht",
"label_summary": "Zusammenfassung mit Zeitstempeln", "label_summary": "Agenda",
"label_summary_result": "Ergebnisprotokoll",
"label_summary_note" : "Sprint-Planungshinweis",
"submitButton": "Absenden", "submitButton": "Absenden",
"step_nav1": "Schritt 1", "step_nav1": "Schritt 1",
"step_nav2": "Schritt 2", "step_nav2": "Schritt 2",
@@ -189,8 +193,10 @@ var languageOptions = {
"fileName": "कोई वीडियो नहीं चुना गया", "fileName": "कोई वीडियो नहीं चुना गया",
"manualUploadBtn": "वीडियो खोजें", "manualUploadBtn": "वीडियो खोजें",
"checkbox_group": "पसंदीदा दस्तावेज़ शैली चुनें:", "checkbox_group": "पसंदीदा दस्तावेज़ शैली चुनें:",
"label_format": "बैठक रिपोर्ट", "label_format": "अनुवर्ती रिपोर्ट",
"label_summary": "टाइमस्टैम्प के साथ सारांश", "label_summary": "कार्यसूची",
"label_summary_result": "परिणाम प्रोटोकॉल",
"label_summary_note" : "स्प्रिंट योजना नोट",
"submitButton": "जमा करें", "submitButton": "जमा करें",
"step_nav1": "स्टेप 1", "step_nav1": "स्टेप 1",
"step_nav2": "स्टेप 2", "step_nav2": "स्टेप 2",
@@ -267,7 +273,7 @@ var languageOptions = {
"hp_deleteDoc_p" : "- ऊपर बाएँ कोने में बर्गर मेनू खोलें और <strong>“दस्तावेज़ प्रकार प्रबंधित करें”</strong> चुनें।<br>- फिर ड्रॉपडाउन मेनू से हटाए जाने वाले दस्तावेज़ प्रकार को चुनें।<br>- अंत में <strong>“दस्तावेज़ प्रकार हटाएँ”</strong> पर क्लिक करें।<br><br><strong>नोट:</strong><br>हटाने की प्रक्रिया की पुष्टि करने के बाद, दस्तावेज़ प्रकार को पुनर्स्थापित नहीं किया जा सकता।" "hp_deleteDoc_p" : "- ऊपर बाएँ कोने में बर्गर मेनू खोलें और <strong>“दस्तावेज़ प्रकार प्रबंधित करें”</strong> चुनें।<br>- फिर ड्रॉपडाउन मेनू से हटाए जाने वाले दस्तावेज़ प्रकार को चुनें।<br>- अंत में <strong>“दस्तावेज़ प्रकार हटाएँ”</strong> पर क्लिक करें।<br><br><strong>नोट:</strong><br>हटाने की प्रक्रिया की पुष्टि करने के बाद, दस्तावेज़ प्रकार को पुनर्स्थापित नहीं किया जा सकता।"
}, }/*,
"cz":{ "cz":{
"flagPath": "flags/czechia-flag-png-large.png", "flagPath": "flags/czechia-flag-png-large.png",
"labelKI": "Vyberte AI:", "labelKI": "Vyberte AI:",
@@ -441,5 +447,5 @@ var languageOptions = {
"hp_editDoc_p" : "- Откройте меню-бургер в левом верхнем углу и выберите пункт <strong>«Управление типами документов»</strong>.<br>- Затем в выпадающем меню выберите тип документа для редактирования.<br>- Измените существующий запрос ИИ или сформулируйте новый запрос.<br>- В конце нажмите <strong>«Сохранить тип документа»</strong>.<br><br><strong>Примечание:</strong><br>Введенный запрос без изменений передается службе ИИ. Поэтому обязательно соблюдайте действующие правила защиты данных и не вводите никакие чувствительные или персональные данные.", "hp_editDoc_p" : "- Откройте меню-бургер в левом верхнем углу и выберите пункт <strong>«Управление типами документов»</strong>.<br>- Затем в выпадающем меню выберите тип документа для редактирования.<br>- Измените существующий запрос ИИ или сформулируйте новый запрос.<br>- В конце нажмите <strong>«Сохранить тип документа»</strong>.<br><br><strong>Примечание:</strong><br>Введенный запрос без изменений передается службе ИИ. Поэтому обязательно соблюдайте действующие правила защиты данных и не вводите никакие чувствительные или персональные данные.",
"hp_deleteDoc_p" : "- Откройте меню-бургер в левом верхнем углу и выберите пункт <strong>«Управление типами документов»</strong>.<br>- Затем в выпадающем меню выберите тип документа для удаления.<br>- В конце нажмите <strong>«Удалить тип документа»</strong>.<br><br><strong>Примечание:</strong><br>После подтверждения процесса удаления тип документа не может быть восстановлен." "hp_deleteDoc_p" : "- Откройте меню-бургер в левом верхнем углу и выберите пункт <strong>«Управление типами документов»</strong>.<br>- Затем в выпадающем меню выберите тип документа для удаления.<br>- В конце нажмите <strong>«Удалить тип документа»</strong>.<br><br><strong>Примечание:</strong><br>После подтверждения процесса удаления тип документа не может быть восстановлен."
} }
*/
}; };
+12
View File
@@ -8,6 +8,7 @@ Functions used in the setup or affect most of the gui
//For managing the displaying of the costum document section //For managing the displaying of the costum document section
var showCDValue = 0; var showCDValue = 0;
function showCD() { function showCD() {
try {
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('helpContainer').style.display = "none";
@@ -25,10 +26,15 @@ function showCD() {
document.getElementById('cdContainer').style.display = "none"; document.getElementById('cdContainer').style.display = "none";
showStep(1); showStep(1);
} }
} catch (error) {
console.log(error)
}
} }
var showHelpValue = 0; var showHelpValue = 0;
function showHelp() { function showHelp() {
try {
if(showHelpValue == 0){ if(showHelpValue == 0){
document.getElementById('helpContainer').style.display = "flex"; document.getElementById('helpContainer').style.display = "flex";
document.getElementById('cdContainer').style.display = "none"; document.getElementById('cdContainer').style.display = "none";
@@ -46,6 +52,10 @@ function showHelp() {
document.getElementById('helpContainer').style.display = "none"; document.getElementById('helpContainer').style.display = "none";
showStep(1); showStep(1);
} }
} catch (error) {
console.log(error)
}
} }
//language changing feature => changes the language of every displayed text //language changing feature => changes the language of every displayed text
@@ -61,6 +71,8 @@ function changeLanguage(language) {
document.getElementById('manualUploadBtn').textContent = languageOptions[language].manualUploadBtn; document.getElementById('manualUploadBtn').textContent = languageOptions[language].manualUploadBtn;
document.getElementById('label_format').textContent = languageOptions[language].label_format; document.getElementById('label_format').textContent = languageOptions[language].label_format;
document.getElementById('label_summary').textContent = languageOptions[language].label_summary; document.getElementById('label_summary').textContent = languageOptions[language].label_summary;
document.getElementById('label_summary_result').textContent = languageOptions[language].label_summary_result;
document.getElementById('label_summary_note').textContent = languageOptions[language].label_summary_note;
document.getElementById('submitButton').textContent = languageOptions[language].submitButton; document.getElementById('submitButton').textContent = languageOptions[language].submitButton;
document.getElementById('step_nav1').textContent = languageOptions[language].step_nav1; document.getElementById('step_nav1').textContent = languageOptions[language].step_nav1;
document.getElementById('step_nav2').textContent = languageOptions[language].step_nav2; document.getElementById('step_nav2').textContent = languageOptions[language].step_nav2;