Skip to content

Commit

Permalink
First
Browse files Browse the repository at this point in the history
  • Loading branch information
padolsey committed Nov 12, 2011
0 parents commit 7d5c058
Show file tree
Hide file tree
Showing 5 changed files with 100 additions and 0 deletions.
26 changes: 26 additions & 0 deletions 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 changes: 28 additions & 0 deletions 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 changes: 9 additions & 0 deletions 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 changes: 4 additions & 0 deletions enrobe.js
@@ -0,0 +1,4 @@
jQuery.enrobe = function enrobe(costume) {
for (var i in costume)
jQuery.fn[costume[i]] = jQuery.fn[i];
};
33 changes: 33 additions & 0 deletions 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

0 comments on commit 7d5c058

Please sign in to comment.