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

NetFlix Style

This commit is contained in:
daniel 2017-12-11 09:11:21 -03:00
parent 52b07cefb5
commit 62ea916dec
3 changed files with 20 additions and 11 deletions

View file

@ -1,6 +1,19 @@
var video;
var cat;
var videos_id;
var $carousel;
function isFlickityEnabled(selector){
var isEnabled = $(selector).hasClass('flickity-enabled');
if(isEnabled){
$('#loading').fadeOut();
$('.container-fluid').fadeIn('slow', function () {
$carousel.flickity('resize');
});
}else{
setTimeout(function(){isFlickityEnabled(selector)}, 500);
}
}
function loadPlayLists() {
$.ajax({
@ -107,12 +120,13 @@ $(function () {
loadPlayLists();
});
$('.carousel').flickity({
$carousel = $('.carousel').flickity({
lazyLoad: 7,
setGallerySize: false,
cellAlign: 'left'
});
});
isFlickityEnabled('.carousel');
$('.myList').webuiPopover({
style: 'inverse',
url: '#popover'
@ -141,8 +155,5 @@ $(function () {
return false;
});
$(window).on('resize', function () {
$('#ifvideo')
});
});