Created
January 3, 2017 21:13
-
-
Save kirsten/6e690bdfdf7c3a3a3d01052c8224725f to your computer and use it in GitHub Desktop.
Exported from Popcode. Click to import: https://popcode.org/?gist=6e690bdfdf7c3a3a3d01052c8224725f
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<!DOCTYPE html> | |
<html> | |
<head> | |
<title>Homer Simpson</title> | |
</head> | |
<body> | |
<div id="header"> | |
<img id="profile-picture" src="https://pbs.twimg.com/profile_images/609439993094770690/MqfzEbtj.jpg"> | |
<h1 id="title">Homer's Profile</h1> | |
</div> | |
<div id="content"> | |
<div id="sidebar"> | |
<h4 id="interests">Interests</h4> | |
<ul id="interests-list"> | |
<li>Donuts</li> | |
<li>Nuclear Power</li> | |
<li>Moe's Bar</li> | |
<li>Springfield</li> | |
</ul> | |
</div> | |
<div id="main"> | |
<h3 id="wall">Homer's Wall</h3> | |
<div class="post" id="bart"> | |
<img class="post-image" src="http://icons.iconarchive.com/icons/jonathan-rey/simpsons/256/Bart-Simpson-01-icon.png"> | |
<p class="post-text">Don't have a cow man</p> | |
</div> | |
<div class="post" id="ned"> | |
<img class="post-image" src="http://vignette4.wikia.nocookie.net/simpsons/images/d/d6/Ned_Flanders_2.png/revision/latest?cb=20141024230457"> | |
<p class="post-text">Hidely-ho neighborino</p> | |
</div> | |
<div class="post" id="maggie"> | |
<img class="post-image" src="https://static.simpsonswiki.com/images/thumb/9/9d/Maggie_Simpson.png/250px-Maggie_Simpson.png"> | |
<p class="post-text">*pacifier noise*</p> | |
</div> | |
</div> | |
</div> | |
<div id="footer"> | |
SimpBook™ | |
</div> | |
</body> | |
</html> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{"enabledLibraries":["jquery"]} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// the following code will make Homer say D'oh! when you click on him! | |
$("#profile-picture").click(function () { | |
alert("D'oh!"); | |
}); | |
// now that you know how to make alerts... | |
// create an alert when you click on Bart, Ned, and Maggie | |
// use the code above as an exampleie |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#header { | |
width: 100%; | |
border: 1px solid black; | |
} | |
#profile-picture { | |
height: 100px; | |
width: 100px; | |
float: left; | |
} | |
#title { | |
float: left; | |
margin-left: 50px; | |
} | |
#sidebar { | |
border: 1px solid black; | |
width: 25%; | |
height: 500px; | |
float: left; | |
} | |
#main { | |
border: 1px solid black; | |
width: 74%; | |
height: 500px; | |
float: left; | |
} | |
#wall { | |
text-align: center; | |
} | |
#interests { | |
margin-left: 10px; | |
} | |
.post { | |
border: 1px solid black; | |
margin: 5px; | |
padding: 5px; | |
} | |
.post-image { | |
height: 50px; | |
width: 50px; | |
float: left; | |
} | |
.post-text { | |
float: left; | |
} | |
#footer { | |
float: right; | |
} | |
#header:after, .post:after { | |
clear: both; | |
display: table; | |
content: ""; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment