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 28 matching lines...) Expand all Loading... |
39 <h1><TITLE></h1> | 39 <h1><TITLE></h1> |
40 <h2>Status: <code id="statusField">NO-STATUS</code></h2> | 40 <h2>Status: <code id="statusField">NO-STATUS</code></h2> |
41 <!-- The NaCl plugin will be embedded inside the element with id "listener". | 41 <!-- The NaCl plugin will be embedded inside the element with id "listener". |
42 See common.js.--> | 42 See common.js.--> |
43 <div id="listener"> | 43 <div id="listener"> |
44 <script type="text/javascript"> | 44 <script type="text/javascript"> |
45 window.webkitStorageInfo.requestQuota(window.PERSISTENT, 1024, | 45 window.webkitStorageInfo.requestQuota(window.PERSISTENT, 1024, |
46 function(bytes) { | 46 function(bytes) { |
47 common.updateStatus( | 47 common.updateStatus( |
48 'Allocated '+bytes+' bytes of persistent storage.'); | 48 'Allocated '+bytes+' bytes of persistent storage.'); |
49 common.createNaClModule('<NAME>', '<tc>', 800, 600); | 49 common.createNaClModule('<NAME>', '<tc>', '<config>', 800, 600); |
50 common.attachDefaultListeners(); | 50 common.attachDefaultListeners(); |
51 }, | 51 }, |
52 function(e) { alert('Failed to allocate space'); }); | 52 function(e) { alert('Failed to allocate space'); }); |
53 </script> | 53 </script> |
54 </div> | 54 </div> |
55 <p id="score"></p> | 55 <p id="score"></p> |
56 <button onclick="resetScore()">Reset score</button> | 56 <button onclick="resetScore()">Reset score</button> |
57 <p id="error_log"></p> | 57 <p id="error_log"></p> |
58 </body> | 58 </body> |
59 </html> | 59 </html> |
OLD | NEW |