summaryrefslogtreecommitdiff
path: root/static/f
diff options
context:
space:
mode:
authorYorhel <git@yorhel.nl>2008-12-27 10:57:33 +0100
committerYorhel <git@yorhel.nl>2008-12-27 10:57:33 +0100
commit6713e044e0b1a0a9dbb61da7a2ce6f252dc95f12 (patch)
tree3c371eb3cd920316fdcb502e7a66a4e875847954 /static/f
parent89a7b892aafe5e4138d62bf37c877d186d7dfcc8 (diff)
[spoiler] tag produces mouseover-style spoilers instead of ROT13
Diffstat (limited to 'static/f')
-rw-r--r--static/f/script.js8
1 files changed, 8 insertions, 0 deletions
diff --git a/static/f/script.js b/static/f/script.js
index 6726d311..093bcb74 100644
--- a/static/f/script.js
+++ b/static/f/script.js
@@ -375,6 +375,14 @@ DOMLoad(function() {
if(x('jt_select'))
jtInit();
+ // spoiler tags
+ l = document.getElementsByTagName('b');
+ for(i=0;i<l.length;i++)
+ if(l[i].className == 'spoiler') {
+ l[i].onmouseover = function() { this.className = 'spoiler_shown' };
+ l[i].onmouseout = function() { this.className = 'spoiler' };
+ }
+
// forms.js
if(x('categories'))
catLoad();