forked from rDrama/rDrama
master
parent
4bdada17fe
commit
73599950f8
|
@ -489,8 +489,6 @@
|
||||||
|
|
||||||
function expandDesktopVideo(video, link) {
|
function expandDesktopVideo(video, link) {
|
||||||
|
|
||||||
// Link text
|
|
||||||
|
|
||||||
var linkText = document.getElementById("desktop-expanded-video-link");
|
var linkText = document.getElementById("desktop-expanded-video-link");
|
||||||
var inlineVideo = document.getElementById("desktop-expanded-video");
|
var inlineVideo = document.getElementById("desktop-expanded-video");
|
||||||
|
|
||||||
|
@ -498,22 +496,13 @@
|
||||||
linkText.href = video;
|
linkText.href = video;
|
||||||
|
|
||||||
linkText.textContent = 'View original';
|
linkText.textContent = 'View original';
|
||||||
};
|
};
|
||||||
|
|
||||||
function expandDesktopVideo2(video, link) {
|
function expandDesktopVideo2(video, link) {
|
||||||
|
|
||||||
// Link text
|
|
||||||
|
|
||||||
var linkText = document.getElementById("desktop-expanded-video-link");
|
|
||||||
var inlineVideo = document.getElementById("desktop-expanded-video2");
|
var inlineVideo = document.getElementById("desktop-expanded-video2");
|
||||||
|
inlineVideo.innerHTML = `<video controls="" preload="metadata" style="max-width: 100%"><source src="${video}" type="video/mp4"></video>`;
|
||||||
str = `<video controls="" preload="metadata" style="max-width: 100%"><source src="${video}" type="video/mp4"></video>`
|
};
|
||||||
|
|
||||||
inlineVideo.innerHTML = str;
|
|
||||||
linkText.href = video;
|
|
||||||
|
|
||||||
linkText.textContent = 'View original';
|
|
||||||
};
|
|
||||||
|
|
||||||
|
|
||||||
post_comment=function(fullname){
|
post_comment=function(fullname){
|
||||||
|
|
|
@ -6,9 +6,6 @@
|
||||||
|
|
||||||
<div class="modal-body text-center p-0">
|
<div class="modal-body text-center p-0">
|
||||||
<div class="d-inline-block position-relative" id="desktop-expanded-video2">
|
<div class="d-inline-block position-relative" id="desktop-expanded-video2">
|
||||||
<div class="position-absolute d-flex justify-content-between align-items-center w-100 mt-1">
|
|
||||||
<a href="" rel="nofollow noopener noreferrer" target="_blank" class="text-gray-500 font-weight-bold text-left" id="desktop-expanded-video-link">View original</a>
|
|
||||||
</div>
|
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue