Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/joshbuddy/spoiler-alert

SPOILER ALERT! A happy little bit of javascript to hide spoilers on your site.
https://github.com/joshbuddy/spoiler-alert

Last synced: 5 days ago
JSON representation

SPOILER ALERT! A happy little bit of javascript to hide spoilers on your site.

Awesome Lists containing this project

README

        

# 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:

```javascript
spoilerAlert('spoiler, .spoiler');
```

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

```javascript
spoilerAlert('spoiler, .spoiler', {max: 10, partial: 4});
```

Have fun! Play with it!

## Demo

Take a look at [this](http://joshbuddy.github.com/spoiler-alert/) to see it in action!

## Tested browsers

* Chrome
* Safari
* Firefox
* Mobile Safari