@likecoin/likecoin-button

0.0.3 • Public • Published

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

  1. 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.

  1. Add the following script tag at the end of the body tag:

<script src="sdk.js"></script>

See dist/index.html as an example.

Build

  1. npm install
  2. npm run build

Reference

Please refer to our developer guide.

Readme

Keywords

none

Package Sidebar

Install

npm i @likecoin/likecoin-button

Weekly Downloads

0

Version

0.0.3

License

GPL-3.0-or-later

Unpacked Size

11.9 kB

Total Files

10

Last publish

Collaborators

  • aurora22
  • nwingt
  • williamchong007