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

Improve flick

This commit is contained in:
Daniel 2022-02-25 15:47:16 -03:00
parent afd63396cb
commit 1bb0e96d97

View file

@ -81,12 +81,7 @@ function startModeFlix(container) {
$(".arrow-down").fadeOut(); $(".arrow-down").fadeOut();
$(".thumbsImage").removeClass('active'); $(".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")) { if ($('#poster' + crc).is(":hidden")) {
$('#poster' + crc).css('background-image', 'url(' + $('#poster' + crc).attr('poster') + ')'); $('#poster' + crc).css('background-image', 'url(' + $('#poster' + crc).attr('poster') + ')');
$('#poster' + crc).slideDown('fast', function () { $('#poster' + crc).slideDown('fast', function () {
@ -96,7 +91,7 @@ function startModeFlix(container) {
}, 'fast'); }, 'fast');
}); });
} else { } else {
$('#poster' + crc).slideUp(); $(this).closest('.flickity-area').find('#poster' + crc).slideUp();
for (i = 0; i < $carousel.length; i++) { for (i = 0; i < $carousel.length; i++) {
$carousel[i].flickity('playPlayer'); $carousel[i].flickity('playPlayer');
} }