Tweaked inline video behaviour

This commit is contained in:
Lennart Ziburski
2018-02-27 00:42:32 +01:00
parent 52ba3232be
commit c69e9b47ec
3 changed files with 14 additions and 8 deletions

View File

@ -127,7 +127,7 @@ eventInfoLoad();
// Load inline YouTube video
var embedcode = '<iframe width="560" height="315" src="https://www.youtube-nocookie.com/embed/p6h-rYSVX90?rel=0&amp;showinfo=0&amp;autoplay=1" frameborder="0" allow="autoplay; encrypted-media" allowfullscreen></iframe>';
$('.hero-videolink').click(function() {
$('.hero-graphic').click(function() {
$('.hero-graphic img').replaceWith(embedcode);
$(this).remove();
$('.hero-videolink').remove();
});