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

Fix infinity scrool

This commit is contained in:
DanielnetoDotCom 2021-04-09 14:35:11 -03:00
parent 949a59f19c
commit b80e8d3087

View file

@ -56,6 +56,13 @@
lazyImage();
avideoSocket();
}, 1000);
<?php
if ($obj->playVideoOnFullscreenOnIframe) {
echo "if(typeof linksToFullscreen === 'function'){ linksToFullscreen('a.galleryLink');}";
} else if (!empty($obj->playVideoOnFullscreen)) {
echo "if(typeof linksToEmbed === 'function'){ linksToEmbed('a.galleryLink');}";
}
?>
});
$container$uid.on('error.infiniteScroll', function (event, error, path, response) {
console.error(`infiniteScroll Could not load: ${path}. ${error}`);
@ -65,7 +72,7 @@
});
$container$uid.on('history.infiniteScroll', function (event, title, path) {
console.log(`infiniteScroll History changed to: ${path}`);
});
});
}
}