clippy.js

Add Clippy or his friends to any website for instant nostalgia.

  • Owner: clippyjs/clippy.js
  • Platform:
  • License:: Other
  • Category::
  • Topic:
  • Like:
    0
      Compare:

Github stars Tracking Chart

Clippy.JS

Add Clippy or his friends to any website for instant nostalgia.
Read more about the project on our homepage.

Usage: Setup

Add this code to you to your page to enable Clippy.js.

<!-- Add the stylesheet to the head -->
<link rel="stylesheet" type="text/css" href="clippy.css" media="all">

...

<!-- Add these scripts to  the bottom of the page -->
<!-- jQuery 1.7+ -->
<script src="jquery.1.7.min.js"></script>

<!-- Clippy.js -->
<script src="clippy.min.js"></script>

<!-- Init script -->
<script type="text/javascript">
    clippy.load('Merlin', function(agent){
        // do anything with the loaded agent
        agent.show();
    });
</script>

Usage: Actions

All the agent actions are queued and executed by order, so you could stack them.

// 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 for developing Double Agent
    the program we used to unpack Clippy and his friends!
  • Microsoft, for creating clippy :)

Main metrics

Overview
Name With Ownerclippyjs/clippy.js
Primary LanguageJavaScript
Program languageJavaScript (Language Count: 2)
Platform
License:Other
所有者活动
Created At2012-05-24 15:24:58
Pushed At2022-12-01 07:01:22
Last Commit At2013-08-13 02:34:19
Release Count0
用户参与
Stargazers Count2.8k
Watchers Count86
Fork Count331
Commits Count28
Has Issues Enabled
Issues Count51
Issue Open Count40
Pull Requests Count5
Pull Requests Open Count11
Pull Requests Close Count0
项目设置
Has Wiki Enabled
Is Archived
Is Fork
Is Locked
Is Mirror
Is Private