Skip to content

Instantly share code, notes, and snippets.

@phongjalvn
Created May 4, 2012 06:11
Show Gist options
  • Save phongjalvn/2592466 to your computer and use it in GitHub Desktop.
Save phongjalvn/2592466 to your computer and use it in GitHub Desktop.
Basic template + jQuery
<!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>
// Add your javascript here
$(function(){
$("h1").animate({
"margin-left": "100px"
}, "slow");
});
/* 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