Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
0 parents
commit 7d5c058
Showing
5 changed files
with
100 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Original file line | Diff line number | Diff line change |
---|---|---|---|
@@ -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' | |||
}); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Original file line | Diff line number | Diff line change |
---|---|---|---|
@@ -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' | |||
}); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Original file line | Diff line number | Diff line change |
---|---|---|---|
@@ -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> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Original file line | Diff line number | Diff line change |
---|---|---|---|
@@ -0,0 +1,4 @@ | |||
jQuery.enrobe = function enrobe(costume) { | |||
for (var i in costume) | |||
jQuery.fn[costume[i]] = jQuery.fn[i]; | |||
}; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Original file line | Diff line number | Diff line change |
---|---|---|---|
@@ -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 |