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

NetFlix Style

This commit is contained in:
daniel 2017-12-08 13:40:52 -03:00
parent c1f03c7d1d
commit 3d650310d3
2 changed files with 49 additions and 18 deletions

View file

@ -68,7 +68,8 @@ $(function () {
if (!img || true) {
img = $(this).attr('poster');
}
var desc = $(this).find(".videoDescription").text();
var desc = $(this).find(".videoDescription").html();
var details = $(this).find(".videoInfo").html();
var title = $(this).find(".tile__title").text();
var row = $(this).closest('.row');
@ -84,10 +85,12 @@ $(function () {
$(row).find('.poster').slideDown();
$(row).find('.footerBtn, .labelPoints').fadeIn();
$(row).find('.poster').css({'background-image': 'url(' + img + ')'});
$(row).find('.infoText, .infoTitle').fadeOut('slow', function () {
$(row).find('.infoText').text(desc);
$(row).find('.infoText, .infoTitle, .infoDetails').fadeOut('slow', function () {
$(row).find('.infoText').html(desc);
$(row).find('.infoTitle').text(title);
$(row).find('.infoText, .infoTitle').fadeIn('slow');
$(row).find('.infoDetails').html(details);
$(row).find('.infoText, .infoTitle, .infoDetails').fadeIn('slow');
});
video = $(this).attr('video');
cat = $(this).attr('cat');