Those People is a thought experiment that demonstrates our internal biases and discriminations. As the political and social climate in the United States is becoming increasingly polarized, I felt it was an important topic to address. I was also inspired by the work of psychologist Marsha Linehan, who created dialectical behavioral therapy. Some of the principles in that are touched on in my project.

This is my first time working with javascript, so I was learning as I went along. Through a lot of trial and error, I learned about how the syntax is organized and how .js, .css, and .html files essentially communicate with each other.

I started with a simple html page, consisting mostly of unordered lists separated into classes. Using javascript, I used the querySelector to detect the different classes in the html file and change the styling of the class on a button click. Each click displays the next class, and hides the rest. The classes include a document.write script, which pulls an image at random from a folder of images (via Math.floor and Math.random), then inserts the filename in an img tag.

There were many challenges, mostly because I am trying to figure everything out in a rush. A major one was discovering that my stylesheet didn't display the same once the files were committed to GitHub, as they did on my browser in development. Did I mention I also don't know GitHub very well? With time running out, I was unable to troubleshoot the problem. Early in the process, I was stuck for a very very long time before realizing I had a spelling error. But I pushed through and (mostly) finished my project.

Overall, this has been a rewarding experience and I am happy to have participated.

Built With

Share this project:

Updates