mirror of
https://github.com/DanielnetoDotCom/YouPHPTube
synced 2025-10-05 10:49:36 +02:00
Improve flick
This commit is contained in:
parent
afd63396cb
commit
1bb0e96d97
1 changed files with 2 additions and 7 deletions
|
@ -81,12 +81,7 @@ function startModeFlix(container) {
|
|||
|
||||
$(".arrow-down").fadeOut();
|
||||
$(".thumbsImage").removeClass('active');
|
||||
console.log("crc", crc);
|
||||
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();
|
||||
$(this).closest('.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 () {
|
||||
|
@ -96,7 +91,7 @@ function startModeFlix(container) {
|
|||
}, 'fast');
|
||||
});
|
||||
} else {
|
||||
$('#poster' + crc).slideUp();
|
||||
$(this).closest('.flickity-area').find('#poster' + crc).slideUp();
|
||||
for (i = 0; i < $carousel.length; i++) {
|
||||
$carousel[i].flickity('playPlayer');
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue