Inlined Getting Started video
This commit is contained in:
parent
65324ecf9f
commit
52ba3232be
@ -18,8 +18,7 @@
|
|||||||
</div>
|
</div>
|
||||||
<div class="hero-graphic">
|
<div class="hero-graphic">
|
||||||
<img src="/img/screenshot-editor.jpg" class="responsive"/>
|
<img src="/img/screenshot-editor.jpg" class="responsive"/>
|
||||||
<a class="hero-videolink" href="https://www.youtube.com/watch?v=p6h-rYSVX90">▶ Watch how to get started in just over 2 minutes</a>
|
<a class="hero-videolink" href="#">▶ Watch how to get started in just over 2 minutes</a>
|
||||||
<p>
|
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
</div>
|
</div>
|
||||||
|
@ -74,7 +74,8 @@
|
|||||||
margin: 0;
|
margin: 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
img {
|
img, iframe {
|
||||||
|
width: 100%;
|
||||||
border-radius: $largeBorderRadius;
|
border-radius: $largeBorderRadius;
|
||||||
box-shadow: 0 10px 30px 0 rgba(0,0,0,0.15), 0 3px 9px 0 rgba(0,0,0,0.30);
|
box-shadow: 0 10px 30px 0 rgba(0,0,0,0.15), 0 3px 9px 0 rgba(0,0,0,0.30);
|
||||||
}
|
}
|
||||||
|
@ -122,3 +122,12 @@ var eventInfoLoad = function() {
|
|||||||
}
|
}
|
||||||
|
|
||||||
eventInfoLoad();
|
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 img').replaceWith(embedcode);
|
||||||
|
$(this).remove();
|
||||||
|
});
|
||||||
|
Loading…
x
Reference in New Issue
Block a user