Left: | ||
Right: |
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 42 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
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 |
209 var pathArray = window.location.pathname.split("/"); | 204 var pathArray = window.location.pathname.split("/"); |
210 var params = emailTextbox.name + "=" + encodeURIComponent(emailTextbox.value ); | 205 var params = emailTextbox.name + "=" + encodeURIComponent(emailTextbox.value ); |
211 params += "&lang=" + encodeURIComponent(pathArray[1]); | 206 params += "&lang=" + pathArray[1]; |
Sebastian Noack
2015/04/27 18:30:43
Wouldn't that double encode the string, as the pat
saroyanm
2015/04/28 08:24:25
Done.
| |
212 var request = new XMLHttpRequest(); | 207 var request = new XMLHttpRequest(); |
213 request.open("POST", formElement.action, true); | 208 request.open("POST", formElement.action, true); |
214 request.setRequestHeader("Content-Type", "application/x-www-form-urlencoded" ); | 209 request.setRequestHeader("Content-Type", "application/x-www-form-urlencoded" ); |
215 addListener(request, "readystatechange", function() | 210 addListener(request, "readystatechange", function() |
216 { | 211 { |
217 if (request.readyState == 4) | 212 if (request.readyState == 4) |
218 { | 213 { |
219 if (request.status >= 200 && request.status < 300) | 214 if (request.status >= 200 && request.status < 300) |
220 { | 215 { |
221 formElement.setAttribute("class", "success"); | 216 formElement.setAttribute("class", "success"); |
(...skipping 14 matching lines...) Expand all Loading... | |
236 } | 231 } |
237 } | 232 } |
238 }, false); | 233 }, false); |
239 request.send(params); | 234 request.send(params); |
240 return false; | 235 return false; |
241 }, false); | 236 }, false); |
242 } | 237 } |
243 addListener(document, "DOMContentLoaded", contentLoad, false); | 238 addListener(document, "DOMContentLoaded", contentLoad, false); |
244 //]]> | 239 //]]> |
245 </script> | 240 </script> |
LEFT | RIGHT |