diff options
author | Jon Bergli Heier <snakebite@jvnv.net> | 2010-01-28 00:36:38 +0100 |
---|---|---|
committer | Jon Bergli Heier <snakebite@jvnv.net> | 2010-01-28 00:36:38 +0100 |
commit | 708125327434ec851100f2df1dbbaca241317b7f (patch) | |
tree | bd76e66b3a11b8c9fb83b9adbca7032c660377f4 /static/view.js | |
parent | 990a5db0a543c4d69a58ee8a0046adee1c9efbc5 (diff) |
Implemented dynamic highlighting of lines.
This currently only works when opening URLs with an anchor.
Diffstat (limited to 'static/view.js')
-rw-r--r-- | static/view.js | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/static/view.js b/static/view.js new file mode 100644 index 0000000..c855609 --- /dev/null +++ b/static/view.js @@ -0,0 +1,5 @@ +window.onload = function() { + var line = 'code' + document.location.hash.substr(1); + var codeline = document.getElementById(line); + codeline.className = 'selected'; +} |