LEFT | RIGHT |
1 <meta name="title" content="Adblock Browser Beta Launch" /> | |
2 <meta property="og:title" content="Adblock Browser Beta Launch" /> | |
3 <meta name="description" content="Want Adblock Browser for your smartphone or ta
blet? Join the Adblock Browser for Android Beta Google+ community." /> | |
4 <meta property="og:description" content="Want Adblock Browser for your smartphon
e or tablet? Join the Adblock Browser for Android Beta Google+ community." /> | |
5 | |
6 <style type="text/css"> | 1 <style type="text/css"> |
7 #content * | 2 #content * |
8 { | 3 { |
9 box-sizing: content-box; | 4 box-sizing: content-box; |
10 } | 5 } |
11 | 6 |
12 #content h1 | 7 #content h1 |
13 { | 8 { |
14 margin-bottom: 28px; | 9 margin-bottom: 28px; |
15 } | 10 } |
(...skipping 118 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
134 if ("addEventListener" in obj) | 129 if ("addEventListener" in obj) |
135 { | 130 { |
136 obj.addEventListener(type, function(ev) | 131 obj.addEventListener(type, function(ev) |
137 { | 132 { |
138 if (listener(ev) === false) | 133 if (listener(ev) === false) |
139 ev.preventDefault(); | 134 ev.preventDefault(); |
140 }, useCapture); | 135 }, useCapture); |
141 } | 136 } |
142 else | 137 else |
143 { | 138 { |
| 139 // IE 8 |
144 if (type == "DOMContentLoaded") | 140 if (type == "DOMContentLoaded") |
145 type = "readystatechange"; | 141 type = "readystatechange"; |
146 | 142 |
147 type = "on" + type; | 143 type = "on" + type; |
148 // IE 8 | |
149 if ("attachEvent" in obj) | 144 if ("attachEvent" in obj) |
150 { | 145 { |
151 obj.attachEvent(type, function() | 146 obj.attachEvent(type, function() |
152 { | 147 { |
153 if (document.readyState == "complete" && listener(event) === false) | 148 if (document.readyState == "complete" && listener(event) === false) |
154 event.returnValue = false; | 149 event.returnValue = false; |
155 }); | 150 }); |
156 } | 151 } |
157 else | 152 else |
158 { | 153 { |
(...skipping 40 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
199 | 194 |
200 addListener(document.getElementById("subscribe-form"), "submit", function() | 195 addListener(document.getElementById("subscribe-form"), "submit", function() |
201 { | 196 { |
202 var formElement = document.getElementById("subscribe-form"); | 197 var formElement = document.getElementById("subscribe-form"); |
203 if (!window.XMLHttpRequest) | 198 if (!window.XMLHttpRequest) |
204 { | 199 { |
205 formElement.submit(); | 200 formElement.submit(); |
206 return false; | 201 return false; |
207 } | 202 } |
208 | 203 |
| 204 var pathArray = window.location.pathname.split("/"); |
209 var params = emailTextbox.name + "=" + encodeURIComponent(emailTextbox.value
); | 205 var params = emailTextbox.name + "=" + encodeURIComponent(emailTextbox.value
); |
| 206 params += "&lang=" + pathArray[1]; |
210 var request = new XMLHttpRequest(); | 207 var request = new XMLHttpRequest(); |
211 request.open("POST", formElement.action, true); | 208 request.open("POST", formElement.action, true); |
212 request.setRequestHeader("Content-Type", "application/x-www-form-urlencoded"
); | 209 request.setRequestHeader("Content-Type", "application/x-www-form-urlencoded"
); |
213 addListener(request, "readystatechange", function() | 210 addListener(request, "readystatechange", function() |
214 { | 211 { |
215 if (request.readyState == 4) | 212 if (request.readyState == 4) |
216 { | 213 { |
217 if (request.status >= 200 && request.status < 300) | 214 if (request.status >= 200 && request.status < 300) |
218 { | 215 { |
219 formElement.setAttribute("class", "success"); | 216 formElement.setAttribute("class", "success"); |
(...skipping 14 matching lines...) Expand all Loading... |
234 } | 231 } |
235 } | 232 } |
236 }, false); | 233 }, false); |
237 request.send(params); | 234 request.send(params); |
238 return false; | 235 return false; |
239 }, false); | 236 }, false); |
240 } | 237 } |
241 addListener(document, "DOMContentLoaded", contentLoad, false); | 238 addListener(document, "DOMContentLoaded", contentLoad, false); |
242 //]]> | 239 //]]> |
243 </script> | 240 </script> |
LEFT | RIGHT |