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 22 matching lines...) Expand all Loading... |
33 | 33 |
34 // Handle a file being chosen from the <input type=file...> tag. | 34 // Handle a file being chosen from the <input type=file...> tag. |
35 function handleFileInput() { | 35 function handleFileInput() { |
36 var file_input = document.getElementById("FileInput"); | 36 var file_input = document.getElementById("FileInput"); |
37 var files = file_input.files; | 37 var files = file_input.files; |
38 for(var i = 0; i < files.length; ++i) | 38 for(var i = 0; i < files.length; ++i) |
39 postFileContents(files[i]); | 39 postFileContents(files[i]); |
40 } | 40 } |
41 </script> | 41 </script> |
42 </head> | 42 </head> |
43 <body onload="common.onload('<NAME>', '<tc>', 256, 256)"> | 43 <body onload="common.onload('<NAME>', '<tc>', '<config>', 256, 256)"> |
44 <h1><TITLE></h1> | 44 <h1><TITLE></h1> |
45 <h2>Status: <code id="statusField">NO-STATUS</code></h2> | 45 <h2>Status: <code id="statusField">NO-STATUS</code></h2> |
46 <input type="file" id="FileInput" onchange="handleFileInput()" multiple> | 46 <input type="file" id="FileInput" onchange="handleFileInput()" multiple> |
47 <!-- The NaCl plugin will be embedded inside the element with id "listener". | 47 <!-- The NaCl plugin will be embedded inside the element with id "listener". |
48 See common.js.--> | 48 See common.js.--> |
49 <div id="listener"> | 49 <div id="listener"> |
50 <script type="text/javascript"> | 50 <script type="text/javascript"> |
51 var listener = document.getElementById('listener'); | 51 var listener = document.getElementById('listener'); |
52 listener.addEventListener('drop', handleFileDrop, true); | 52 listener.addEventListener('drop', handleFileDrop, true); |
53 </script> | 53 </script> |
54 </div> | 54 </div> |
55 </body> | 55 </body> |
56 </html> | 56 </html> |
OLD | NEW |