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

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

Issue 29565748: Issue 5834 - Removed learn more section from the adblockplus.org homepage (Closed) Base URL: https://bitbucket.org/adblockplus/adblockplus.org
Patch Set: Removed more learn more artifacts Created Oct. 6, 2017, 10:20 a.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 | « static/css/index-mobile.css ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
(Empty)
1 (function()
2 {
3 var visibleTab;
4 var container = document.getElementById("more-container");
5
6 window.toggleMore = function()
7 {
8 if (container.className == "hidden")
9 container.className = visibleTab || getDefaultTab();
10 else
11 container.className = "hidden";
12 }
13
14 window.showTab = function(button)
15 {
16 var id = button.id.substr(5);
17 container.className = id;
18 visibleTab = id;
19 }
20
21 function getDefaultTab()
22 {
23 var content = document.getElementById("content");
24 var ua = content.className.match(/ua\-([^\s]+)/);
25 visibleTab = ua && ua[1] || "firefox";
26 return visibleTab;
27 }
28 })();
OLDNEW
« no previous file with comments | « static/css/index-mobile.css ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld