Skip to content

Commit

Permalink
added script tag
Browse files Browse the repository at this point in the history
  • Loading branch information
Tom Bijesse authored Nov 18, 2016
1 parent f16bd92 commit da6bacc
Showing 1 changed file with 29 additions and 29 deletions.
58 changes: 29 additions & 29 deletions potatohead.html
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>

0 comments on commit da6bacc

Please sign in to comment.