Skip to content

iamanishroy/pagelike

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

35 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

PageLike

An opensource Web widget that allows you to quickly and easily add a like button to your very liked website.

Example

Plugin Reference

Simply include the JavaScript <script> tag and CSS <link> tag in the <head> tag to seamlessly integrate this into your website.

Script Tag

<script defer src="https://unpkg.com/[email protected]/dist/js/index.js"></script>

Custom Attributes

Attribute Default Value Description
data-pl-custom true true enables using custom attributes
data-pl-button-location TR TL | TR | BL | BR defines the location of the button
data-pl-z-index 1 Number defines custom z-index for button
data-pl-level path path | host host: every page within that domain will have same counter; path: every page will have a separate counter

Link Tag

<link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/[email protected]/dist/css/styles.css" />

That's all!! You are now ready to start receiving likes on your page.

License

MIT

Contributing

Contributions are always welcome!

Please adhere to this project's code of conduct.

Roadmap

  • Add react plugin
  • Handle view count