From bf54a2c1b47dc2cdfe0f4e493ff2b647e88840b5 Mon Sep 17 00:00:00 2001 From: Bingus_Violet Date: Fri, 26 Jan 2024 16:53:59 +0000 Subject: [PATCH] Now shows quote count on that one quote --- index.js | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/index.js b/index.js index 27d32b8..79a66be 100644 --- a/index.js +++ b/index.js @@ -279,7 +279,11 @@ function pageUpdate() { html = html.replace("{THUMBOR}", getThumbor()) - html = html.replace("{RANDOM_QUOTE}", randomQuotes[Math.floor(Math.random() * randomQuotes.length)]) + var quote = randomQuotes[Math.floor(Math.random() * randomQuotes.length)] + + quote = quote.replace("{QUOTE_COUNT}", randomQuotes.length) + + html = html.replace("{RANDOM_QUOTE}", quote) if (process.env.BRANCH == "dev") { html = html.replace("{OPPOSITE_URL}", "www")