Created
June 18, 2018 21:46
-
-
Save AlexL-JWA/c775a0b32bf1eea29fe3fd335b4b96f7 to your computer and use it in GitHub Desktop.
Загрузка видео по клику на кнопку плей (берет дата атрибут URL с родителя )
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
jQuery(document).ready(function($){ | |
$('.video .video-uploads').click(function(e){ | |
const url = $(this).parent().data(); | |
$(this).append('<source src="'+ url.video +'">'); | |
console.log(url); | |
}); | |
}); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment