-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
…lib/clippy.js subrepo: subdir: "lib/clippy.js" merged: "8bfd1f92" upstream: origin: "https://github.com/smore-inc/clippy.js.git" branch: "master" commit: "8bfd1f92" git-subrepo: version: "0.4.3" origin: "https://github.com/ingydotnet/git-subrepo" commit: "2f68596"
- Loading branch information
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
; DO NOT EDIT (unless you know what you are doing) | ||
; | ||
; This subdirectory is a git "subrepo", and this file is maintained by the | ||
; git-subrepo command. See https://github.com/git-commands/git-subrepo#readme | ||
; | ||
[subrepo] | ||
remote = https://github.com/smore-inc/clippy.js.git | ||
branch = master | ||
commit = 8bfd1f92c725c6bc3a435d538a77c3302b327c08 | ||
parent = 0eb254a83023df018b7d405e319da8b5f22d741a | ||
method = merge | ||
cmdver = 0.4.3 |
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
Copyright (c) 2012 Fireplace, Inc | ||
|
||
Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: | ||
|
||
The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. | ||
|
||
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. | ||
|
||
THE ABOVE LICENSE IS FOR THE CODE (JAVASCRIPT AND CSS) IN CLIPPY.JS ONLY. | ||
All Microsoft agents, including agent names, the Clippy brand and all resources are the property of Microsoft and their respective owners. |
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,69 @@ | ||
[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 | ||
<!-- 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. | ||
|
||
```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 :) |
Large diffs are not rendered by default.
Large diffs are not rendered by default.
Large diffs are not rendered by default.
Large diffs are not rendered by default.
Large diffs are not rendered by default.
Large diffs are not rendered by default.
Large diffs are not rendered by default.
Large diffs are not rendered by default.
Large diffs are not rendered by default.
Large diffs are not rendered by default.
Large diffs are not rendered by default.
Large diffs are not rendered by default.
Large diffs are not rendered by default.
Large diffs are not rendered by default.
Large diffs are not rendered by default.
Large diffs are not rendered by default.
Large diffs are not rendered by default.
Large diffs are not rendered by default.
Large diffs are not rendered by default.
Large diffs are not rendered by default.
Large diffs are not rendered by default.
Large diffs are not rendered by default.
Large diffs are not rendered by default.
Large diffs are not rendered by default.
Large diffs are not rendered by default.
Large diffs are not rendered by default.
Large diffs are not rendered by default.
Large diffs are not rendered by default.
Large diffs are not rendered by default.
Large diffs are not rendered by default.
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,62 @@ | ||
.clippy, .clippy-balloon { | ||
position: fixed; | ||
z-index: 1000; | ||
cursor: pointer; | ||
} | ||
|
||
.clippy-balloon { | ||
|
||
background: #FFC; | ||
color: black; | ||
padding: 8px; | ||
border: 1px solid black; | ||
border-radius: 5px; | ||
|
||
} | ||
|
||
.clippy-content { | ||
max-width: 200px; | ||
min-width: 120px; | ||
font-family: "Microsoft Sans", sans-serif; | ||
font-size: 10pt; | ||
} | ||
|
||
.clippy-tip { | ||
width: 10px; | ||
height: 16px; | ||
background: url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABQAAAAgCAMAAAAlvKiEAAAAGXRFWHRTb2Z0d2FyZQBBZG9iZSBJbWFnZVJlYWR5ccllPAAAAAlQTFRF///MAAAA////52QwgAAAAAN0Uk5T//8A18oNQQAAAGxJREFUeNqs0kEOwCAIRFHn3//QTUU6xMyyxii+jQosrTPkyPEM6IN3FtzIRk1U4dFeKWQiH6pRRowMVKEmvronEynkwj0uZJgR22+YLopPSo9P34wJSamLSU7lSIWLJU7NkNomNlhqxUeAAQC+TQLZyEuJBwAAAABJRU5ErkJggg==) no-repeat; | ||
position: absolute; | ||
} | ||
|
||
.clippy-top-left .clippy-tip { | ||
top: 100%; | ||
margin-top: 0px; | ||
left: 100%; | ||
margin-left: -50px; | ||
} | ||
|
||
.clippy-top-right .clippy-tip { | ||
top: 100%; | ||
margin-top: 0px; | ||
left: 0; | ||
margin-left: 50px; | ||
background-position: -10px 0; | ||
|
||
} | ||
|
||
.clippy-bottom-right .clippy-tip { | ||
top: 0; | ||
margin-top: -16px; | ||
left: 0; | ||
margin-left: 50px; | ||
background-position: -10px -16px; | ||
} | ||
|
||
.clippy-bottom-left .clippy-tip { | ||
top: 0; | ||
margin-top: -16px; | ||
left: 100%; | ||
margin-left: -50px; | ||
background-position: 0px -16px; | ||
} | ||
|