«

»

Jan 19

Spoiler Alert!

Share

After writing a few posts that involve things about games I found myself wanting to add a “spoiler hider” like the kind often found on game-related forums. They’re a very nice little way of hiding things and letting the reader look at them when/if they want to.

So, I made my own plugin and I’m kindly sharing it.
When I have a little more time I’ll write a little guide on how I made it and how to make a simple little WordPress plugin.

Here it is!

Spoiler

Let’s Share Some Code

If you just want to use the plugin, I’ll add a downloadable .zip that you can simply upload to WordPress to use.
For those more interested in how it works, here’s the code, also hidden in spoiler tags just to show off another possible use of them.

wp-spoiler.php

Spoiler

spoiler.css

Spoiler

toggleSpoiler.js

Spoiler

Share

Leave a Reply

Your email address will not be published. Required fields are marked *

You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>