Last active
December 21, 2015 17:58
-
-
Save mantisbayne/6343669 to your computer and use it in GitHub Desktop.
.js file not loading
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>Meredith's Awesome Site</title> | |
<script type='text/javascript' src='http://ajax.googleapis.com/ajax/libs/jquery/1.6.4/jquery.min.js'></script> | |
<link type="text/javascript" src="meredithsite.js"/> | |
<link rel="stylesheet" type="text/css" href="meredithsite.css"/> | |
</head> | |
<body> | |
<div class="fun-head"><h1>Meredith's Favorite Movies 2k13</h1></div> | |
<div class="nav-bar"> | |
<button>Click Here Bitch!</button> | |
</div> | |
<div class="spring-brk"> | |
<img src="http://www.themarshalltown.com/zine/wp-content/uploads/2013/05/springbreakers.jpg"/> | |
</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
$(function () { | |
var button = $('.nav-bar button'); | |
var image = $('.spring-brk img'); | |
button.click(function () { | |
image.fadeOut('slow'); | |
}); | |
}); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment