Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/clippyjs/clippy.js
Add Clippy or his friends to any website for instant nostalgia.
https://github.com/clippyjs/clippy.js
Last synced: 28 days ago
JSON representation
Add Clippy or his friends to any website for instant nostalgia.
- Host: GitHub
- URL: https://github.com/clippyjs/clippy.js
- Owner: clippyjs
- License: other
- Created: 2012-05-24T15:24:58.000Z (over 12 years ago)
- Default Branch: master
- Last Pushed: 2022-12-01T07:01:22.000Z (almost 2 years ago)
- Last Synced: 2024-04-08T23:20:59.653Z (7 months ago)
- Language: JavaScript
- Homepage: http://www.smore.com/clippy-js
- Size: 17.5 MB
- Stars: 2,819
- Watchers: 89
- Forks: 335
- Open Issues: 50
-
Metadata Files:
- Readme: README.md
- License: MIT-LICENSE.txt
Awesome Lists containing this project
README
[Clippy.JS](http://smore.com/clippy-js)
=========
Add Clippy or his friends to any website for instant nostalgia.
Read more about the project on [our homepage](http://smore.com/clippy-js).Usage: Setup
------------
Add this code to you to your page to enable Clippy.js.```html
...
clippy.load('Merlin', function(agent){
// do anything with the loaded agent
agent.show();
});```
Usage: Actions
--------------
All the agent actions are queued and executed by order, so you could stack them.```javascript
// play a given animation
agent.play('Searching');// play a random animation
agent.animate();// get a list of all the animations
agent.animations();
// => ["MoveLeft", "Congratulate", "Hide", "Pleased", "Acknowledge", ...]// Show text balloon
agent.speak('When all else fails, bind some paper together. My name is Clippy.');// move to the given point, use animation if available
agent.moveTo(100,100);// gesture at a given point (if gesture animation is available)
agent.gestureAt(200,200);// stop the current action in the queue
agent.stopCurrent();// stop all actions in the queue and go back to idle mode
agent.stop();
```Special Thanks
--------------
* The awesome [Cinnamon Software](http://www.cinnamonsoftware.com/) for developing [Double Agent](http://doubleagent.sourceforge.net/)
the program we used to unpack Clippy and his friends!
* Microsoft, for creating clippy :)