From 7d5c058b634bc750071d1362a26b2c7987f771e7 Mon Sep 17 00:00:00 2001 From: James Padolsey Date: Sat, 12 Nov 2011 21:34:47 +0000 Subject: [PATCH] First --- costumes/pirate.js | 26 ++++++++++++++++++++++++++ costumes/qe2.js | 28 ++++++++++++++++++++++++++++ enrobe.html | 9 +++++++++ enrobe.js | 4 ++++ readme.md | 33 +++++++++++++++++++++++++++++++++ 5 files changed, 100 insertions(+) create mode 100644 costumes/pirate.js create mode 100644 costumes/qe2.js create mode 100644 enrobe.html create mode 100644 enrobe.js create mode 100644 readme.md diff --git a/costumes/pirate.js b/costumes/pirate.js new file mode 100644 index 0000000..d5cad41 --- /dev/null +++ b/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' +}); \ No newline at end of file diff --git a/costumes/qe2.js b/costumes/qe2.js new file mode 100644 index 0000000..ed0a008 --- /dev/null +++ b/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' +}); \ No newline at end of file diff --git a/enrobe.html b/enrobe.html new file mode 100644 index 0000000..1b2a428 --- /dev/null +++ b/enrobe.html @@ -0,0 +1,9 @@ + + +Enrobe - jQuery + + + + + + \ No newline at end of file diff --git a/enrobe.js b/enrobe.js new file mode 100644 index 0000000..6eaedd9 --- /dev/null +++ b/enrobe.js @@ -0,0 +1,4 @@ +jQuery.enrobe = function enrobe(costume) { + for (var i in costume) + jQuery.fn[costume[i]] = jQuery.fn[i]; +}; \ No newline at end of file diff --git a/readme.md b/readme.md new file mode 100644 index 0000000..e4b641b --- /dev/null +++ b/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