From 917408e602105b45aa17c46870afc1e2bc9c4c5c Mon Sep 17 00:00:00 2001 From: Matthew Petersen Date: Sun, 22 Sep 2024 13:29:58 +1000 Subject: [PATCH] experiment feature added - custom links --- classes/cards/MediaCard.js | 8 +- classes/core/settings.js | 4 +- classes/custom/links.js | 8 +- consts.js | 4 +- index.js | 18 +- myviews/settings.ejs | 34 +++ package-lock.json | 605 ++++++++++++++++++------------------- package.json | 2 +- public/css/styles.css | 1 + 9 files changed, 365 insertions(+), 319 deletions(-) diff --git a/classes/cards/MediaCard.js b/classes/cards/MediaCard.js index 13e6b88..2a652fa 100644 --- a/classes/cards/MediaCard.js +++ b/classes/cards/MediaCard.js @@ -94,6 +94,7 @@ class MediaCard { var endTime = et.toLocaleTimeString("en-US", {hour: '2-digit', minute:'2-digit'}); this.triviaRender=""; + this.linkRender=""; // if a trivia card, then prepare html if(this.cardType[0] == "Trivia Question"){ @@ -125,8 +126,9 @@ class MediaCard { hiddenFooter = "hidden"; fullScreen="fullscreen"; hiddenTitle="hidden"; - //this.linkRender = `` - this.linkRender = `