OLD | NEW |
1 <!doctype html> | 1 <!doctype html> |
2 <html> | 2 <html> |
3 <head> | 3 <head> |
4 <meta charset="utf-8"> | 4 <meta charset="utf-8"> |
5 <meta name="viewport" content="width=device-width, user-scalable=no"> | 5 <meta name="viewport" content="width=device-width, user-scalable=no"> |
6 <script> | 6 <script> |
7 window.onload = function() { | 7 window.onload = function() { |
8 if (plugin.didFinishLoading) | 8 if (plugin.didFinishLoading) |
9 plugin.didFinishLoading(); | 9 plugin.didFinishLoading(); |
10 }; | 10 }; |
11 | 11 |
12 window.onkeydown = function(e) { | 12 window.onkeydown = function(e) { |
13 if (e.keyIdentifier == 'Enter' || e.keyIdentifier == 'U+0020') { | 13 if (e.key == 'Enter' || e.key == ' ') { |
14 plugin.load(); | 14 plugin.load(); |
15 e.preventDefault(); | 15 e.preventDefault(); |
16 } | 16 } |
17 }; | 17 }; |
18 </script> | 18 </script> |
19 <link rel="stylesheet" href="plugin_placeholders.css"></link> | 19 <link rel="stylesheet" href="plugin_placeholders.css"></link> |
20 <style> | 20 <style> |
21 #outer { | 21 #outer { |
22 border: none; | 22 border: none; |
23 cursor: pointer; | 23 cursor: pointer; |
(...skipping 73 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
97 if (plugin.didFinishIconRepositionForTesting) { | 97 if (plugin.didFinishIconRepositionForTesting) { |
98 // Defer until reflow complete. | 98 // Defer until reflow complete. |
99 window.setTimeout(function() { | 99 window.setTimeout(function() { |
100 plugin.didFinishIconRepositionForTesting(); | 100 plugin.didFinishIconRepositionForTesting(); |
101 }); | 101 }); |
102 } | 102 } |
103 }; | 103 }; |
104 </script> | 104 </script> |
105 </body> | 105 </body> |
106 </html> | 106 </html> |
OLD | NEW |