Skip to content

Commit

Permalink
Merge pull request #45 from MAlshaik/main
Browse files Browse the repository at this point in the history
small errors fixed
  • Loading branch information
MAlshaik authored Apr 13, 2023
2 parents 486f39e + d69c20a commit 39fca45
Show file tree
Hide file tree
Showing 6 changed files with 23 additions and 18 deletions.
Binary file not shown.
29 changes: 14 additions & 15 deletions Frontend/templates/Frontend/video-editing.html
Original file line number Diff line number Diff line change
Expand Up @@ -73,20 +73,19 @@

<video id="video" controls>
<source id="source" type="video/mp4">
</video>

<div id="timeline">
<div id="timeline-controls">
<button id="cut" onclick="cuttingMode()">cut</button>
<button id="start" onclick="startCut()">start</button>
<button id="end" onclick="endCut()">end</button>
</div>
<div id="screenshotContainer">
<div id="bar"></div>
</div>
</video>
</div>
<div id="timeline">
<div id="timeline-controls">
<button id="cut" onclick="cuttingMode()">cut</button>
<button id="start" onclick="startCut()">start</button>
<button id="end" onclick="endCut()">end</button>
</div>
<div id="screenshotContainer">
<div id="bar"></div>
</div>
</div>

</div>
<script src="{% static 'js/upload-video.js' %}"></script>
<script src="{% static 'js/transcript-generation.js' %}"></script>
<script src="{% static 'js/transcript-editing.js' %}"></script>
Expand All @@ -96,8 +95,8 @@
document.addEventListener("DOMContentLoaded", function() {
console.log("----------------DOMContentLoaded------------------------")
});
</script>
</script>




</body>
</body>
Binary file not shown.
7 changes: 5 additions & 2 deletions static/css/video-editing.css
Original file line number Diff line number Diff line change
Expand Up @@ -380,13 +380,16 @@ nav ul li a{
#timeline {
width: 100%;
height: 20%;
margin-top: 20px;
padding: 20px 20px 20px 20px;
margin-top: 10px;
background-color: #454c5a;
border-radius: 5px;
display: flex;
align-items: center;
justify-content: center;

clear: both;
position: absolute;
bottom: 0;
}

#screenshotContainer {
Expand Down
1 change: 1 addition & 0 deletions static/js/transcript-editing.js
Original file line number Diff line number Diff line change
Expand Up @@ -93,6 +93,7 @@ function deleteTranscript() {
selectedWordsArr.forEach(element => {
console.log(element);
timestamps["timestamps"].push([parseFloat(element.getAttribute("data-start")), parseFloat(element.getAttribute("data-stop"))]);
console.log(timestamps);
element.remove();
});

Expand Down
4 changes: 3 additions & 1 deletion static/js/upload-video.js
Original file line number Diff line number Diff line change
Expand Up @@ -156,13 +156,14 @@ function transcribeFile(id) {
// If the upload feild is gone show the loading bar

if (document.getElementById("wrapper").style.display == "none") {
console.log("hidding upload area and starting loading bar")

let container = document.getElementById("loading-container");
let fill = document.querySelector(".fill");
let transcript = document.querySelector(".transcript-container").innerHTML;
console.log(transcript);

if (document.querySelector(".transcript-container").innerHTML != transcript) {
console.log("loading bar should be showing");
container.style.display = "flex";
console.log(container.style.display);

Expand Down Expand Up @@ -191,5 +192,6 @@ function transcribeFile(id) {
fill.style.width = bar / interval + "%";
}
}

}
}

0 comments on commit 39fca45

Please sign in to comment.