KNOW YO FRO
By: Chris Flannagan
This is a simple php app for making a quiz based on a json file of images and labels
Originally built to be a quiz for identifying afros
NOTES ABOUT SHITTY CODED PARTS
I also did this super fast and the sloppiness shows, but free time isn't what it used to be. I had an idea and I wanted it working so that's what we have here. Please feel free to make it better.
I do a lot of dumb string manipulation for the data in leiu of building a database. I didn't want to build a database or a complex cookie. It's a simple process and I don't have plans to expand it and make the quizzes more complex. I'm open to that though so if you have an idea, do it.
This shit is seriously weird at points. I'm not a json expert and I managed to build the data out so when pulled into php and parsed it's an array of arrays instead of key => value for fro image and fro answer.
This made some of my code look terrible like loops within loops just to get the key => val of the options
Being so simple I didn't get all crazy with the css. It's plain jane bootstrap and just straight forward.