mirror of
https://github.com/XRPLF/xrpl-dev-portal.git
synced 2025-11-20 11:45:50 +00:00
Video: prevent scroll to top on video play
This commit is contained in:
@@ -1,11 +1,12 @@
|
||||
|
||||
$(document).ready(()=> {
|
||||
|
||||
|
||||
//top video. Show inline replacing image
|
||||
$("#playvideo").click(function(){
|
||||
$("#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()
|
||||
});
|
||||
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user