@likecoin/likecoin-button
v0.0.3
Published
LikeCoin button SDK
Downloads
2
Readme
LikeCoin button SDK
This is a script for embeding LikeCoin button into webpages.
What is LikeCoin button?
For introduction ot LikeCoin button, please refer to user guide here.
Usage
- Add the following
div
tag into the webpage at the position for embedding LikeCoin button:
<div class="likecoin-embed likecoin-button" data-liker-id="{YOUR_LIKECOIN_ID}" data-href="YOUR_WEBPAGE_URL"></div>
Here, data-liker-id
is required and refers to your LikeCoin ID, where data-href
is optional and refers to your page's canonical URL. If omitted, the SDK will use the current URL of the browser.
- Add the following
script
tag at the end of thebody
tag:
<script src="sdk.js"></script>
See dist/index.html
as an example.
Build
npm install
npm run build
Reference
Please refer to our developer guide.