I thought to myself that it would be fun to create a program that intentionally utilize Skype emoticons. The following screenshot is the result of the program I put together. It is a restaurant where you can listen, eat, and drink ;)
As you can tell, it is a silly little program. The code for the above screenshot can be found below. Some of the icons I used are secret emoticons that you can lookup.
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
var restaurant = (function($) { | |
var pub = {}, | |
menu = [ "(pi)", "(^)" ], | |
drinks = [ "(coffee)", "(beer)", "(d)" ]; | |
pub.eat = function(call) { | |
if ( call === "(pi)" ) { | |
console.log( "(happy)" ); | |
} else if ( call === "(^)" ) { | |
console.log( "(party)" ); | |
} else if ( call === "(bug)" ) { | |
console.log( "(puke)" ); | |
} | |
}; | |
pub.drink = function(call) { | |
if ( call === "(beer)" || call === "(d)" ) { | |
console.log( "(drunk)" ); | |
} else if ( call === "(coffee)" ) { | |
console.log( "(surprised)" ); | |
} | |
}; | |
pub.listen = function(music) { | |
console.log( "(dance)" ); | |
}; | |
return pub; | |
}(jQuery)); | |
restaurant.listen(); | |
restaurant.eat( "(pi)" ); | |
restaurant.drink( "(beer)" ); | |
restaurant.eat( "(bug)" ); |
If you'd like to come up with your own Skype-enabled JavaScript program, then I'd like to see it. Share it in the comments. Have fun!