Please I need to change or convert this JavaScript to jQuery. I can't do, I don't know JavaScript at this level.
(function() {
let video = document.querySelector(".video");
let bar = document.querySelector(".bar");
function events() {
video.addEventListener("timeupdate", updateTime);
} events();
function updateTime() {
let curTime = video.currentTime;
let duration = video.duration;
let persentage = (curTime * 100) / duration;
bar.style.width = persentage + "%";
};
})();
1 Answers