forked from itscodenation/potato-head-starter
-
Notifications
You must be signed in to change notification settings - Fork 10
Expand file tree
/
Copy pathpotatohead.html
More file actions
executable file
·33 lines (33 loc) · 938 Bytes
/
potatohead.html
File metadata and controls
executable file
·33 lines (33 loc) · 938 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
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" src="assets/ears.png">
<img id="eyes">
<img id="mouth">
<img id="nose">
<img id="eyebrows" src="assets/eyebrows.png">
<img id="glasses">
<img id="hat">
<img id="moustache" src="assets/moustache.png">
<img id="shoes">
</div>
<script>
$(function() {
console.log('ready');
$('img').click(function(e) {
console.log($(e.target).attr('id'))
});
})
</script>
</body>
</html>