diff options
| author | Tomas Bzatek <tbzatek@users.sourceforge.net> | 2008-07-27 19:13:28 +0200 |
|---|---|---|
| committer | Tomas Bzatek <tbzatek@users.sourceforge.net> | 2008-07-27 19:13:28 +0200 |
| commit | 510fff156db65795cbf211e7910a67fb316cb404 (patch) | |
| tree | dfbec486ffeab2d6886f9f51863f723a2d5cd574 /templates/scripts-general.js | |
| download | cataract-510fff156db65795cbf211e7910a67fb316cb404.tar.xz | |
Initial commitv0.99.0
Diffstat (limited to 'templates/scripts-general.js')
| -rw-r--r-- | templates/scripts-general.js | 22 |
1 files changed, 22 insertions, 0 deletions
diff --git a/templates/scripts-general.js b/templates/scripts-general.js new file mode 100644 index 0000000..cf558c0 --- /dev/null +++ b/templates/scripts-general.js @@ -0,0 +1,22 @@ +function readCookie() { + var theme = document.cookie; + var theme = unescape(theme); + + return theme; +} + +function writeCookie(theme) { + //FIXME - set expires + var original_cookie = "theme=" + escape(theme); + document.cookie = original_cookie; +} + + +function toggle_div(classname) { + var div = document.getElementById(classname); + if(div.style.display == 'none') { + div.style.display = 'block'; + } else { + div.style.display = 'none'; + } +} |
