Left: | ||
Right: |
LEFT | RIGHT |
---|---|
1 title=Adblock Plus has been uninstalled | 1 title=Adblock Plus has been uninstalled |
2 template=simple | 2 template=simple |
3 | 3 |
4 {% set reasons = [ | 4 {% set reasons = [ |
5 ("1v0", "reason-not-installed", "I didn't install Adblock Plus."), | 5 ("1v0", "reason-not-installed", "I didn't install Adblock Plus."), |
6 ("2v0", "reason-slowing-down", "Adblock Plus slowed down my browser."), | 6 ("2v0", "reason-slowing-down", "Adblock Plus slowed down my browser."), |
7 ("3v0", "reason-acceptable-ads", "I don't like the Acceptable Ads program."), | 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."), | 8 ("4v0", "reason-see-ads", "Adblock Plus didn't block all ads."), |
9 ("5v0", "reason-better-adblocker", "I found better ad blocking software."), | 9 ("5v0", "reason-better-adblocker", "I found better ad blocking software."), |
10 ("6v0", "reason-break-websites", "Adblock Plus breaks websites that I visit.") | 10 ("6v0", "reason-break-websites", "Adblock Plus breaks websites that I visit.") |
(...skipping 31 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
42 { | 42 { |
43 var randomIndex = Math.floor(Math.random() * (reasons.length -1)); | 43 var randomIndex = Math.floor(Math.random() * (reasons.length -1)); |
44 var reasonElement = reasons.splice(randomIndex, 1)[0]; | 44 var reasonElement = reasons.splice(randomIndex, 1)[0]; |
45 reasonsContainer.appendChild(reasonElement); | 45 reasonsContainer.appendChild(reasonElement); |
46 } | 46 } |
47 | 47 |
48 var reasonOtherCheckbox = document.getElementById("reason-other"); | 48 var reasonOtherCheckbox = document.getElementById("reason-other"); |
49 var reasonOther = document.getElementById("reason-other-container"); | 49 var reasonOther = document.getElementById("reason-other-container"); |
50 reasonOtherCheckbox.addEventListener("change", function() | 50 reasonOtherCheckbox.addEventListener("change", function() |
51 { | 51 { |
52 reasonOther.classList.toggle("hidden") | 52 reasonOther.classList.toggle("hidden"); |
Sebastian Noack
2015/12/14 14:51:40
Nit: Missing semicolon
saroyanm
2015/12/14 14:53:19
Ahh, sorry for that, Done.
| |
53 }, false); | 53 }, false); |
54 | 54 |
55 var reasonOtherInput = document.getElementById("reason-other-input"); | 55 var reasonOtherInput = document.getElementById("reason-other-input"); |
56 var maxLength = reasonOtherInput.getAttribute("maxlength"); | 56 var maxLength = reasonOtherInput.getAttribute("maxlength"); |
57 var charCounter = document.getElementById("characters-countdown"); | 57 var charCounter = document.getElementById("characters-countdown"); |
58 charCounter.textContent = maxLength; | 58 charCounter.textContent = maxLength; |
59 reasonOtherInput.addEventListener("keyup", function() | 59 reasonOtherInput.addEventListener("keyup", function() |
60 { | 60 { |
61 charCounter.textContent = maxLength - reasonOtherInput.value.length; | 61 charCounter.textContent = maxLength - reasonOtherInput.value.length; |
62 }, false); | 62 }, false); |
(...skipping 43 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
106 </div> | 106 </div> |
107 </li> | 107 </li> |
108 </ul> | 108 </ul> |
109 <button id="submit-form">{{"Submit"|translate("submit", "Submit button text" )}}</button> | 109 <button id="submit-form">{{"Submit"|translate("submit", "Submit button text" )}}</button> |
110 <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> | 110 <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> |
111 </form> | 111 </form> |
112 <p class="disclaimer"> | 112 <p class="disclaimer"> |
113 {{"By clicking Submit, you are sending your response to Adblock Plus. Please see our <a href='/privacy'>privacy policy</a>."|translate("disclaimer", "Discla imer below form")}} | 113 {{"By clicking Submit, you are sending your response to Adblock Plus. Please see our <a href='/privacy'>privacy policy</a>."|translate("disclaimer", "Discla imer below form")}} |
114 </p> | 114 </p> |
115 </section> | 115 </section> |
LEFT | RIGHT |