Created
November 5, 2010 14:54
-
-
Save mheadd/664251 to your computer and use it in GitHub Desktop.
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
| <!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd"> | |
| <html> | |
| <head> | |
| <meta http-equiv="Content-Type" content="text/html; charset=UTF-8"> | |
| <title>jQuery / Phono Sample</title> | |
| <style type="text/css"> | |
| </style> | |
| <script type="text/javascript" src="http://ajax.googleapis.com/ajax/libs/jquery/1.4.3/jquery.min.js"></script> | |
| <script type="text/javascript" src="js/jquery.phono.js"></script> | |
| </head> | |
| <script> | |
| $(document).ready(function(){ | |
| var phono = $.phono({ | |
| apiKey: "enter-your-api-key", | |
| onReady: function() { | |
| console.log("Connected"); | |
| console.log("Phono Session ID: " + this.sessionId); | |
| $("#status").append("<p>Phono Session ID: " + this.sessionId + "</p>"); | |
| } | |
| }); | |
| }); | |
| </script> | |
| <body> | |
| <div id="status"></div> | |
| </body> | |
| </html> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment