How to make this function select all class ".stop" and when we click on the element that has this class stop the video?
window.addEventListener("load", function(event) {
window.addEventListener('scroll', checkScroll, false);
window.addEventListener('resize', checkScroll, false);
let playvideo = document.querySelector('video');
let close = document.querySelector('.stop');
close.onclick = () => {
playvideo.pause();
}
});