diff options
author | wukong <rebirthmonkey@gmail.com> | 2015-11-23 17:48:48 +0100 |
---|---|---|
committer | wukong <rebirthmonkey@gmail.com> | 2015-11-23 17:48:48 +0100 |
commit | fca74d4bc3569506a6659880a89aa009dc11f552 (patch) | |
tree | 4cefd06af989608ea8ebd3bc6306889e2a1ad175 /moon-abe/pbc-0.5.14/doc/find_selflink.js | |
parent | 840ac3ebca7af381132bf7e93c1e4c0430d6b16a (diff) |
moon-abe cleanup
Change-Id: Ie1259856db03f0b9e80de3e967ec6bd1f03191b3
Diffstat (limited to 'moon-abe/pbc-0.5.14/doc/find_selflink.js')
-rw-r--r-- | moon-abe/pbc-0.5.14/doc/find_selflink.js | 37 |
1 files changed, 0 insertions, 37 deletions
diff --git a/moon-abe/pbc-0.5.14/doc/find_selflink.js b/moon-abe/pbc-0.5.14/doc/find_selflink.js deleted file mode 100644 index db436db7..00000000 --- a/moon-abe/pbc-0.5.14/doc/find_selflink.js +++ /dev/null @@ -1,37 +0,0 @@ -// From my own website(!) -//TODO: only do this for links in the table of contents menu - -function find_selflink() { - var a = document.links; - var i = 0; - while (i < a.length) { - if (a[i].href == document.URL) { - var c; - var j; - var s_new = document.createElement("span"); - s_new.className = "currentlink"; - c = a[i].childNodes; - for (j=0; j<c.length; j++) { - s_new.appendChild(c[j]); - } - a[i].parentNode.replaceChild(s_new, a[i]); - } else { - i++; - } - - /* - if (a[i].href == document.URL) { - a[i].className = "currentlink"; - if (0) { - var s_new = document.createElement("span"); - s_new.className = "currentlink"; - s_new.appendChild(a[i]); - a[i].parentNode.replaceChild(s_new, a[i]); - } - } - i++; - */ - } -} - -find_selflink(); |