OLD | NEW |
---|---|
1 <!doctype html> | 1 <!doctype html> |
2 <html> | 2 <html> |
3 <head> | 3 <head> |
4 <title>Getting Started Extension's Popup</title> | 4 <title>Getting Started Extension's Popup</title> |
5 <style> | 5 <style> |
6 body { | 6 body { |
7 min-width: 357px; | 7 font-family: "Segoe UI", "Lucida Grande", Tahoma, sans-serif; |
not at google - send to devlin
2014/11/17 22:02:57
You shouldn't need fonts, we set these automatical
robwu
2014/11/17 22:26:11
Really? Also for the extension popup?
not at google - send to devlin
2014/11/17 23:14:03
Yes, we always set fonts. The options page stuff a
| |
8 overflow-x: hidden; | 8 font-size: 100%; |
9 } | 9 } |
10 | 10 #status { |
11 img { | 11 white-space: pre-line; |
12 margin: 5px; | 12 } |
13 border: 2px solid black; | 13 #image-result:not([src]) { |
14 vertical-align: middle; | 14 display: none; |
15 width: 75px; | |
16 height: 75px; | |
17 } | 15 } |
not at google - send to devlin
2014/11/17 22:02:57
I thikn better would be to define a rule
[hidden]
robwu
2014/11/17 22:26:11
Okay, I've added hidden to the <img>. Removed this
| |
18 </style> | 16 </style> |
19 | 17 |
20 <!-- | 18 <!-- |
21 - JavaScript and HTML must be in separate files: see our Content Security | 19 - JavaScript and HTML must be in separate files: see our Content Security |
22 - Policy documentation[1] for details and explanation. | 20 - Policy documentation[1] for details and explanation. |
23 - | 21 - |
24 - [1]: http://developer.chrome.com/extensions/contentSecurityPolicy.html | 22 - [1]: https://developer.chrome.com/extensions/contentSecurityPolicy |
25 --> | 23 --> |
26 <script src="popup.js"></script> | 24 <script src="popup.js"></script> |
27 </head> | 25 </head> |
28 <body> | 26 <body> |
27 <div id="status"></div> | |
28 <img id="image-result"> | |
29 </body> | 29 </body> |
30 </html> | 30 </html> |
31 | 31 |
OLD | NEW |