-
Notifications
You must be signed in to change notification settings - Fork 100
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
5 changed files
with
34 additions
and
34 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,19 +1,24 @@ | ||
<!DOCTYPE html> | ||
<html lang="en"> | ||
<head> | ||
<script type="text/javascript" src="http://cdn.sockjs.org/sockjs-0.3.min.js"></script> | ||
<script type="text/javascript" src="app.js"> </script> | ||
<meta charset="UTF-8"> | ||
<title>Chat Web Example</title> | ||
</head> | ||
|
||
<body> | ||
<h1>Chat - Web Example</h1> | ||
Input text: <input id="input" focus="true"><button onClick="send()" disabled="true" id="send">Send</button> | ||
<form onSubmit='sock.send(document.getElementById("input").value); return false;'> | ||
Input text: <input id="input" focus="true" /> | ||
<input type="submit" disabled="true" id="send" value="Send" /> | ||
</form> | ||
<br/> | ||
Messages from server:</br> | ||
<textarea cols=80 rows=20 id="output"> | ||
</textarea> | ||
<br/> | ||
status: <span id="status">connecting...</span> | ||
<script type="text/javascript" src="http://cdn.sockjs.org/sockjs-0.3.min.js"></script> | ||
<script type="text/javascript" src="app.js"> </script> | ||
|
||
</body> | ||
</html> |
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 |
---|---|---|
@@ -1,19 +1,24 @@ | ||
<!DOCTYPE html> | ||
<html lang="en"> | ||
<head> | ||
<script type="text/javascript" src="http://cdn.sockjs.org/sockjs-0.3.min.js"></script> | ||
<script type="text/javascript" src="app.js"> </script> | ||
<meta charset="UTF-8"> | ||
<title>Echo Web Example</title> | ||
</head> | ||
|
||
<body> | ||
<h1>Echo - Web Example</h1> | ||
Input text: <input id="input" focus="true"><button onClick="send()" disabled="true" id="send">Send</button> | ||
<form onSubmit='sock.send(document.getElementById("input").value); return false;'> | ||
Input text: <input id="input" focus="true" /> | ||
<input type="submit" disabled="true" id="send" value="Send" /> | ||
</form> | ||
<br/> | ||
Echo from server:</br> | ||
Messages from server:</br> | ||
<textarea cols=80 rows=20 id="output"> | ||
</textarea> | ||
<br/> | ||
status: <span id="status">connecting...</span> | ||
<script type="text/javascript" src="http://cdn.sockjs.org/sockjs-0.3.min.js"></script> | ||
<script type="text/javascript" src="app.js"> </script> | ||
|
||
</body> | ||
</html> |
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