Skip to content

Instantly share code, notes, and snippets.

@wjcrowcroft
wjcrowcroft / jquery-revealer.js
Created Jan 30, 2012
jQuery Revealer Plugin - a stupid little jQuery (JavaScript) plugin to make simple revealer links (e.g. '[view]') that expand text/HTML content on-click
View jquery-revealer.js
/**
* jQuery Revealer plugin
* Joss Crowcroft / @josscrowcroft
*
* Replaces an element containing text or HTML with a link that reveals the
* original contents when clicked.
*
* Super simple, no options or anything, but could be added easily.
*
* Example:
@wjcrowcroft
wjcrowcroft / json.js
Created Oct 6, 2011 — forked from millermedeiros/json.js
RequireJS plugin for loading JSON files
View json.js
/*!
* RequireJS plugin for loading JSON files
* - depends on Text plugin and it was HEAVILY "inspired" by it as well.
*
* IMPORTANT: it only works on r.js optimizer after version 0.26+ 20011/09/27
*
* @author Miller Medeiros
* @version 0.0.1 (2011/06/10)
* Released under the WTFPL <http://sam.zoy.org/wtfpl/>
*/