forked from Bijesse/Mr_Potato_Head
-
Notifications
You must be signed in to change notification settings - Fork 139
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Tom Bijesse
authored
Nov 18, 2016
1 parent
f16bd92
commit da6bacc
Showing
1 changed file
with
29 additions
and
29 deletions.
There are no files selected for viewing
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,33 +1,33 @@ | ||
<!DOCTYPE html> | ||
<!-- saved from url=(0077)http://www.webstepbook.com/supplements/labsection/lab8-potatohead/potato.html --> | ||
<html> | ||
<head> | ||
<title>Mr. Potato Head</title> | ||
<script src="https://code.jquery.com/jquery-1.11.3.min.js"></script> | ||
<link href="assets/potato.css" type="text/css" rel="stylesheet"> | ||
</head> | ||
<body> | ||
<h1>Mr. Potato Head</h1> | ||
<div id="potato"> | ||
<img id="body" src="assets/body.png"> | ||
<img id="arms"> | ||
<img id="ears"> | ||
<img id="eyes"> | ||
<img id="mouth"> | ||
<img id="nose"> | ||
<img id="eyebrows"> | ||
<img id="glasses"> | ||
<img id="hat"> | ||
<img id="moustache"> | ||
<img id="shoes"> | ||
</div> | ||
<script> | ||
$(function() { | ||
console.log('ready'); | ||
$('img').click(function(e) { | ||
console.log($(e.target).attr('id')) | ||
}); | ||
}) | ||
</script> | ||
</body> | ||
<head> | ||
<title>Mr. Potato Head</title> | ||
<link href="potato.css" type="text/css" rel="stylesheet"> | ||
<script src="https://code.jquery.com/jquery-1.11.3.min.js"></script> | ||
<script src="script.js"></script> | ||
</head> | ||
|
||
<body> | ||
<h1>Mr. Potato Head</h1> | ||
|
||
<div id="potato"> | ||
<img id="body" src="assets/body.png"> | ||
<img id="arms_image"> | ||
<img id="ears_image"> | ||
<img id="eyes_image" > | ||
<img id="mouth_image" > | ||
<img id="nose_image" > | ||
<img id="eyebrows_image" > | ||
<img id="glasses_image" > | ||
<img id="hat_image" > | ||
<img id="moustache_image" > | ||
<img id="shoes_image" > | ||
<img id="cane"> | ||
<img id="earrings"> | ||
<img id="hatflower"> | ||
<img id="boosters"> | ||
</div> | ||
|
||
</body> | ||
</html> |