mirror of
https://github.com/DanielnetoDotCom/YouPHPTube
synced 2025-10-06 03:50:04 +02:00
This commit is contained in:
parent
26637d266d
commit
53091914bd
2 changed files with 35 additions and 34 deletions
|
@ -1,7 +1,7 @@
|
|||
var video;
|
||||
var cat;
|
||||
var videos_id;
|
||||
var $carousel;
|
||||
var $carousel = [];
|
||||
|
||||
function isFlickityEnabled(selector) {
|
||||
var isEnabled = $(selector).hasClass('flickity-enabled');
|
||||
|
@ -10,7 +10,9 @@ function isFlickityEnabled(selector) {
|
|||
$('#footerDiv').fadeIn();
|
||||
|
||||
$('.container-fluid').fadeIn('slow', function () {
|
||||
$carousel.flickity('resize');
|
||||
for (i = 0; i < $carousel.length; i++) {
|
||||
$carousel[i].flickity('resize');
|
||||
}
|
||||
});
|
||||
} else {
|
||||
setTimeout(function () {
|
||||
|
@ -18,7 +20,6 @@ function isFlickityEnabled(selector) {
|
|||
}, 500);
|
||||
}
|
||||
}
|
||||
|
||||
$(function () {
|
||||
startModeFlix("");
|
||||
|
||||
|
@ -26,7 +27,9 @@ $(function () {
|
|||
$('#loading').fadeOut();
|
||||
$('#footerDiv').fadeIn();
|
||||
$('.container-fluid').fadeIn('slow', function () {
|
||||
$carousel.flickity('resize');
|
||||
for (i = 0; i < $carousel.length; i++) {
|
||||
$carousel[i].flickity('resize');
|
||||
}
|
||||
});
|
||||
}, 2000);
|
||||
|
||||
|
@ -70,13 +73,17 @@ function startModeFlix(container){
|
|||
});
|
||||
} else {
|
||||
$('#poster' + crc).slideUp();
|
||||
$carousel.flickity('playPlayer');
|
||||
for (i = 0; i < $carousel.length; i++) {
|
||||
$carousel[i].flickity('playPlayer');
|
||||
}
|
||||
}
|
||||
|
||||
});
|
||||
|
||||
|
||||
$carousel = $(container+'.carousel').flickity();
|
||||
$(container + '.carousel').each(function (index) {
|
||||
var json = JSON.parse($(this).attr('data-flickity'));
|
||||
$carousel.push($(this).flickity(json));
|
||||
});
|
||||
|
||||
$(container + ".thumbsImage").attr('startModeFlix', 1);
|
||||
}
|
|
@ -246,12 +246,6 @@ TimeLogStart($timeLog);
|
|||
</div>
|
||||
<script>
|
||||
$(document).ready(function () {
|
||||
setTimeout(function () {
|
||||
$("img.thumbsJPG").each(function (index) {
|
||||
$(this).attr('src', $(this).attr('data-flickity-lazyload'));
|
||||
$(this).addClass('flickity-lazyloaded');
|
||||
});
|
||||
}, 500);
|
||||
$container = $('#categoriesContainer').infiniteScroll({
|
||||
path: '.pagination__next',
|
||||
append: '.categoriesContainerItem',
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue