Inscreased iterations and added more quotes
This commit is contained in:
parent
6dbb8ebad0
commit
65e45d60f0
@ -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
2
app.js
@ -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);
|
||||||
|
Loading…
Reference in New Issue
Block a user