Skip to content

Instantly share code, notes, and snippets.

@AlexL-JWA
Created June 18, 2018 21:46
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save AlexL-JWA/c775a0b32bf1eea29fe3fd335b4b96f7 to your computer and use it in GitHub Desktop.
Save AlexL-JWA/c775a0b32bf1eea29fe3fd335b4b96f7 to your computer and use it in GitHub Desktop.
Загрузка видео по клику на кнопку плей (берет дата атрибут URL с родителя )
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