OLD | NEW |
| (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 })(); | |
OLD | NEW |