1
0
Fork 0
mirror of https://github.com/DanielnetoDotCom/YouPHPTube synced 2025-10-05 02:39:46 +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

@ -155,7 +155,7 @@ a:visited {
.thumbsImage{
transition: border 0.8s;
position: relative;
border: 4px solid #0e0f11;
border: 4px solid #0e0f1122;
}
.thumbsGIF{

View file

@ -32,7 +32,7 @@ $category = Category::getAllCategories();
include $global['systemRootPath'] . 'view/include/navbar.php';
?>
<div class="container-fluid">
<div class="container-fluid" style="display: none;">
<div class="row">
@ -311,7 +311,7 @@ $category = Category::getAllCategories();
}
?>
</div>
<div id="loading" class="loader" style="width: 30vh; height: 30vh; position: absolute; left: 50%; top: 50%; margin-left: -15vh; margin-top: -15vh;"></div>
<div class="webui-popover-content" id="popover">
<?php
@ -368,8 +368,6 @@ $category = Category::getAllCategories();
<script>
$(function () {
});
</script>
</body>

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,11 +120,12 @@ $(function () {
loadPlayLists();
});
$('.carousel').flickity({
$carousel = $('.carousel').flickity({
lazyLoad: 7,
setGallerySize: false,
cellAlign: 'left'
});
isFlickityEnabled('.carousel');
$('.myList').webuiPopover({
style: 'inverse',
@ -141,8 +155,5 @@ $(function () {
return false;
});
$(window).on('resize', function () {
$('#ifvideo')
});
});