Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(337)

Side by Side Diff: native_client_sdk/src/examples/websocket/index.html

Issue 13488007: [NaCl SDK] Make the SDK examples buildable as a packaged app. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: fix license headers Created 7 years, 8 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
OLDNEW
1 <!DOCTYPE html> 1 <!DOCTYPE html>
2 <html> 2 <html>
3 <!-- 3 <!--
4 Copyright (c) 2012 The Chromium Authors. All rights reserved. 4 Copyright (c) 2012 The Chromium Authors. All rights reserved.
5 Use of this source code is governed by a BSD-style license that can be 5 Use of this source code is governed by a BSD-style license that can be
6 found in the LICENSE file. 6 found in the LICENSE file.
7 --> 7 -->
8 <head> 8 <head>
9 <meta http-equiv="Pragma" content="no-cache"> 9 <meta http-equiv="Pragma" content="no-cache">
10 <meta http-equiv="Expires" content="-1"> 10 <meta http-equiv="Expires" content="-1">
11 <title>{{title}}</title> 11 <title>{{title}}</title>
12 <script type="text/javascript" src="common.js"></script> 12 <script type="text/javascript" src="common.js"></script>
13 <script type="text/javascript" src="example.js"></script> 13 <script type="text/javascript" src="example.js"></script>
14 </head> 14 </head>
15 <body {{attrs}}> 15 <body {{attrs}}>
16 <h1>{{title}}</h1> 16 <h1>{{title}}</h1>
17 <h2>Status: <code id="statusField">NO-STATUS</code></h2> 17 <h2>Status: <code id="statusField">NO-STATUS</code></h2>
18 <div>Set a server URL, then push "Connect" button to establish a connection. 18 <p>The Websocket example demonstrates how to use the Websocket API.<br>
19 <br>"Send" button sends text message on the left text area. 19 First set a server URL (or use the default), then push "Connect" button to
20 <br>"Close" button closes the connection. 20 establish a connection.<br>
21 <div> 21 "Send" button sends text message on the left text area.<br>
22 "Close" button closes the connection.
23 </p>
22 <form id="connectForm"> 24 <form id="connectForm">
23 <input type="text" id="url" style="width: 400px" 25 <input type="text" id="url" style="width: 400px"
24 value="ws://html5rocks.websocket.org/echo?encoding=text"> 26 value="ws://html5rocks.websocket.org/echo?encoding=text">
25 <input type="submit" value="Connect"> 27 <input type="submit" value="Connect">
26 </form> 28 </form>
27 29
28 <form id="sendForm"> 30 <form id="sendForm">
29 <input type="text" id="message" value="hello" style="width: 400px"> 31 <input type="text" id="message" value="hello" style="width: 400px">
30 <input type="submit" value="Send"> 32 <input type="submit" value="Send">
31 </form> 33 </form>
32 34
33 <button id="closeButton">Close</button> 35 <button id="closeButton">Close</button>
36 <pre id="log" style="font-weight: bold"></pre>
34 <div id="listener"></div> 37 <div id="listener"></div>
35 <div id="log"></div>
36 </body> 38 </body>
37 </html> 39 </html>
OLDNEW
« no previous file with comments | « native_client_sdk/src/examples/websocket/example.js ('k') | native_client_sdk/src/examples/websocket/websocket.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698