fixed html inline and slideshow frontend
This commit is contained in:
@@ -126,7 +126,7 @@ class MultipleUploader {
|
||||
|
||||
for (const [ index, file] of Object.entries( this.#$imagesUploadInput.files ))
|
||||
{
|
||||
if ( index != deletedIndex )
|
||||
if ( index !== deletedIndex )
|
||||
dt.items.add( file )
|
||||
}
|
||||
|
||||
|
@@ -119,7 +119,7 @@ function show() {
|
||||
|
||||
if (slideshow.sliderArray[counter].media.endsWith('.html')) {
|
||||
wrapper.style.backgroundImage = ``;
|
||||
wrapper.id = "test";
|
||||
wrapper.id = "image";
|
||||
const makeIframe = document.createElement("iframe");
|
||||
makeIframe.setAttribute('src', "/api/files/" + slideshow.sliderArray[counter].collectionId + "/" + slideshow.sliderArray[counter].id + "/" + slideshow.sliderArray[counter].media);
|
||||
makeIframe.setAttribute("scrolling", "no");
|
||||
@@ -127,6 +127,9 @@ function show() {
|
||||
makeIframe.style.height = "100vh";
|
||||
makeIframe.style.overflow = "hidden";
|
||||
makeIframe.style.border = "none";
|
||||
makeIframe.style.position = "relative";
|
||||
makeIframe.style.zIndex = "7";
|
||||
wrapper_blur.style.height = "0";
|
||||
|
||||
if (wrapper.dataset.loaded === 'false') {
|
||||
wrapper.dataset.loaded = 'true';
|
||||
@@ -136,6 +139,7 @@ function show() {
|
||||
} else {
|
||||
if (slideshow.sliderArray[counter].media.endsWith('.mp4')) {
|
||||
wrapper.style.backgroundImage = ``;
|
||||
wrapper.id = "image";
|
||||
const vid = document.createElement('video');
|
||||
vid.setAttribute('loop', 'true');
|
||||
vid.setAttribute('autoplay', 'true');
|
||||
@@ -154,6 +158,8 @@ function show() {
|
||||
}
|
||||
} else {
|
||||
wrapper.innerHTML = ' ';
|
||||
wrapper.id = "image";
|
||||
wrapper_blur.style.height = "100%";
|
||||
let url = '/api/files/' + slideshow.sliderArray[counter].collectionId + "/" + slideshow.sliderArray[counter].id + "/" + slideshow.sliderArray[counter].media;
|
||||
let i = new Image();
|
||||
i.src = url;
|
||||
|
Reference in New Issue
Block a user