Buttercup is a Very Good Girl
It all started when…
Griffin and Travis McElroy made a goof about a game for buttercupisaverygoodgirl.com, in episode 421 of the podcast My Brother and Me.
Adding a game to the site:
Step 1: Go to the squarespace page you want to add the game to. Add a new section, and select "code", which is under "MORE".
Step 2: The popup will look like the image below. Now paste this code in there:
<iframe frameborder="0" src="https://itch.io/embed-upload/1022806?color=333333" allowfullscreen="" width="960" height="600" ></iframe>
Step 3: Click "Apply", and you should be good to go! It doesn't work on mobile, but maybe I can find some time to make that work too! :D
Is this safe??
Great question! Whenever someone says "just put this code on your website", your internal alarm should go off. Even very simple looking snippets of code can be very harmful.
This code you're inserting is in an "iframe", which means it links to another website and basically shows that website in a little box on your site. This is good because it's not actually able to access anything on your site! BUT, this is dangerous because someone else is controlling what people see in that box. For example, someone could change the inside of the iframe to say something like, "Click here to win a million dollars! Just enter your gmail password!", and it would should up on your site. Yikes!
In this case I'm hosting the game in itch.io, which is a website that hosts indie games. This means the iframe code is from a reasonably reputable website, and they have checks and balances in place to (hopefully) catch bad folks who are trying to upload games that are secretly scams. In general, be very careful when someone gives you code to put on your website!
This is where I got that iframe code!