Some of the so-called “Bad Jokes” weren’t all that bad, so I went back into it and just finished changing it up a little. I remembered that the joke API includes a “category” element that I could leverage. The categories were Miscellaneous, Programming, Dark, Pun, Spooky, and Christmas. So, if the category was Programming, Dark, Spooky, or Christmas, I just displayed that followed by “Joke”. But if the category was Pun, well “Pun Joke” is just redundant. If the category was Miscellaneous, I just reverted back to “Bad”.
When I tested that, I got a few spooky jokes in a row, meanwhile the radio was playing Christmas music. That gave me an idea. Now until Boxing Day, when the randomizer selects “Bad Jokes”, it will show Christmas jokes. When October rolls around and if the free host lets me keep it that long, the “Bad Jokes” will be filtered for spooky jokes and dark jokes.
Now, the joke page was built to test how to make a PWA, so I downloaded it to my phone. It still had the Angular icon, the shield with the capital A.