Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
that was easier than I thought. updated readme a bit more and. Need t…
…o js doc the plugin and see if I've missed anything else
- Loading branch information
William Harris
committed
Mar 30, 2011
1 parent
38df823
commit 25130e3
Showing
4 changed files
with
40 additions
and
33 deletions.
There are no files selected for viewing
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
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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,26 @@ | ||
$(document).ready( function () { | ||
|
||
var jqSH = $.socketio(); | ||
|
||
// greet the user on their console | ||
$(jqSH).bind('greeting', function(event, message){ | ||
|
||
if(window.console) console.log(message); | ||
|
||
}); | ||
|
||
//the client is calling the client | ||
$(jqSH).bind('calling', function(event, message){ | ||
|
||
var messageContainer = $("div#message"); | ||
|
||
if (messageContainer.length) { | ||
|
||
messageContainer.effect("pulsate", { times:6 }, 1500); | ||
messageContainer.text(message); | ||
|
||
} | ||
|
||
}); | ||
|
||
}); |
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