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

Side by Side Diff: anwiki/_override-static/global/global/js/index.js

Issue 10295007: Added "learn more" toggle and area for platform-specific content (Closed)
Patch Set: Created April 15, 2013, 1:49 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 | « anwiki/_override-static/global/global/css/main.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()
Felix Dahlke 2013/04/22 14:55:56 I presume that it won't be possible to expand the
2 {
3 var visibleTab;
4 var 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
29 function init()
30 {
31 container = document.getElementById("more-container");
32 }
33
34 init();
35 })();
OLDNEW
« no previous file with comments | « anwiki/_override-static/global/global/css/main.css ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld