0.1.0 • Published 6 years ago

js-clippy v0.1.0

Weekly downloads
30
License
-
Repository
github
Last release
6 years ago

JsClippy

This is an angular component that adds clippy or one of his friends to the site. To install run the command

npm install js-clippy

To enable clippy you first need to import the JsClippyModule .

@NgModule({
  declarations: [
  ],
  imports: [
    JsClippyModule
  ]
})
export class AppModule { }

Next add the service to a component. By default clippy is hidden and the show method makes him appear. The other two methods to know are hide and speak.

export class AppComponent {
  title = 'app';
  constructor(private clippy: ClippyService) {
    this.clippy.create("Clippy");
  }
  public show (): void {
    this.clippy.show(true);
  }
  public talk (): void {
    this.clippy.speak("hello world",true);
  }
  public remove (): void {
    this.clippy.hide(true,null);
  }
}

The create method takes a string parameter, by setting it you get a different character. The available characters are: Bonzi Clippy F1 Genie Genius Links Merlin Peedy Rocky Rover

0.1.0

6 years ago

0.0.8

6 years ago

0.0.7

6 years ago

0.0.6

6 years ago

0.0.5

6 years ago

0.0.4

6 years ago

0.0.3

6 years ago

0.0.2

6 years ago

0.0.1

6 years ago