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 function notifyDidFinishLoading() { | 7 function notifyDidFinishLoading() { |
8 if (plugin.didFinishLoading) | 8 if (plugin.didFinishLoading) |
9 plugin.didFinishLoading(); | 9 plugin.didFinishLoading(); |
10 } | 10 } |
| 11 |
| 12 document.onkeydown = function(e) { |
| 13 if (e.keyIdentifier == 'Enter' || e.keyIdentifier == 'U+0020') { |
| 14 plugin.load(); |
| 15 e.preventDefault(); |
| 16 } |
| 17 }; |
11 </script> | 18 </script> |
12 <link rel="stylesheet" href="plugin_placeholders.css"></link> | 19 <link rel="stylesheet" href="plugin_placeholders.css"></link> |
13 <style> | 20 <style> |
14 #outer { | 21 #outer { |
15 border: none; | 22 border: none; |
16 cursor: pointer; | 23 cursor: pointer; |
17 background-position: center; | 24 background-position: center; |
18 background-repeat: no-repeat; | 25 background-repeat: no-repeat; |
19 background-size: contain; | 26 background-size: contain; |
20 } | 27 } |
(...skipping 23 matching lines...) Expand all Loading... |
44 <div i18n-values="title:name;.style.background-image:background" id="outer" | 51 <div i18n-values="title:name;.style.background-image:background" id="outer" |
45 onclick="plugin.load()"> | 52 onclick="plugin.load()"> |
46 <div id="shielding"> | 53 <div id="shielding"> |
47 <div id="inner"> | 54 <div id="inner"> |
48 <div><img id="plugin_icon" src="plugin_power_saver_play.png" /></div> | 55 <div><img id="plugin_icon" src="plugin_power_saver_play.png" /></div> |
49 </div> | 56 </div> |
50 </div> | 57 </div> |
51 </div> | 58 </div> |
52 </body> | 59 </body> |
53 </html> | 60 </html> |
OLD | NEW |