Split nameAndExtension to seperate variables
This commit is contained in:
parent
02734f1d9d
commit
234791cd9a
5 changed files with 40 additions and 40 deletions
|
@ -255,8 +255,8 @@ function checkFileAvailability(filePath) {
|
|||
function createVideoElement(filePath) {
|
||||
const videoContainer = document.getElementById(`video-${filePath}`);
|
||||
videoContainer.outerHTML = `
|
||||
<video id='video-${filePath}' class="image" autoplay loop muted playsinline loading="lazy">
|
||||
<source src="/uploads/720p-${filePath}" loading="lazy">
|
||||
<video id='video-${filePath}' class="image" autoplay loop muted playsinline>
|
||||
<source src="/uploads/720p-${filePath}">
|
||||
</video>
|
||||
`;
|
||||
videoContainer.style.display = "block";
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue