Created
March 24, 2011 21:07
-
-
Save adrianrodriguez/885891 to your computer and use it in GitHub Desktop.
This file contains hidden or 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
//Yannick's lack of interest in the Captain America movie just got him slapped, epic style: | |
$(function(){ | |
$('#adrian').slap(function(){ // initiate slap | |
$("#yannick").face(10000); // slow motion slap | |
return true; // loop that sucka << this may be wrong, but the animation don't gotta stop.... | |
}); | |
}); |
@nathansmith lol. It's all good.
By the way @adrianrodriguez you need to put comments (//) for line #1. That sort of thing will give you errors in your code.
@ylynfatt they will get the picture.... :P
Whatever, I can do this with CSS
adrian{
slap: yannick always;
/* Shorthand for:
slap-target: yannick;
slapping-mode: always;
*/
}
(hmmm... git doesn't seem to know the syntax of my made up properties)
or there's always good ole' php:
slap("Yannick");
?>
@ChrisMBarr haha good one. Perhaps you should have made adrian into #adrian.
@JoshChris shouldn't you have created a PHP class called Person and then define a 'slap' method/function for that class? Then create an instance of the Person class and assign it to $adrian and call the slap method on that object? :P
Or a little python
while (True):
adrian.slap(yannick)
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Pssh. You don't even need jQuery for this!
Just do...
Infinite loop of slappy goodness.