A Polymer element for a magic eight ball
Maintained by Josh Renner.
<magic-eight-ball outlook="-1|0|1">
<option outlook="-1|0|1"></option>
</magic-eight-ball>
- Import Web Components' polyfill:
<script src="//cdnjs.cloudflare.com/ajax/libs/polymer/0.1.4/platform.js"></script>
- Import Custom Element:
<link rel="import" href="src/magic-eight-ball.html">
- Start using it!
<magic-eight-ball><magic-eight-ball>
In order to run it locally you'll need a basic server setup.
- Install bower
- Install local dependencies:
$ bower install
Attribute | Options | Default | Description |
---|---|---|---|
outlook |
string | 0 |
1 for optimism, 0 for neutral, -1 for pessimism |