Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up

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

NotificationsYou must be signed in to change notification settings

clippyjs/clippy.js

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

28 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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

Usage: Setup

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

<!-- Add the stylesheet to the head --><linkrel="stylesheet"type="text/css"href="clippy.css"media="all">...<!-- Add these scripts to  the bottom of the page --><!-- jQuery 1.7+ --><scriptsrc="jquery.1.7.min.js"></script><!-- Clippy.js --><scriptsrc="clippy.min.js"></script><!-- Init script --><scripttype="text/javascript">clippy.load('Merlin',function(agent){// do anything with the loaded agentagent.show();});</script>

Usage: Actions

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

// play a given animationagent.play('Searching');// play a random animationagent.animate();// get a list of all the animationsagent.animations();// => ["MoveLeft", "Congratulate", "Hide", "Pleased", "Acknowledge", ...]// Show text balloonagent.speak('When all else fails, bind some paper together. My name is Clippy.');// move to the given point, use animation if availableagent.moveTo(100,100);// gesture at a given point (if gesture animation is available)agent.gestureAt(200,200);// stop the current action in the queueagent.stopCurrent();// stop all actions in the queue and go back to idle modeagent.stop();

Special Thanks

About

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

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

[8]ページ先頭

©2009-2025 Movatter.jp