2.0.1 • Published 7 years ago

cryptokred-coin v2.0.1

Weekly downloads
-
License
UNLICENSED
Repository
-
Last release
7 years ago

Coin

A JavaScript widget to handle rendering a CryptoKred coin.

Installation

You can install into your project using npm:

    npm i cryptokred-coin

Usage

    // pull in CSS
    require('cryptokred-coin/src/coin.css');

    // pull in module
    var Coin = require('cryptokred-coin');

    var coin = new Coin({
        // required - root element for the coin
        container: document.getElementById('coin'),

        // one of image or video (not both) is required - url of the image or video in the circle
        image: 'assets/example.jpg',
        video: 'assets/example.mp4',

        // optional - width of the coin
        width: 500,

        // optional - text for upper and lower part of coin
        upperText: 'Coin Title',
        lowerText: '1Kred - 2',

        // optional - default is Gold
        color: 'blue',

        // optional - base URL for finding patterns (see images/patterns/*)
        patternBase: 'assets/images/patterns/',

        // optional - pattern file name (excluding .svg extension) to use for coin
        pattern: 'jigsaw',

        // optional - color to use for the coin pattern
        patternColor: 'green'
    });
2.0.1

7 years ago

2.0.0

7 years ago

1.14.5

7 years ago

1.14.4

7 years ago

1.14.3

7 years ago

1.14.2

7 years ago

1.14.1

7 years ago

1.14.0

7 years ago

1.13.11

7 years ago

1.13.10

7 years ago

1.13.9

7 years ago

1.13.8

7 years ago

1.13.7

7 years ago

1.13.6

7 years ago

1.13.2

7 years ago

1.13.1

7 years ago

1.13.0

7 years ago

1.12.1

7 years ago

1.12.0

7 years ago

1.11.7

7 years ago

1.11.6

7 years ago

1.11.5

7 years ago

1.11.4

7 years ago

1.11.3

7 years ago

1.11.2

7 years ago

1.11.1

7 years ago

1.11.0

7 years ago

1.10.1

7 years ago