I am using the forismatic API to retrieve the Quotes. When I test my code on notepad, the code runs correctly. However, when I try the code on code pen I get a Mixed content Error. My code on codepen is here: https://codepen.io/Ag_Yog/pen/rzezYw.
Unfortunately I had no need for a colour change page in my project, so perhaps somebody else can help you. (I assume you are referring to the Random Quote project?)