This is a script for embeding LikeCoin button into webpages.
For introduction ot LikeCoin button, please refer to user guide here.
- 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.
npm install
npm run build
Please refer to our developer guide.