Tweaked inline video behaviour
This commit is contained in:
@ -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&showinfo=0&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();
|
||||
});
|
||||
|
Reference in New Issue
Block a user