Video: prevent scroll to top on video play

This commit is contained in:
mDuo13
2022-02-09 16:50:13 -08:00
parent 8abb3e6348
commit 5691d17f72

View File

@@ -6,6 +6,7 @@ $(document).ready(()=> {
$("#playvideo").hide();
$("#video1").show();
$("#video1")[0].src += "?autoplay=1";
event.preventDefault()
});
//bottom 3. Show in overlay
@@ -13,6 +14,7 @@ $(document).ready(()=> {
var src = $(this).attr("data-url");
$("#player").attr("src", src);
$('#video, #video-overlay').fadeIn('slow');
event.preventDefault()
});
});