OLD | NEW |
1 <!DOCTYPE html> | 1 <!DOCTYPE html> |
2 <html> | 2 <html> |
3 <head> | 3 <head> |
| 4 <script> |
| 5 function debug(msg) { |
| 6 document.getElementById('debug').innerHTML = msg; |
| 7 } |
| 8 |
| 9 function bodyClicked() { |
| 10 var group = templateData.pluginGroup; |
| 11 if (group) { |
| 12 plugin.update(group.update_url); |
| 13 } else { |
| 14 plugin.load(); |
| 15 } |
| 16 } |
| 17 </script> |
4 <style> | 18 <style> |
5 body { | 19 body { |
6 background-color: rgb(252, 235, 162); | 20 background-color: rgb(252, 235, 162); |
7 margin: 0; | 21 margin: 0; |
8 text-align: center; | 22 text-align: center; |
9 font-family: sans-serif; | 23 font-family: sans-serif; |
10 } | 24 } |
11 | 25 |
12 #outer { | 26 #outer { |
13 width: 100%; | 27 width: 100%; |
(...skipping 22 matching lines...) Expand all Loading... |
36 #top, #bottom { | 50 #top, #bottom { |
37 left: 0; right: 0; | 51 left: 0; right: 0; |
38 height: 1px; | 52 height: 1px; |
39 } | 53 } |
40 #top { top: 0; } | 54 #top { top: 0; } |
41 #bottom { bottom: 0; } | 55 #bottom { bottom: 0; } |
42 </style> | 56 </style> |
43 </head> | 57 </head> |
44 | 58 |
45 <body id="t"> | 59 <body id="t"> |
46 <div id="outer" onclick="plugin.load()"> | 60 <div id="outer" onclick="bodyClicked()"> |
47 <div id="left"></div> | 61 <div id="left"></div> |
48 <div id="right"></div> | 62 <div id="right"></div> |
49 <div id="top"></div> | 63 <div id="top"></div> |
50 <div id="bottom"></div> | 64 <div id="bottom"></div> |
51 <div id="inner"> | 65 <div id="inner"> |
52 <div><img src="../../app/theme/extensions_section.png" /></div> | 66 <div><img src="../../app/theme/extensions_section.png" /></div> |
53 <p i18n-content="loadPlugin">LOAD_PLUGIN</p> | 67 <p jsdisplay="!hasOwnProperty('pluginGroup') || !pluginGroup.critical" i18n-cont
ent="loadPlugin">LOAD_PLUGIN</p> |
| 68 <p jsdisplay="hasOwnProperty('pluginGroup')" i18n-content="updatePlugin">UPDATE_
PLUGIN</p> |
| 69 <p id="debug"> </p> |
54 </div> | 70 </div> |
55 </div> | 71 </div> |
56 </body> | 72 </body> |
57 </html> | 73 </html> |
OLD | NEW |