Created
May 4, 2012 06:11
-
-
Save phongjalvn/2592466 to your computer and use it in GitHub Desktop.
Basic template + jQuery
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> | |
<meta charset="utf-8"> | |
<title></title> | |
<link rel="stylesheet" href="style.css"> | |
<script src="https://ajax.googleapis.com/ajax/libs/jquery/1.7.1/jquery.min.js"></script> | |
<script src="script.js"></script> | |
</head> | |
<body> | |
<h1>Basic template!</h1> | |
<p>If the header above is red, then you know site is working!</p> | |
<p>The header above should slide right, indicating that jQuery is up and running.</p> | |
<!-- Put your html here! --> | |
</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
// Add your javascript here | |
$(function(){ | |
$("h1").animate({ | |
"margin-left": "100px" | |
}, "slow"); | |
}); |
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
/* Put your css in here */ | |
h1 { | |
color: red; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment