0%
diff --git a/electron/main/renderer.js b/electron/main/renderer.js
index 2cbb567..bffef2e 100644
--- a/electron/main/renderer.js
+++ b/electron/main/renderer.js
@@ -103,4 +103,9 @@ prevBtn.addEventListener("click", () => {
nextBtn.addEventListener("click", () => {
if(currentStep < totalSteps) showStep(currentStep + 1);
-});
\ No newline at end of file
+});
+
+//Speaker change listener
+cur_speaker.addEventListener("change", (e) =>{
+ document.getElementById("speakerAudioViewer").src = valy[e.target.value].source;
+})
\ No newline at end of file
diff --git a/electron/main/script.js b/electron/main/script.js
index ee9b107..e46768f 100644
--- a/electron/main/script.js
+++ b/electron/main/script.js
@@ -167,6 +167,25 @@ function loadTranscriptionOptions(options){
}
}
+//function to load data type options to the drop down list
+function loadDataTypeOptions(options){
+ try {
+ var menu = document.getElementById('output_type');
+ var object_holdy;
+ var choice ;
+ object_holdy = options
+ for(i = 0; i < options.length; i++){
+ choice = document.createElement('option');
+ choice.textContent = object_holdy[i].displayname;
+ choice.value = object_holdy[i].name;
+ menu.appendChild(choice);
+ }
+ } catch (error) {
+ console.log("Error in script.js function loadDataTypeOptions");
+ console.log(error);
+ }
+}
+
//function to load language options to the drop down list
function loadLanguageOptions(){
try {
@@ -180,13 +199,44 @@ function loadLanguageOptions(){
choice.value = object_holdy[i];
menu.appendChild(choice);
}
-
} catch (error) {
console.log("Error in script.js loadLanguageOptions function");
console.log(error);
}
}
+//function to load speaker options to the drop down list
+function loadSpeakerOptions(options){
+ try {
+ var menu = document.getElementById('speaker_option');
+ var object_holdy;
+ var choice ;
+ object_holdy = options
+ for(i = 0; i < options.length; i++){
+ choice = document.createElement('option');
+ choice.textContent = object_holdy[i].displayname;
+ choice.value = object_holdy[i].name;
+ menu.appendChild(choice);
+ }
+ } catch (error) {
+ console.log("Error in script.js loadSpeakerOptions function");
+ console.log(error);
+ }
+}
+
+//function to load speaker audio file options to the drop down list
+function loadSpeakerAudio(option){
+ try {
+ var menu = document.getElementById('speakerAudioViewer');
+ var aud = document.createElement("source");
+ aud.src = options;
+ menu.appendChild(aud);
+ } catch (error) {
+ console.log("Error in script.js loadSpeakerAudio function");
+ console.log(error);
+ }
+}
+
function activateSubmitBtn(hasFile){
try {
@@ -217,7 +267,6 @@ function generateThumbnail(path){
}
//Step-navigation
-
const steps = document.querySelectorAll(".step");
const stepButtons = document.querySelectorAll(".step-item");
let currentStep = 1;
@@ -236,4 +285,64 @@ function showStep(stepNumber) {
prevBtn.disabled = stepNumber == 1;
nextBtn.disabled = stepNumber === totalSteps;
currentStep = stepNumber;
-}
\ No newline at end of file
+}
+
+function setCircleOne(){
+ try {
+ if(document.getElementById("block1").style.backgroundColor == "red"){
+ document.getElementById("block1").style.backgroundColor = "green";
+ }else{
+ document.getElementById("block1").style.backgroundColor = "red";
+ }
+ } catch (error) {
+
+ }
+
+}
+function setCircleZwo(){
+ try {
+ if(document.getElementById("block2").style.backgroundColor == "red"){
+ document.getElementById("block2").style.backgroundColor = "green";
+ }else{
+ document.getElementById("block2").style.backgroundColor = "red";
+ }
+ } catch (error) {
+
+ }
+
+}
+function setCircleThree(){
+ try {
+ if(document.getElementById("block3").style.backgroundColor == "red"){
+ document.getElementById("block3").style.backgroundColor = "green";
+ }else{
+ document.getElementById("block3").style.backgroundColor = "red";
+ }
+ } catch (error) {
+
+ }
+
+}
+function setCircleFour(){
+ try {
+ if(document.getElementById("block4").style.backgroundColor == "red"){
+ document.getElementById("block4").style.backgroundColor = "green";
+ }else{
+ document.getElementById("block4").style.backgroundColor = "red";
+ }
+ } catch (error) {
+
+ }
+}
+
+//Audio value setter
+var speakerAudios = {};
+function setSpeakerAudiosValue(valy){
+ try {
+ speakerAudios = valy;
+ document.getElementById("speakerAudioViewer").src = valy.speakerA.source;
+ } catch (error) {
+
+ }
+}
+
diff --git a/electron/main/style.css b/electron/main/style.css
index e4e9e2f..251c4e9 100644
--- a/electron/main/style.css
+++ b/electron/main/style.css
@@ -250,7 +250,7 @@ h1 {
}
.navBtn {
- display: flex;
+ display: flex;
justify-content: center;
padding: 10px 25px;
background-color: #007BFF;
@@ -264,4 +264,30 @@ h1 {
.navBtn:disabled {
background-color: #ccc;
cursor: not-allowed;
+}
+
+.testy{
+ background-color: #FFF;
+ display: flex;
+ width: 700px;
+ flex-direction: row;
+ align-items: center;
+ padding: 5% 50px;
+ margin-top: 20px;
+ gap: 10px;
+ border: 0px;
+ border-color: black;
+ border-style: solid;
+ border-radius: 6px;
+ box-shadow: 0px 4px 10px rgba(0,0,0,0.1);
+}
+
+.box2 {
+ background-color: red;
+ width: 40px;
+ height: 40px;
+ padding: 5px;
+ border: 1px solid black;
+ margin: 5px;
+ border-radius: 100px;
}
\ No newline at end of file