Skip to content

Instantly share code, notes, and snippets.

@mantisbayne
Last active December 21, 2015 17:58
Show Gist options
  • Save mantisbayne/6343669 to your computer and use it in GitHub Desktop.
Save mantisbayne/6343669 to your computer and use it in GitHub Desktop.
.js file not loading
<!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>
$(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