From afad7b9e97a2a818d96595fb728b961d4f266c38 Mon Sep 17 00:00:00 2001 From: Trung Le Date: Sun, 1 Dec 2024 21:15:55 -0800 Subject: [PATCH] Update mediaSlider.js --- js/mediaSlider.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/js/mediaSlider.js b/js/mediaSlider.js index 462e3be..ff864e4 100644 --- a/js/mediaSlider.js +++ b/js/mediaSlider.js @@ -106,7 +106,7 @@ class MediaSlider { createMediaElement(url) { if (!url) { - return ``; + return `
📄 No documents 📋
`; } const mediaType = this.detectMediaType(url); switch(mediaType) { @@ -127,7 +127,7 @@ class MediaSlider { createSlider() { if (this.mediaUrls.length === 0) { - document.getElementById(this.containerId).innerHTML = '
Documents unavailable
'; + document.getElementById(this.containerId).innerHTML = '
📄 No documents 📋
'; return; // Exit if there are no media URLs }