| 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 | 11 |
| 12 document.onkeydown = function(e) { | 12 document.onkeydown = function(e) { |
| 13 if (e.keyIdentifier == 'Enter' || e.keyIdentifier == 'U+0020') { | 13 if (e.keyIdentifier == 'Enter' || e.keyIdentifier == 'U+0020') { |
| 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 position: relative; |
| 22 border: none; | 23 border: none; |
| 23 cursor: pointer; | 24 cursor: pointer; |
| 24 background-position: center; | |
| 25 background-repeat: no-repeat; | |
| 26 background-size: contain; | |
| 27 } | 25 } |
| 28 | 26 |
| 29 #shielding { | 27 #shielding { |
| 30 background-color: rgba(0, 0, 0, 0.5); | 28 background-color: rgba(0, 0, 0, 0.5); |
| 29 position: absolute; |
| 30 top: 0px; |
| 31 left: 0px; |
| 31 height: 100%; | 32 height: 100%; |
| 32 position: absolute; | |
| 33 width: 100%; | 33 width: 100%; |
| 34 z-index: 2; |
| 34 } | 35 } |
| 35 | 36 |
| 36 #plugin_icon { | 37 #plugin_icon { |
| 37 opacity: 0.8; | 38 opacity: 0.8; |
| 38 } | 39 } |
| 39 | 40 |
| 40 #plugin_icon:hover { | 41 #plugin_icon:hover { |
| 41 opacity: 0.95; | 42 opacity: 0.95; |
| 42 } | 43 } |
| 43 | 44 |
| 45 #poster { |
| 46 height: 100%; |
| 47 width: 100%; |
| 48 z-index: 1; |
| 49 } |
| 50 |
| 44 #inner { | 51 #inner { |
| 45 margin-top: -25px; | 52 margin-top: -25px; |
| 46 } | 53 } |
| 47 </style> | 54 </style> |
| 55 <base i18n-values="href:baseurl"> |
| 48 </head> | 56 </head> |
| 49 | 57 |
| 50 <body onload="notifyDidFinishLoading();"> | 58 <body onload="notifyDidFinishLoading();"> |
| 51 <div i18n-values="title:name;.style.background-image:background" id="outer" | 59 <div i18n-values="title:name" id="outer" onclick="plugin.load()"> |
| 52 onclick="plugin.load()"> | 60 <img id="poster" i18n-values="srcset:poster"> |
| 53 <div id="shielding"> | 61 <div id="shielding"> |
| 54 <div id="inner"> | 62 <div id="inner"> |
| 55 <div><img id="plugin_icon" src="plugin_power_saver_play.png" /></div> | 63 <div><img id="plugin_icon" src="plugin_power_saver_play.png" /></div> |
| 56 </div> | 64 </div> |
| 57 </div> | 65 </div> |
| 58 </div> | 66 </div> |
| 59 </body> | 67 </body> |
| 60 </html> | 68 </html> |
| OLD | NEW |