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"> |
(...skipping 14 matching lines...) Expand all Loading... |
25 // Grab the text from the text box, pass it into reverseText() | 25 // Grab the text from the text box, pass it into reverseText() |
26 var inputBox = document.getElementById('inputBox'); | 26 var inputBox = document.getElementById('inputBox'); |
27 common.naclModule.postMessage('reverseText:' + inputBox.value); | 27 common.naclModule.postMessage('reverseText:' + inputBox.value); |
28 } | 28 } |
29 | 29 |
30 function handleMessage(message_event) { | 30 function handleMessage(message_event) { |
31 alert(message_event.data); | 31 alert(message_event.data); |
32 } | 32 } |
33 </script> | 33 </script> |
34 </head> | 34 </head> |
35 <body onload="common.onload('<NAME>', '<tc>')"> | 35 <body onload="common.onload('<NAME>', '<tc>', '<config>')"> |
36 <h1>Native Client Simple Module</h1> | 36 <h1>Native Client Simple Module</h1> |
37 <h2>Status: <code id="statusField">NO-STATUS</code></h2> | 37 <h2>Status: <code id="statusField">NO-STATUS</code></h2> |
38 <!-- The NaCl plugin will be embedded inside the element with id "listener". | 38 <!-- The NaCl plugin will be embedded inside the element with id "listener". |
39 See common.js.--> | 39 See common.js.--> |
40 <div id="listener"></div> | 40 <div id="listener"></div> |
41 <textarea id="inputBox" rows="4" cols="50">Hello World</textarea> | 41 <textarea id="inputBox" rows="4" cols="50">Hello World</textarea> |
42 <div> | 42 <div> |
43 <button onclick="fortyTwo()">Call fortyTwo()</button> | 43 <button onclick="fortyTwo()">Call fortyTwo()</button> |
44 <button onclick="reverseText()">Call reverseText()</button> | 44 <button onclick="reverseText()">Call reverseText()</button> |
45 <div/> | 45 <div/> |
46 </body> | 46 </body> |
47 </html> | 47 </html> |
OLD | NEW |