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 18 matching lines...) Expand all Loading... |
29 | 29 |
30 function changeFrequency(freq) { | 30 function changeFrequency(freq) { |
31 common.naclModule.postMessage('setFrequency:' + freq); | 31 common.naclModule.postMessage('setFrequency:' + freq); |
32 } | 32 } |
33 | 33 |
34 function handleMessage(e) { | 34 function handleMessage(e) { |
35 document.getElementById('frequency_field').value = message_event.data; | 35 document.getElementById('frequency_field').value = message_event.data; |
36 } | 36 } |
37 </script> | 37 </script> |
38 </head> | 38 </head> |
39 <body onload="common.onload('<NAME>', '<tc>')"> | 39 <body onload="common.onload('<NAME>', '<tc>', '<config>')"> |
40 <h1><TITLE></h1> | 40 <h1><TITLE></h1> |
41 <h2>Status: <code id="statusField">NO-STATUS</code></h2> | 41 <h2>Status: <code id="statusField">NO-STATUS</code></h2> |
42 | 42 |
43 <p>Click the button to start and stop the sine wave playing.</p> | 43 <p>Click the button to start and stop the sine wave playing.</p> |
44 <button onclick="toggleSound(true)">Play</button> | 44 <button onclick="toggleSound(true)">Play</button> |
45 <button onclick="toggleSound(false)">Stop</button> | 45 <button onclick="toggleSound(false)">Stop</button> |
46 | 46 |
47 <p>Enter the frequency of the sine wave:</p> | 47 <p>Enter the frequency of the sine wave:</p> |
48 <input type="text" size="15" id="frequency_field" | 48 <input type="text" size="15" id="frequency_field" |
49 value="440" onchange="changeFrequency(this.value)"> | 49 value="440" onchange="changeFrequency(this.value)"> |
50 | 50 |
51 <!-- The NaCl plugin will be embedded inside the element with id "listener". | 51 <!-- The NaCl plugin will be embedded inside the element with id "listener". |
52 See common.js.--> | 52 See common.js.--> |
53 <div id="listener"></div> | 53 <div id="listener"></div> |
54 </body> | 54 </body> |
55 </html> | 55 </html> |
OLD | NEW |