Title: Spoiler
Short Description: Spoiler (uses jQuery)
Regular Expression:
Replacement:
Since its interactive, I have a live demo on my board. It's located at this post and is the second MyCode shown.
EDIT: I added two classes.
Short Description: Spoiler (uses jQuery)
Regular Expression:
\[spoiler\](.*?)\[/spoiler\]
Replacement:
<script type="text/javascript" src="http://ajax.googleapis.com/ajax/libs/jquery/1.6.2/jquery.min.js"></script><script type="text/javascript">$(document).ready(function(){$("button.spoilerbutton").click(function(){$("div.spoilerreveal").slideDown("slow");});});</script><button class="spoilerbutton">Reveal Spoiler</button><div style="background:lightblue;border:2px solid teal;padding:3px;display:none;" class="spoilerreveal"><p style="text-align:center;font-weight:bold;">Spoiler:</p>$1</div>
Note: For some reason I can't explain, you need to include the first line, even if jQuery is already included in your theme.Since its interactive, I have a live demo on my board. It's located at this post and is the second MyCode shown.
EDIT: I added two classes.
Please don't PM me for support.
