mirror of
https://github.com/DanielnetoDotCom/YouPHPTube
synced 2025-10-05 19:42:38 +02:00
Update
This commit is contained in:
parent
d86dca5bf2
commit
ac704a5402
1 changed files with 2 additions and 1 deletions
|
@ -93,9 +93,10 @@ function startModeFlix(container) {
|
||||||
$('#poster' + crc).css('background-image', 'url(' + $('#poster' + crc).attr('poster') + ')');
|
$('#poster' + crc).css('background-image', 'url(' + $('#poster' + crc).attr('poster') + ')');
|
||||||
$('#poster' + crc).slideDown('fast', function () {
|
$('#poster' + crc).slideDown('fast', function () {
|
||||||
console.log('#poster' + crc+' slideDown');
|
console.log('#poster' + crc+' slideDown');
|
||||||
|
console.log('#poster' + crc+' row.offset().top', top, myEleTop, top - myEleTop);
|
||||||
setTimeout(() => {
|
setTimeout(() => {
|
||||||
var top = row.offset().top;
|
var top = row.offset().top;
|
||||||
console.log('#poster' + crc+' row.offset().top', top, myEleTop, top - myEleTop);
|
console.log('row', row);
|
||||||
$('html, body').animate({
|
$('html, body').animate({
|
||||||
scrollTop: top - myEleTop
|
scrollTop: top - myEleTop
|
||||||
}, 'fast');
|
}, 'fast');
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue