Inscreased iterations and added more quotes

This commit is contained in:
Camille Frantz 2022-06-02 02:36:07 -05:00
parent 6dbb8ebad0
commit 65e45d60f0
2 changed files with 5 additions and 1 deletions

View File

@ -66,5 +66,9 @@
{ {
"quote": "If you compare yourself with others, you may become vain or bitter, for always there will be greater and lesser persons than yourself.", "quote": "If you compare yourself with others, you may become vain or bitter, for always there will be greater and lesser persons than yourself.",
"author": "Max Ehrmann" "author": "Max Ehrmann"
},
{
"quote": "Life should be touched, not strangled. You've got to relax, let it happen at times, and at others move forward with it.",
"author": "Ray Bradbury"
} }
] ]

2
app.js
View File

@ -16,7 +16,7 @@ fetch("FavouriteQuotes.json")
}) })
.then((data) => { .then((data) => {
currQuote = getQuote(data); currQuote = getQuote(data);
for (let i = 0; i < 25; i++) { for (let i = 0; i < 50; i++) {
quoteDisplay.innerText = currQuote; quoteDisplay.innerText = currQuote;
intervalID = setInterval(() => { intervalID = setInterval(() => {
currQuote = getQuote(data); currQuote = getQuote(data);