6 """ |
6 """ |
7 Module containing some HTML resources. |
7 Module containing some HTML resources. |
8 """ |
8 """ |
9 |
9 |
10 notFoundPage_html = """\ |
10 notFoundPage_html = """\ |
11 <html> |
11 <?xml version="1.0" encoding="UTF-8" ?> |
|
12 <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" |
|
13 "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"> |
|
14 <html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en"> |
12 <head> |
15 <head> |
13 <title>{0}</title> |
16 <title>{0}</title> |
|
17 <link rel="icon" href="data:image/png;base64,@FAVICON@" type="image/x-icon" /> |
14 <style> |
18 <style> |
15 body {{ |
19 body {{ |
16 padding: 3em 0em; |
20 padding: 3em 0em; |
17 background: -webkit-gradient(linear, left top, left bottom, from(#85784A), to(#FDFDFD), color-stop(0.5, #FDFDFD)); |
21 background: -webkit-gradient(linear, left top, left bottom, from(#85784A), to(#FDFDFD), color-stop(0.5, #FDFDFD)); |
18 background-repeat: repeat-x; |
22 background-repeat: repeat-x; |
25 background: white; |
29 background: white; |
26 border: 1px solid #85784A; |
30 border: 1px solid #85784A; |
27 width: 600px; |
31 width: 600px; |
28 padding: 60px; |
32 padding: 60px; |
29 margin: auto; |
33 margin: auto; |
30 -webkit-border-radius: 0.8em; |
34 border-radius: 0.8em; |
31 }} |
35 }} |
32 h1 {{ |
36 h1 {{ |
33 font-size: 130%; |
37 font-size: 130%; |
34 font-weight: bold; |
38 font-weight: bold; |
35 border-bottom: 1px solid #85784A; |
39 border-bottom: 1px solid #85784A; |
36 margin-left: 48px; |
40 margin-left: 64px; |
37 }} |
41 }} |
38 h2 {{ |
42 h2 {{ |
39 font-size: 100%; |
43 font-size: 100%; |
40 font-weight: normal; |
44 font-weight: normal; |
41 border-bottom: 1px solid #85784A; |
45 border-bottom: 1px solid #85784A; |
42 margin-left: 48px; |
46 margin-left: 64px; |
43 }} |
47 }} |
44 ul {{ |
48 ul {{ |
45 font-size: 100%; |
49 font-size: 100%; |
46 padding-left: 48px; |
50 padding-left: 64px; |
47 margin: 5px 0; |
51 margin: 5px 0; |
48 }} |
52 }} |
49 </style> |
53 </style> |
50 </head> |
54 </head> |
51 <body> |
55 <body> |
52 <div id="box"> |
56 <div id="box"> |
53 <img src="data:image/png;base64,IMAGE_BINARY_DATA_HERE" width="32" height="32"/> |
57 <img src="data:image/png;base64,@IMAGE@" width="48" height="48"/> |
54 <h1>{1}</h1> |
58 <h1>{1}</h1> |
55 <h2>{2}</h2> |
59 <h2>{2}</h2> |
56 <ul> |
60 <ul> |
57 <li>{3}</li> |
61 <li>{3}</li> |
58 <li>{4}</li> |
62 <li>{4}</li> |
65 </html> |
69 </html> |
66 """ |
70 """ |
67 |
71 |
68 ########################################################################################## |
72 ########################################################################################## |
69 |
73 |
|
74 adblockPage_html ="""\ |
|
75 <?xml version="1.0" encoding="UTF-8" ?> |
|
76 <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" |
|
77 "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"> |
|
78 <html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en"> |
|
79 <head> |
|
80 <title>{0}</title> |
|
81 <link rel="icon" href="data:image/png;base64,@FAVICON@" type="image/x-icon" /> |
|
82 <style> |
|
83 body {{ |
|
84 padding: 3em 0em; |
|
85 background: -webkit-gradient(linear, left top, left bottom, from(#85784A), to(#FDFDFD), color-stop(0.5, #FDFDFD)); |
|
86 background-repeat: repeat-x; |
|
87 }} |
|
88 #box {{ |
|
89 background: white; |
|
90 border: 1px solid #85784A; |
|
91 max-width: 600px; |
|
92 height: 50%; |
|
93 padding: 40px; |
|
94 padding-bottom: 10px; |
|
95 margin: auto; |
|
96 border-radius: 0.8em; |
|
97 text-align: center; |
|
98 vertical-align: middle; |
|
99 margin: auto; |
|
100 }} |
|
101 h1 {{ |
|
102 font-size: 130%; |
|
103 font-weight: bold; |
|
104 border-bottom: 1px solid #85784A; |
|
105 margin-bottom: 0px; |
|
106 }} |
|
107 </style> |
|
108 </head> |
|
109 <body> |
|
110 <div id="box"> |
|
111 <img src="data:image/png;base64,@IMAGE@" width="64" height="64"/> |
|
112 <h1>AdBlock Plus</h1> |
|
113 <p>{1}</p> |
|
114 </div> |
|
115 </body> |
|
116 </html> |
|
117 """ |
|
118 |
|
119 ########################################################################################## |
|
120 |
70 startPage_html = """\ |
121 startPage_html = """\ |
71 <?xml version="1.0" encoding="UTF-8" ?> |
122 <?xml version="1.0" encoding="UTF-8" ?> |
72 <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" |
123 <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" |
73 "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"> |
124 "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"> |
74 <html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en"> |
125 <html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en"> |
91 width: 600px; |
142 width: 600px; |
92 margin: 10px auto; |
143 margin: 10px auto; |
93 } |
144 } |
94 |
145 |
95 #header, #search { |
146 #header, #search { |
96 -webkit-border-radius: 0.8em; |
147 border-radius: 0.8em; |
97 padding: 25px; |
148 padding: 25px; |
98 } |
149 } |
99 |
150 |
100 #header { |
151 #header { |
101 background: -webkit-gradient(linear, left top, left bottom, from(#D57E3E), to(#D57E3E), color-stop(0.5, #FFBA89)); |
152 background: -webkit-gradient(linear, left top, left bottom, from(#D57E3E), to(#D57E3E), color-stop(0.5, #FFBA89)); |