Created
September 6, 2008 17:21
-
-
Save nmerouze/9177 to your computer and use it in GitHub Desktop.
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
// jquery.red.js | |
var domReady = function(handler) { jQuery(document).ready(handler); }; | |
var j = 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
dom_ready do | |
j('#nav').click { alert('Hello World!') } | |
end |
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 PUBLIC "-//W3C//DTD HTML 4.01//EN" | |
"http://www.w3.org/TR/html4/strict.dtd"> | |
<html lang="en"> | |
<head> | |
<meta http-equiv="Content-Type" content="text/html; charset=utf-8"> | |
<title>jQuery + Red</title> | |
<meta name="author" content="Nicolas Mérouze"> | |
<script type="text/javascript" charset="utf-8" src="jquery.js"></script> | |
<script type="text/javascript" charset="utf-8" src="jquery.red.js"></script> | |
<script type="text/javascript" charset="utf-8" src="application.js"></script> | |
</head> | |
<body> | |
<p id="nav">Hello World!</p> | |
</body> | |
</html> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment