Skip to content

Commit

Permalink
git subrepo clone (merge) https://github.com/smore-inc/clippy.js.git …
Browse files Browse the repository at this point in the history
…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
1j01 committed Nov 18, 2021
1 parent 0eb254a commit 27e986e
Show file tree
Hide file tree
Showing 54 changed files with 2,279 additions and 0 deletions.
12 changes: 12 additions & 0 deletions lib/clippy.js/.gitrepo
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
10 changes: 10 additions & 0 deletions lib/clippy.js/MIT-LICENSE.txt
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.
69 changes: 69 additions & 0 deletions lib/clippy.js/README.md
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 :)
1 change: 1 addition & 0 deletions lib/clippy.js/agents/Bonzi/agent.js

Large diffs are not rendered by default.

Binary file added lib/clippy.js/agents/Bonzi/map.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
1 change: 1 addition & 0 deletions lib/clippy.js/agents/Bonzi/sounds-mp3.js

Large diffs are not rendered by default.

1 change: 1 addition & 0 deletions lib/clippy.js/agents/Bonzi/sounds-ogg.js

Large diffs are not rendered by default.

1 change: 1 addition & 0 deletions lib/clippy.js/agents/Clippy/agent.js

Large diffs are not rendered by default.

Binary file added lib/clippy.js/agents/Clippy/map.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
1 change: 1 addition & 0 deletions lib/clippy.js/agents/Clippy/sounds-mp3.js

Large diffs are not rendered by default.

1 change: 1 addition & 0 deletions lib/clippy.js/agents/Clippy/sounds-ogg.js

Large diffs are not rendered by default.

1 change: 1 addition & 0 deletions lib/clippy.js/agents/F1/agent.js

Large diffs are not rendered by default.

Binary file added lib/clippy.js/agents/F1/map.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
1 change: 1 addition & 0 deletions lib/clippy.js/agents/F1/sounds-mp3.js

Large diffs are not rendered by default.

1 change: 1 addition & 0 deletions lib/clippy.js/agents/F1/sounds-ogg.js

Large diffs are not rendered by default.

1 change: 1 addition & 0 deletions lib/clippy.js/agents/Genie/agent.js

Large diffs are not rendered by default.

Binary file added lib/clippy.js/agents/Genie/map.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
1 change: 1 addition & 0 deletions lib/clippy.js/agents/Genie/sounds-mp3.js

Large diffs are not rendered by default.

1 change: 1 addition & 0 deletions lib/clippy.js/agents/Genie/sounds-ogg.js

Large diffs are not rendered by default.

1 change: 1 addition & 0 deletions lib/clippy.js/agents/Genius/agent.js

Large diffs are not rendered by default.

Binary file added lib/clippy.js/agents/Genius/map.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
1 change: 1 addition & 0 deletions lib/clippy.js/agents/Genius/sounds-mp3.js

Large diffs are not rendered by default.

1 change: 1 addition & 0 deletions lib/clippy.js/agents/Genius/sounds-ogg.js

Large diffs are not rendered by default.

1 change: 1 addition & 0 deletions lib/clippy.js/agents/Links/agent.js

Large diffs are not rendered by default.

Binary file added lib/clippy.js/agents/Links/map.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
1 change: 1 addition & 0 deletions lib/clippy.js/agents/Links/sounds-mp3.js

Large diffs are not rendered by default.

1 change: 1 addition & 0 deletions lib/clippy.js/agents/Links/sounds-ogg.js

Large diffs are not rendered by default.

1 change: 1 addition & 0 deletions lib/clippy.js/agents/Merlin/agent.js

Large diffs are not rendered by default.

Binary file added lib/clippy.js/agents/Merlin/map.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
1 change: 1 addition & 0 deletions lib/clippy.js/agents/Merlin/sounds-mp3.js

Large diffs are not rendered by default.

1 change: 1 addition & 0 deletions lib/clippy.js/agents/Merlin/sounds-ogg.js

Large diffs are not rendered by default.

1 change: 1 addition & 0 deletions lib/clippy.js/agents/Peedy/agent.js

Large diffs are not rendered by default.

Binary file added lib/clippy.js/agents/Peedy/map.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
1 change: 1 addition & 0 deletions lib/clippy.js/agents/Peedy/sounds-mp3.js

Large diffs are not rendered by default.

1 change: 1 addition & 0 deletions lib/clippy.js/agents/Peedy/sounds-ogg.js

Large diffs are not rendered by default.

1 change: 1 addition & 0 deletions lib/clippy.js/agents/Rocky/agent.js

Large diffs are not rendered by default.

Binary file added lib/clippy.js/agents/Rocky/map.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
1 change: 1 addition & 0 deletions lib/clippy.js/agents/Rocky/sounds-mp3.js

Large diffs are not rendered by default.

1 change: 1 addition & 0 deletions lib/clippy.js/agents/Rocky/sounds-ogg.js

Large diffs are not rendered by default.

1 change: 1 addition & 0 deletions lib/clippy.js/agents/Rover/agent.js

Large diffs are not rendered by default.

Binary file added lib/clippy.js/agents/Rover/map.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
1 change: 1 addition & 0 deletions lib/clippy.js/agents/Rover/sounds-mp3.js

Large diffs are not rendered by default.

1 change: 1 addition & 0 deletions lib/clippy.js/agents/Rover/sounds-ogg.js

Large diffs are not rendered by default.

62 changes: 62 additions & 0 deletions lib/clippy.js/build/clippy.css
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;
}

Loading

0 comments on commit 27e986e

Please sign in to comment.