Created
May 27, 2012 20:36
-
-
Save travhimself/2815834 to your computer and use it in GitHub Desktop.
js jquery blocks
This file contains hidden or 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
| $(document).ready(function() { | |
| // fire when the DOM is ready | |
| }); | |
| $(window).load(function() { | |
| // fire after page has been rendered | |
| }); | |
| $(window).unload(function() { | |
| // fire when user leaves the page | |
| }); | |
| $.fn.newFunc = function() { | |
| // new jquery function | |
| }; | |
| $('a').click( function(e) { | |
| e.PreventDefault(); | |
| // new click event | |
| }); | |
| var newFunc = function() { | |
| // new js function | |
| }; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment