Menu Home

A Vaccine Fact Generator? Yes, Please!

So a friend of mine got the idea about creating a “fact generator” for vaccine facts. The idea was to click on a button on a website, have a random fact about vaccines appear, and then let people share that fact via Twitter. Recently, an online course for people learning Javascript led students through how to build a “random quote generator.” I figured I could take the code and modify it.

First, I had to find the right code. Luckily, I ran into a page by “Jay,” where he created a random quote generator. I contacted Jay via Twitter and asked for his permission to use his code, and he agreed. So I modified it a little here and there, and now we have the Vaccine Fact Generator.

It uses some HTML and some Javascript brought together by Paper CSS to create a web application where the user clicks on a button and a random fact appears. Then, as I wrote above, they can click on another button and send that fact to the Twitterverse.

There are still a couple of things I want to do before I can call it v1.0: First, I want the links in the fact box to be clickable, and, second, I want the ability to also share to Facebook. Actually, either of those would be good enough for me to call it v1.0. Until then, I’ll keep incrementally adding facts and tweaking some settings.

Categories: Blog

Tagged as:

René F. Najera, DrPH

I'm a Doctor of Public Health, having studied at the Johns Hopkins University Bloomberg School of Public Health.
All opinions are my own and in no way represent anyone else or any of the organizations for which I work.
About History of Vaccines: I am the editor of the History of Vaccines site, a project of the College of Physicians of Philadelphia. Please read the About page on the site for more information.
About Epidemiological: I am the sole contributor to Epidemiological, my personal blog to discuss all sorts of issues. It also has an About page you should check out.

%d bloggers like this: