diff options
author | Mark Lentczner <markl@glyphic.com> | 2010-07-15 23:53:01 +0000 |
---|---|---|
committer | Mark Lentczner <markl@glyphic.com> | 2010-07-15 23:53:01 +0000 |
commit | b67678234917d61b8393fa9b75092bfa2c399ab4 (patch) | |
tree | f5bdf58b5af5e20ddbfbf33c37b1419a20bd2f9b /html/haddock-util.js | |
parent | 3811494e06613f472c28a00ec3de00b50490f143 (diff) |
added two new themes and rough css switcher
Diffstat (limited to 'html/haddock-util.js')
-rw-r--r-- | html/haddock-util.js | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/html/haddock-util.js b/html/haddock-util.js index 364081f0..227ac4f8 100644 --- a/html/haddock-util.js +++ b/html/haddock-util.js @@ -137,3 +137,16 @@ function setSynopsis(filename) { parent.window.synopsis.location = filename; } } + + +function setActiveStyleSheet(href) { + var i, a, main; + for(i=0; (a = document.getElementsByTagName("link")[i]); i++) { + if(a.getAttribute("rel").indexOf("style") != -1 + && a.getAttribute("title")) { + a.disabled = true; + if(a.getAttribute("href") == href) a.disabled = false; + //a.disabled = a.getAttribute("title") != title; + } + } +} |