Skip to content

Commit f2130d1

Browse files
author
John Costa
committedOct 1, 2015
homework day 3
1 parent bcb9bcc commit f2130d1

File tree

3 files changed

+47
-0
lines changed

3 files changed

+47
-0
lines changed
 

‎costajohnt/Kermitthefrog.jpg

19.5 KB
Loading

‎costajohnt/day3.html

+39
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,39 @@
1+
<!DOCTYPE html>
2+
<html>
3+
<head>
4+
<script src="https://ajax.googleapis.com/ajax/libs/jquery/2.1.4/jquery.min.js"></script>
5+
6+
7+
8+
<meta charset="utf-8">
9+
10+
<!-- set viewport to device width to allow responsiveness -->
11+
<meta name="viewport" content="width=device-width, initial-scale=1">
12+
13+
<!-- Bootstrap CDN -->
14+
<link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.5/css/bootstrap.min.css">
15+
16+
<!-- custom styles (always require after Bootstrap) -->
17+
<link rel="stylesheet" href="style.css">
18+
19+
<title>Kermit the Frog here</title>
20+
</head>
21+
<body>
22+
<script type='text/javascript' src='day3.js'></script>
23+
<div class="container">
24+
<div class="row">
25+
<div class="col-md-6 col-md-offset-3">
26+
<h1>Kermie!</h1>
27+
<p>Duis rhoncus nec ligula et pulvinar. Donec lacinia venenatis metus vitae scelerisque. Donec porta diam diam, sit amet euismod nisi blandit eu. Suspendisse ac ultricies metus. Praesent convallis venenatis quam eu pretium. Maecenas gravida non massa ut convallis. Morbi at purus pulvinar, viverra metus quis, pretium elit. Sed sit amet euismod risus, et posuere leo. Nunc urna urna, sodales quis dapibus vel, pulvinar a nulla. Phasellus laoreet nunc eros, vel consequat dolor mattis ullamcorper. Nullam quis iaculis odio, sed accumsan nunc. In in venenatis urna. Sed ullamcorper vel turpis sit amet volutpat. Ut suscipit porta semper.This is where the content goes. The directions for this assignment are two create some content in html. Import jQuery in day3.html, and use HTML to create some content: at least one paragraph of text and at least one image. Add three buttons. Use the on method to give each button a click event handler. Attach a different effect to each button. For instance, you might have one button hide the image, one button show the image, and one button animate a change of the paragraph's font color. (Can you implement methods not listed above? Of course! But please make sure the user can SEE something unique change on your page for each button press.)</p>
28+
<div class="hover">
29+
<img src=Kermitthefrog.jpg alt="Kermit">
30+
</div>
31+
</div>
32+
<!-- <div class="col-sm-6">
33+
<h1>col-sm-6</h1>
34+
<p>And they take up the whole page on small devices.</p>
35+
</div> -->
36+
</div>
37+
</div>
38+
</body>
39+
</html>

‎costajohnt/day3.js

+8
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
$(document).ready(function() {
2+
$('p').click(function() {
3+
$('p').hide();
4+
$('.hover').click(function() {
5+
$('.hover').hide();
6+
});
7+
});
8+
});

0 commit comments

Comments
 (0)
Please sign in to comment.