clippy.js

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

  • 所有者: clippyjs/clippy.js
  • 平台:
  • 许可证: Other
  • 分类:
  • 主题:
  • 喜欢:
    0
      比较:

Github星跟踪图

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 :)

主要指标

概览
名称与所有者clippyjs/clippy.js
主编程语言JavaScript
编程语言JavaScript (语言数: 2)
平台
许可证Other
所有者活动
创建于2012-05-24 15:24:58
推送于2022-12-01 07:01:22
最后一次提交2013-08-13 02:34:19
发布数0
用户参与
星数2.8k
关注者数86
派生数331
提交数28
已启用问题?
问题数51
打开的问题数40
拉请求数5
打开的拉请求数11
关闭的拉请求数0
项目设置
已启用Wiki?
已存档?
是复刻?
已锁定?
是镜像?
是私有?