Now shows quote count on that one quote
This commit is contained in:
parent
8745e8cf10
commit
bf54a2c1b4
1 changed files with 5 additions and 1 deletions
6
index.js
6
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")
|
||||
|
|
Loading…
Reference in a new issue