A simple javascript powered page displaying all the my favourite quotes https://quotes.fyrf.li
Go to file
2023-01-22 10:14:01 -06:00
src finished restyling; ready to deploy 2023-01-22 09:37:03 -06:00
.gitignore merge upstream 2023-01-22 10:03:28 -06:00
.gitlab-ci.yml typo in ci/cd filename 2022-06-02 02:40:40 -05:00
.woodpecker.yml finished restyling; ready to deploy 2023-01-22 09:37:03 -06:00
app.js merge upstream 2023-01-22 10:03:28 -06:00
FavouriteQuotes.json merge upstream 2023-01-22 10:03:28 -06:00
index.html merge upstream 2023-01-22 10:03:28 -06:00
README.md update README 2023-01-22 10:14:01 -06:00
style.css merge upstream 2023-01-22 10:03:28 -06:00

Reading json and randomly posting content

I wanted to create an "app" that would read in JSON and print out the results randomly based on a randomly generated number. It took me a while to get right, mostly because of the JSON file format. I have it down now. This is my result.

<<<<<<< HEAD

Next steps ...

I want to add more quotes and a button to run the code instead of having the user reload the page.

Or at least create a timer loop to do the refreshing of the quotes automatically.

-- 18 May, 2022 - 10:42:14

Looping done.

I managed to get the looping done with a iteration count of 25 and an interval of 8seconds. So now, when you go to the live page, it should iterate 25 times through a random selection of my favourite quotes.

-- 28 May, 2022 - 09:28:53

Changed the entire format of the page

I didn't like that the looping would repeat the same quote several times so I decided on a column format instead. This way all the quotes show up at once. No looping, no excessive animations ... just a simple page.