summaryrefslogtreecommitdiffstats
path: root/1.0/sangria-slf4j/apidocs/script.js
diff options
context:
space:
mode:
authorTavian Barnes <tavianator@tavianator.com>2014-09-16 10:17:45 -0400
committerTavian Barnes <tavianator@tavianator.com>2014-09-16 10:17:45 -0400
commit9b2a4b8646f2baea660add10c18b191358bc60bf (patch)
tree8f649030eb6d9dae8dc39fc66995ccb95fc08cb3 /1.0/sangria-slf4j/apidocs/script.js
parent1f42a955a8d4e078d7e0526f5c31dc7a71ef90c0 (diff)
downloadsangria-9b2a4b8646f2baea660add10c18b191358bc60bf.tar.xz
Add version 1.0 site.
Diffstat (limited to '1.0/sangria-slf4j/apidocs/script.js')
-rw-r--r--1.0/sangria-slf4j/apidocs/script.js30
1 files changed, 30 insertions, 0 deletions
diff --git a/1.0/sangria-slf4j/apidocs/script.js b/1.0/sangria-slf4j/apidocs/script.js
new file mode 100644
index 0000000..b346356
--- /dev/null
+++ b/1.0/sangria-slf4j/apidocs/script.js
@@ -0,0 +1,30 @@
+function show(type)
+{
+ count = 0;
+ for (var key in methods) {
+ var row = document.getElementById(key);
+ if ((methods[key] & type) != 0) {
+ row.style.display = '';
+ row.className = (count++ % 2) ? rowColor : altColor;
+ }
+ else
+ row.style.display = 'none';
+ }
+ updateTabs(type);
+}
+
+function updateTabs(type)
+{
+ for (var value in tabs) {
+ var sNode = document.getElementById(tabs[value][0]);
+ var spanNode = sNode.firstChild;
+ if (value == type) {
+ sNode.className = activeTableTab;
+ spanNode.innerHTML = tabs[value][1];
+ }
+ else {
+ sNode.className = tableTab;
+ spanNode.innerHTML = "<a href=\"javascript:show("+ value + ");\">" + tabs[value][1] + "</a>";
+ }
+ }
+}