Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

First

  • Loading branch information...
commit 7d5c058b634bc750071d1362a26b2c7987f771e7 0 parents
James Padolsey authored
26 costumes/pirate.js
@@ -0,0 +1,26 @@
+/**
+ * Pirate costume
+ */
+
+jQuery.enrobe({
+ val: 'loot',
+ empty: 'pillage',
+ end: 'stern',
+ get: 'ye',
+ bind: 'lookout',
+ unbind: 'swab',
+ siblings: 'hearties',
+ jquery: 'jack',
+ remove: 'maroon',
+ detach: 'danceTheHempenJig',
+ animate: 'clapOfThunder',
+ replaceWith: 'comeAbout',
+ size: 'fathoms',
+ ready: 'ahoy',
+ children: 'fleet',
+ parent: 'provost',
+ parents: 'provosts',
+ unwrap: 'mutiny',
+ trigger: 'blowTheManDown',
+ stop: 'heaveTo'
+});
28 costumes/qe2.js
@@ -0,0 +1,28 @@
+/**
+ * The Queen of The Commonwealth Realms
+ */
+
+jQuery.enrobe({
+ val: 'gin',
+ on: 'orn',
+ off: 'orf',
+ children: 'heirs',
+ empty: 'killOrfHeirs',
+ parents: 'nuisances',
+ parent: 'nuisance',
+ remove: 'killOrf',
+ detach: 'orphan',
+ siblings: 'subordinates',
+ addClass: 'dub',
+ removeClass: 'banish',
+ append: 'appendToOne',
+ prepend: 'prependToOne',
+ appendTo: 'appendOneTo',
+ prependTo: 'prepentOneTo',
+ stop: 'hesitate',
+ animate: 'excite',
+ bind: 'regard',
+ unbind: 'disregard',
+ delegate: 'drinkTea',
+ undelegate: 'refillTea'
+});
9 enrobe.html
@@ -0,0 +1,9 @@
+<!doctype html>
+<meta charset="utf-8" />
+<title>Enrobe - jQuery</title>
+
+<script src="http://code.jquery.com/jquery-1.7.js"></script>
+<script src="enrobe.js"></script>
+
+<!-- Costume: -->
+<script src="costumes/pirate.js"></script>
4 enrobe.js
@@ -0,0 +1,4 @@
+jQuery.enrobe = function enrobe(costume) {
+ for (var i in costume)
+ jQuery.fn[costume[i]] = jQuery.fn[i];
+};
33 readme.md
@@ -0,0 +1,33 @@
+## jQuery costume party
+
+*jQuery shouldn't be dull and lacking in character.*
+
+jQuery costumes enable you to inject cultural variety into your jQuery.
+
+Example, using `costumes/qe2.js`:
+
+ jQuery(thing)
+ .appendOneTo('body')
+ .heirs()
+ .killOrf()
+ .nuisance()
+ .disregard('submit');
+
+Which would be the same as:
+
+ jQuery(thing
+ .appendTo('body')
+ .children()
+ .remove()
+ .parent()
+ .unbind('submit');
+
+Contributions are welcome.
+
+### Wishlist
+
+ * Chuck Norris
+ * The President
+ * The slacker
+ * The Teacher's pet
+ * Shrek
Please sign in to comment.
Something went wrong with that request. Please try again.