Implemented functionality to have the UI be able to communicate with the backend

This commit is contained in:
2025-11-12 20:00:25 +01:00
parent 449255dda1
commit fbd5368223
3 changed files with 11 additions and 2 deletions
+4 -1
View File
@@ -11,6 +11,8 @@ manualUploadBtn.addEventListener('click', () => {
//function to check if one checkbox is at least klicked
function checkBoxes() {
console.log("fuck");
try {
const checkboxes = document.querySelectorAll('input[name="docFormat"]');
let isChecked = false;
@@ -25,7 +27,8 @@ function checkBoxes() {
//Code to submit the video
var pathTest = fileName.textContent + "";
if(pathTest.endsWith(".mp4") || holdy.endsWith(".mov") || holdy.endsWith(".avi") || holdy.endsWith( ".mkv")){
mapFunctions.get("extraction-video-to-audio").function({inputVideoPath: pathTest, outputType:"wav"});
console.log("fuck 2");
window.extractor.extract({inputVideoPath: pathTest, outputType:"wav"})
}
} else {
//language only english at the moment