Rietveld Code Review Tool
Help | Bug tracker | Discussion group | Source code

Side by Side Diff: static/js/main.js

Issue 29552657: Issue 5749 - Remove iOS and android support from adblockbrowser.org (Closed) Base URL: https://hg.adblockplus.org/web.adblockbrowser.org
Patch Set: Created Sept. 22, 2017, 1:03 p.m.
Left:
Right:
Use n/p to move between diff chunks; N/P to move between comments.
Jump to:
View unified diff | Download patch
« no previous file with comments | « pages/ios-support/view-whitelisted-websites.md ('k') | templates/default.tmpl » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 document.getElementById("hamburger").addEventListener("click", function(event)
2 {
3 event.preventDefault();
4 document.querySelector("nav").classList.toggle("closed");
5 }, false);
6
7 document.getElementById("language").addEventListener("change", function() 1 document.getElementById("language").addEventListener("change", function()
8 { 2 {
9 window.location = this.value; 3 window.location = this.value;
10 }, false); 4 }, false);
11 5
12 document.querySelector("#email-me a").addEventListener("click", function(event) 6 document.querySelector("#email-me a").addEventListener("click", function(event)
13 { 7 {
14 event.preventDefault(); 8 event.preventDefault();
15 document.body.setAttribute("class", "modal"); 9 document.body.setAttribute("class", "modal");
16 }, false); 10 }, false);
(...skipping 24 matching lines...) Expand all
41 else 35 else
42 modal.setAttribute("class", "error"); 36 modal.setAttribute("class", "error");
43 } 37 }
44 }; 38 };
45 request.onerror = function() 39 request.onerror = function()
46 { 40 {
47 document.getElementById("modal").setAttribute("class", "error"); 41 document.getElementById("modal").setAttribute("class", "error");
48 }; 42 };
49 request.send(textbox.name + "=" + encodeURIComponent(textbox.value)); 43 request.send(textbox.name + "=" + encodeURIComponent(textbox.value));
50 }, false); 44 }, false);
OLDNEW
« no previous file with comments | « pages/ios-support/view-whitelisted-websites.md ('k') | templates/default.tmpl » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld