Skip to content

Instantly share code, notes, and snippets.

Created Dec 12, 2016
What would you like to do?
Exported from Popcode. Click to import:
<!DOCTYPE html>
<title>jQuery Fun House Starter Code</title>
<div class="section">
<h1>What is your name?
<input id="name">
<button id="submit-name" value="That’s my name">That’s my name</button>
<p id="greeting">Hi </p>
<div class="section">
<button id="change-color">Change the page‘s color!</button>
<div class="section" id="gallery">
<h1>Pictures of elephants</h1>
<img class="gallery-thumb" id="pic1" src=",_2009).jpg">
<img class="gallery-thumb" id="pic2" src="">
<img class="gallery-thumb" id="pic3" src="">
<img id="gallery-main" src="">
#gallery {
width: 50%;
margin-left: auto;
margin-right: auto;
.gallery-thumb {
display: block;
float: left;
padding: 5px;
box-sizing: border-box;
width: 33%;
#change-color {
width: 300px;
text-align: center;
display: block;
margin: 0 auto;
font-size: 3em;
.section {
padding: 1em 0;
border-bottom: 2px dashed gray;
h1, #submit-name {
font-size: 2em;
input {
font-size: 1em;
#greeting {
text-align: center;
font-size: 2em;
text-shadow: 3px 3px 3px gray;
#gallery-main {
width: 100%;
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment