summaryrefslogtreecommitdiff
path: root/js/toggle.js
diff options
context:
space:
mode:
Diffstat (limited to 'js/toggle.js')
-rw-r--r--js/toggle.js8
1 files changed, 8 insertions, 0 deletions
diff --git a/js/toggle.js b/js/toggle.js
new file mode 100644
index 0000000..884e0bf
--- /dev/null
+++ b/js/toggle.js
@@ -0,0 +1,8 @@
+// @license http://www.wtfpl.net/txt/copying/" WTFPL
+
+function toggle(divid) {
+ var cont = document.getElementById(divid);
+ cont.style.display = cont.style.display == 'none' ? 'block' : 'none';
+}
+
+// @license-end