Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP

SPOILER ALERT! A happy little jquery plugin to hide spoilers on your site.

branch: master

This branch is 0 commits ahead and 0 commits behind master

Fetching latest commit…

Cannot retrieve the latest commit at this time

README.md

SPOILER ALERT!

Don't spoil it! Hide copy and images with a bit of SVG blur. Taste on mouseover. Eat on click.

Do you publish spoilers? Do you wish you could have them on your page in a way that wasn't fucking rude? With Spoiler Alert! you can! Hide spoilers with a bit of blur.

Usage

To make your site spoiler free, simply include spoiler.js, then, add this somewhere:

$('spoiler, .spoiler').spoilerAlert()

To control the maximum and partial blurs, you can pass arguments:

$('spoiler, .spoiler').spoilerAlert({max: 10, partial: 4})

Have fun! Play with it!

Demo

Take a look at this to see it in action!

Tested browsers

  • Chrome
  • Safari
  • Firefox
  • Mobile Safari
Something went wrong with that request. Please try again.