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

Play playlist inside image thumbs

This commit is contained in:
DanieL 2022-04-21 15:14:40 -03:00
parent 3b046e9999
commit 1607cd6af3
3 changed files with 34 additions and 14 deletions

View file

@ -1351,6 +1351,21 @@ function avideoModalIframeFull(url) {
avideoModalIframeFullScreen(url);
}
function avideoAddIframeIntoElement(element, url, insideSelector) {
url = addGetParam(url, 'avideoIframe', 1);
console.log('avideoAddIframeIntoElement', url, element);
var html = '';
html += '<iframe frameBorder="0" class="avideoIframeIntoElement" src="' + url + '" allow="camera *;microphone *" ></iframe>';
var insideElement = $(element);
if(insideSelector){
insideElement = $(element).find(insideSelector);
}
insideElement.append(html);
}
var avideoModalIframeFullScreenOriginalURL = false;
var avideoModalIframeWithClassNameTimeout;
function avideoModalIframeWithClassName(url, className, updateURL) {
@ -2353,8 +2368,6 @@ function addAtMention(selector) {
});
}
$(document).ready(function () {
//animateChilds('#sideBarContainer > ul', 'animate__bounceInLeft', 0.05);
//animateChilds('#uploadMenu', 'animate__bounceIn', 0.05);