OLD | NEW |
(Empty) | |
| 1 title=Adblock Plus has been uninstalled |
| 2 template=simple |
| 3 |
| 4 {% set reasons = [ |
| 5 ("1v0", "reason-not-installed", "I didn't install Adblock Plus."), |
| 6 ("2v0", "reason-slowing-down", "Adblock Plus slowed down my browser."), |
| 7 ("3v0", "reason-acceptable-ads", "I don't like the Acceptable Ads program.")
, |
| 8 ("4v0", "reason-see-ads", "Adblock Plus didn't block all ads."), |
| 9 ("5v0", "reason-better-adblocker", "I found better ad blocking software."), |
| 10 ("6v0", "reason-break-websites", "Adblock Plus breaks websites that I visit.
") |
| 11 ] %} |
| 12 |
| 13 <head> |
| 14 <meta name="robots" content="noindex" /> |
| 15 |
| 16 <script type="text/javascript"> |
| 17 (function() |
| 18 { |
| 19 function init() |
| 20 { |
| 21 var form = document.getElementById("reasons-form"); |
| 22 window.location.search.substr(1).split("&").forEach(function(param) |
| 23 { |
| 24 if (!/.=./.test(param)) |
| 25 return; |
| 26 |
| 27 var paramSplit = param.split("="); |
| 28 var input = document.createElement("input"); |
| 29 input.setAttribute("type", "hidden"); |
| 30 input.setAttribute("name", paramSplit[0]); |
| 31 input.setAttribute("value", paramSplit[1]); |
| 32 form.appendChild(input); |
| 33 }); |
| 34 |
| 35 document.getElementById("reason-other").addEventListener("change", |
| 36 function() |
| 37 { |
| 38 var textArea = document.getElementById("reason-other-input"); |
| 39 textArea.hasAttribute("class") ? textArea.removeAttribute("class") : |
| 40 textArea.setAttribute("class", "hidden"); |
| 41 }, false); |
| 42 |
| 43 document.getElementById("submit-form").addEventListener("click", |
| 44 function(event) |
| 45 { |
| 46 if (!document.querySelector("ul input:checked")) |
| 47 { |
| 48 event.preventDefault(); |
| 49 form.setAttribute("class", "error"); |
| 50 } |
| 51 }, false); |
| 52 } |
| 53 document.addEventListener("DOMContentLoaded", init, false); |
| 54 })(); |
| 55 </script> |
| 56 </head> |
| 57 <section class="highlighted"> |
| 58 <h1>{{"Please select the reason(s) why you uninstalled Adblock Plus:"|translat
e("reasons-header", "Form heading")}}</h1> |
| 59 <form id="reasons-form" action="uninstall-abp-submit" method="post"> |
| 60 <ul> |
| 61 {%- for reasonId, stringId, value in reasons|shuffle %} |
| 62 <li> |
| 63 <label> |
| 64 <input type="checkbox" name="reason" value="{{reasonId}}" /> |
| 65 <span>{{value|translate(stringId, "One of the listed uninstallation re
ason")}}</span> |
| 66 </label> |
| 67 </li> |
| 68 {%- endfor %} |
| 69 <li> |
| 70 <label> |
| 71 <input id="reason-other" type="checkbox" name="reason" value="0v0" /> |
| 72 <span>{{"Other, namely..."|translate("reason-other", "Last uninstallat
ion reason")}}</span> |
| 73 </label> |
| 74 <textarea id="reason-other-input" class="hidden" name="reasonOther" plac
eholder="{{"Please explain why you are uninstalling Adblock Plus"|translate("rea
son-other-placeholder", "Textarea placeholder text, appears after selecting 'Oth
er, namely...' option")}}"></textarea> |
| 75 </li> |
| 76 </ul> |
| 77 <button id="submit-form" type="submit">{{"Submit"|translate("submit", "Submi
t button text")}}</button> |
| 78 <span class="error-label">{{"Please select at least one of the options above
"|translate("error-msg", "Error message, is being shown after submission if no i
tem selected")}}</span> |
| 79 </form> |
| 80 <p class="disclaimer">{{"By clicking Submit, you are sending your response to
Adblock Plus. Please see our <a href='https://adblockplus.org/privacy'>privacy p
olicy</a>."|translate("disclaimer", "Disclaimer below form")}}</p> |
| 81 </section> |
OLD | NEW |