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

lazyload poster

This commit is contained in:
daniel 2019-02-09 00:24:29 -03:00
parent edd3fb38f7
commit 43cc6dabc8
2 changed files with 2 additions and 2 deletions

View file

@ -42,7 +42,7 @@ $(function () {
$(".thumbsImage").removeClass('active'); $(".thumbsImage").removeClass('active');
$('.poster').slideUp(); $('.poster').slideUp();
$('#poster'+crc).css('background-image', 'url(' + $('#poster'+crc).arrt('poster') + ')');
$('#poster'+crc).slideDown('slow', function () { $('#poster'+crc).slideDown('slow', function () {
var top = row.offset().top; var top = row.offset().top;
$('html, body').animate({ $('html, body').animate({

View file

@ -51,7 +51,7 @@ foreach ($videos as $value) {
$canWatchPlayButton = "canWatchPlayButton"; $canWatchPlayButton = "canWatchPlayButton";
} }
?> ?>
<div class="poster" id="poster<?php echo $value['id'] . $uid; ?>" style="display: none; background-image: url(<?php echo $poster; ?>);"> <div class="poster" id="poster<?php echo $value['id'] . $uid; ?>" poster="<?php echo $poster; ?>" style="display: none;">
<div class="posterDetails " style=" <div class="posterDetails " style="
background: -webkit-linear-gradient(left, rgba(<?php echo $obj->backgroundRGB; ?>,1) 40%, rgba(<?php echo $obj->backgroundRGB; ?>,0) 100%); background: -webkit-linear-gradient(left, rgba(<?php echo $obj->backgroundRGB; ?>,1) 40%, rgba(<?php echo $obj->backgroundRGB; ?>,0) 100%);
background: -o-linear-gradient(right, rgba(<?php echo $obj->backgroundRGB; ?>,1) 40%, rgba(<?php echo $obj->backgroundRGB; ?>,0) 100%); background: -o-linear-gradient(right, rgba(<?php echo $obj->backgroundRGB; ?>,1) 40%, rgba(<?php echo $obj->backgroundRGB; ?>,0) 100%);