mirror of
https://github.com/DanielnetoDotCom/YouPHPTube
synced 2025-10-05 19:42:38 +02:00
lazyload poster
This commit is contained in:
parent
edd3fb38f7
commit
43cc6dabc8
2 changed files with 2 additions and 2 deletions
|
@ -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({
|
||||||
|
|
|
@ -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%);
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue