Skip to content

joshrenner/magic-eight-ball

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

19 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

<magic-eight-ball>

A Polymer element for a magic eight ball

Maintained by Josh Renner.

Demo

Check it live.

<magic-eight-ball outlook="-1|0|1">
	<option outlook="-1|0|1"></option>
</magic-eight-ball>

Usage

  1. Import Web Components' polyfill:
<script src="//cdnjs.cloudflare.com/ajax/libs/polymer/0.1.4/platform.js"></script>
  1. Import Custom Element:
<link rel="import" href="src/magic-eight-ball.html">
  1. Start using it!
<magic-eight-ball><magic-eight-ball>

Setup

In order to run it locally you'll need a basic server setup.

  1. Install bower
  2. Install local dependencies:
$ bower install

Options

Attribute Options Default Description
outlook string 0 1 for optimism, 0 for neutral, -1 for pessimism

License

MIT License

About

Custom element for displaying a magic eight ball

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published