1
0
Fork 0
mirror of https://github.com/DanielnetoDotCom/YouPHPTube synced 2025-10-05 19:42:38 +02:00

Improve flick

This commit is contained in:
Daniel 2022-02-25 15:44:29 -03:00
parent b161ef62dd
commit afd63396cb

View file

@ -82,7 +82,11 @@ function startModeFlix(container) {
$(".arrow-down").fadeOut();
$(".thumbsImage").removeClass('active');
console.log("crc", crc);
$(this).closest('.flickity-area').find('.poster').not('#poster' + crc).slideUp();
console.log("crc", crc);
console.log("image", $(this).closest('.flickity-area').find('.poster').not('#poster' + crc));
console.log("image", $(this).closest('.flickity-area').find('.poster'));
console.log("image", $(this).closest('.flickity-area'));
$('.flickity-area').find('.poster').not('#poster' + crc).slideUp();
if ($('#poster' + crc).is(":hidden")) {
$('#poster' + crc).css('background-image', 'url(' + $('#poster' + crc).attr('poster') + ')');
$('#poster' + crc).slideDown('fast', function () {
@ -92,7 +96,7 @@ function startModeFlix(container) {
}, 'fast');
});
} else {
$(this).closest('.flickity-area').find('#poster' + crc).slideUp();
$('#poster' + crc).slideUp();
for (i = 0; i < $carousel.length; i++) {
$carousel[i].flickity('playPlayer');
}