$('.slider').slick({
infinite: false,
});
.fancybox-infobar{
display: none;
}
$(document).ready(function () {
var close = function() {
var player = $('iframe'), video = player.attr("src");
player.attr("src","");
player.attr("src", video);
}
$(document).on('click', '.fancybox-close', function () {
close();
});
});
function close() {
$('#player').get(0).stopVideo();
}
function autoResize(selector) {
var newheight, newwidth, frame = document.querySelector(selector);
if (frame) {
newheight = frame.contentWindow.document.body.scrollHeight;
newwidth = frame.contentWindow.document.body.scrollWidth;
frame.height= (newheight) + "px";
frame.width= (newwidth) + "px";
} else {
console.warn('Не чего не найдено!');
}
}