2.0.1 • Published 5 years ago
cryptokred-coin v2.0.1
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
5 years ago
2.0.0
5 years ago
1.14.5
5 years ago
1.14.4
5 years ago
1.14.3
5 years ago
1.14.2
6 years ago
1.14.1
6 years ago
1.14.0
6 years ago
1.13.11
6 years ago
1.13.10
6 years ago
1.13.9
6 years ago
1.13.8
6 years ago
1.13.7
6 years ago
1.13.6
6 years ago
1.13.2
6 years ago
1.13.1
6 years ago
1.13.0
6 years ago
1.12.1
6 years ago
1.12.0
6 years ago
1.11.7
6 years ago
1.11.6
6 years ago
1.11.5
6 years ago
1.11.4
6 years ago
1.11.3
6 years ago
1.11.2
6 years ago
1.11.1
6 years ago
1.11.0
6 years ago
1.10.1
6 years ago