From 65e45d60f0649178351fffa0e105658d3afd10da Mon Sep 17 00:00:00 2001 From: Camille Frantz Date: Thu, 2 Jun 2022 02:36:07 -0500 Subject: [PATCH] Inscreased iterations and added more quotes --- FavouriteQuotes.json | 4 ++++ app.js | 2 +- 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/FavouriteQuotes.json b/FavouriteQuotes.json index 569d8b6..dcd2843 100644 --- a/FavouriteQuotes.json +++ b/FavouriteQuotes.json @@ -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.", "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" } ] \ No newline at end of file diff --git a/app.js b/app.js index 38b5920..5ffaac8 100644 --- a/app.js +++ b/app.js @@ -16,7 +16,7 @@ fetch("FavouriteQuotes.json") }) .then((data) => { currQuote = getQuote(data); - for (let i = 0; i < 25; i++) { + for (let i = 0; i < 50; i++) { quoteDisplay.innerText = currQuote; intervalID = setInterval(() => { currQuote = getQuote(data);