| OLD | NEW |
| 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 <!-- The NaCl plugin will be embedded inside the element with id "listener". | 18 <p>The Interactive Hello World C++ example demonstrates the basic structure |
| 19 See common.js.--> | 19 of all Native Client applications. This example loads a Native Client |
| 20 <div id="listener"></div> | 20 module which uses two way interaction with JavaScript whenever a button |
| 21 is clicked. The NaCl module will respond with the number 42 or the |
| 22 reversed version of the string in the text box when the appropriate |
| 23 button is clicked.</p> |
| 21 <textarea id="inputBox" rows="4" cols="50">Hello World</textarea> | 24 <textarea id="inputBox" rows="4" cols="50">Hello World</textarea> |
| 22 <div> | 25 <div> |
| 23 <button id="fortyTwo">Call fortyTwo()</button> | 26 <button id="fortyTwo">Call fortyTwo()</button> |
| 24 <button id="reverseText">Call reverseText()</button> | 27 <button id="reverseText">Call reverseText()</button> |
| 25 <div/> | 28 <div/> |
| 29 <h2>Output:</h2> |
| 30 <pre id="log" style="font-weight:bold"></pre> |
| 31 |
| 32 <!-- The NaCl plugin will be embedded inside the element with id "listener". |
| 33 See common.js.--> |
| 34 <div id="listener"></div> |
| 26 </body> | 35 </body> |
| 27 </html> | 36 </html> |
| OLD | NEW |