- 
          
 - 
                Notifications
    
You must be signed in to change notification settings  - Fork 121
 
Open
Description
- I cloned repository to my server
 - add some change ( I will have folder which contains video files, and I when call SA_DragDropEMU to load from this folder, it can load it)
 
""
function handleFileFromInput() {
const videoFolderPath = ${window.location.protocol}//${window.location.hostname}:${window.location.port};
var inputText = document.getElementById('fileInput2').value.trim();
if (!inputText) {
    alert("Пожалуйста, введите текст.");
    return;
}
const { queue, displayQueue } = processInputText5(inputText);
let currentIndex = 0;
function next() {
    if (currentIndex >= queue.length) {
        document.getElementById('current-word-display').innerText = "!";
        return;
    }
    const letter = queue[currentIndex];
    const label = displayQueue[currentIndex];
    const fullPath = videoFolderPath + letter;
    document.getElementById('current-word-display').innerText = `${label}`;
    const tempVideo = document.createElement('video');
    tempVideo.src = fullPath;
    tempVideo.addEventListener('loadedmetadata', function () {
        const duration = tempVideo.duration;
        SA_DragDropEMU(fullPath);
        setTimeout(() => {
            currentIndex++;
            next();
        }, duration * 1000);
    });
}
next();
}
"""
=========
and it's running in docker container via nginx
Metadata
Metadata
Assignees
Labels
No labels