mirror of
https://github.com/DanielnetoDotCom/YouPHPTube
synced 2025-10-05 19:42:38 +02:00
Css fixes
This commit is contained in:
parent
6af1bf14fb
commit
b68077d50c
2 changed files with 16 additions and 5 deletions
|
@ -1178,9 +1178,15 @@ function avideoModalIframeFull(url) {
|
|||
}
|
||||
""
|
||||
function avideoModalIframeWithClassName(url, className) {
|
||||
var span = document.createElement("span");
|
||||
url = addGetParam(url, 'avideoIframe', 1);
|
||||
span.innerHTML = '<div id="avideoModalIframeDiv"><button class="btn btn-sm btn-default pull-right" onclick="swal.close();"><i class="fas fa-times"></i></button></div><iframe frameBorder="0" src="' + url + '" allow="camera *;microphone *" />';
|
||||
var html = '';
|
||||
html = '<div id="avideoModalIframeDiv" class="clearfix">';
|
||||
html += '<button class="btn btn-default pull-left" onclick="swal.close();">';
|
||||
html += '<i class="fas fa-angle-left"></i>';
|
||||
html += '</button></div>';
|
||||
html += '<iframe frameBorder="0" src="' + url + '" allow="camera *;microphone *" ></iframe>';
|
||||
var span = document.createElement("span");
|
||||
span.innerHTML = html;
|
||||
swal({
|
||||
content: span,
|
||||
closeModal: true,
|
||||
|
@ -1866,7 +1872,7 @@ function avideoAjax(url, data) {
|
|||
}
|
||||
|
||||
window.addEventListener('beforeunload', function (e) {
|
||||
console.log('window.addEventListener(beforeunload');
|
||||
//console.log('window.addEventListener(beforeunload');
|
||||
_addViewAsync();
|
||||
}, false);
|
||||
document.addEventListener('visibilitychange', function () {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue