Unverified Commit e912b83a authored by Martin Schoeler's avatar Martin Schoeler Committed by GitHub

make links open in lightbox (#530)

parent 9652e32d
......@@ -6,7 +6,7 @@ paginate_path: /blog/page/:num/
paginate: 8
# bump if alterting styles
version: 62
version: 66
# read speed
wpm: 160
......@@ -88,7 +88,7 @@ redirect_from:
<h2 class="display theme_type--dark">What is Rocket.Chat?</h2>
<p class="theme_type--grey">Communicate and collaborate with your team, share files, chat in real time or switch to video/audio conferencing.</p>
<p class="theme_type--grey"> Watch the video to see how Rocket.Chat provides the ideal platform for your team or business needs.</p>
<p class="theme_type--grey"> Watch Now: <br> <a class="button--link" href="https://youtu.be/IzJ11kvM-P8" target="_blank" rel="noopener noreferrer">English</a> or <a class="button--link" href="https://youtu.be/nkzfriX8IlE" target="_blank" rel="noopener noreferrer">Portuguese</a></p>
<p class="theme_type--grey"> Watch Now: <br> <a class="button--link youtube-text-link" data-featherlight="#youtube-link">English</a> or <a class="button--link youtube-text-link pt" data-featherlight="#youtube-link">Portuguese</a></p>
<div class="col">
......@@ -396,9 +396,12 @@ $('.switch').on('click', function () {
$('.youtube-image-link').on('click touch', function (e) {
$('.youtube-image-link, .youtube-text-link').on('click touch', function (e) {
var checkExist = setInterval(function() {
if ($('.featherlight').length) {
if ($(e.target).hasClass('pt')){
$(".featherlight .youtube-video")[0].src = "https://www.youtube.com/embed/nkzfriX8IlE?autoplay=1";
$(".featherlight .youtube-video")[0].src += "?autoplay=1";
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment