Skip to content

wxactly/sarcasm-js

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 

Repository files navigation

sarcasm.js

A jQuery plugin that adds sarcasm indicators to the web.

Demo

http://wxactly.com/wxperiments/sarcasm-js/

Usage

Include jQuery and sarcasm.js in your HTML source.

<script src="http://ajax.googleapis.com/ajax/libs/jquery/1.7.0/jquery.min.js"></script>
<script src="sarcasm.js"></script>

Any element with class="sarcasm" applied to it will see its text start to scoff when the page loads. If you would prefer to apply your sarcasm dynamically, you can write something like:

$('#mySnarkyContent').sarcasm(); //Apply ad-hoc sarcasm

Browser Support

It should work across all newer versions of Safari (5+), Chrome, Firefox (5+), IE (10+).

About

A jQuery plugin that adds sarcasm indicators to the web.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published