js/main.js
// stop the targeted/all videos (and re-instate the poster frames)
stop the targeted/all videos (and re-instate the poster frames)
stop the targeted / all videos ( and re - instate the poster frames )
function videoStop($wrapper) {
    if (!$wrapper) {
        var $wrapper = $('.js-videoWrapper');
        var $iframe = $('.js-videoIframe');
    } else {
        var $iframe = $wrapper.find('.js-videoIframe');
    }
    $wrapper.removeClass('videoWrapperActive');
    $iframe.attr('src', '');
}
function videoStop ( $wrapper ) { if ( ! $wrapper ) { var $wrapper = $ ( '.js-videoWrapper' ) ; var $iframe = $ ( '.js-videoIframe' ) ; } else { var $iframe = $wrapper . find ( '.js-videoIframe' ) ; } $wrapper . removeClass ( 'videoWrapperActive' ) ; $iframe . attr ( 'src' , '' ) ; }
stop the targeted/all videos (and re-instate the poster frames)
stop the targeted / all videos ( and re - instate the poster frames )
// if we're stopping all videos on page // if we're stopping a particular video // reveal poster // remove youtube link, stopping the video from playing in the background