Skip to content

marksands/Comet.js

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 

Repository files navigation

Comet

Facebox

Grab a copy of defunkt's facebox and make sure you include it in your app. Comet won't work without it!

Script

Make sure you have this in your <head>:

<link rel="stylesheet" href="facebox/facebox.css" type="text/css" />
<script src="facebox/facebox.js"></script>
<script src="comet.js"></script>

<!-- This part's optional -->
<script type="text/javascript">
	<!--
		$(document).keypress(function(e){
				if (!e)
					e = window.event;
				var code = e.keyCode || e.charCode || e.which || 0;
				var character = String.fromCharCode(code);
				if(character == 'p') {
					jQuery.displayProfile();
				}
		});	
// -->
</script>

This just assigns the profiler overlay to a hotkey, in this case p is assigned to open the profiler. If you don't want to include it, then you can always open up Firebug and call jQuery.displayProfile(); via the console.

Copyright

Facebox is ©defunkt & jQueryProfiler is ©jeresig Comet brought to you in part by me

About

defunkt's FaceBox meets jeresig's jQueryProfiler

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published