Skip to content

A simple implementation of a WhatsApp sharing button

License

Notifications You must be signed in to change notification settings

agouil/wa-share

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

10 Commits
 
 
 
 
 
 
 
 

Repository files navigation

wa-share

A simple implementation of WhatsApp sharing button. The code creates an image button. It can be configured to create button (w/o an image) or label instead.

Installation

  • Copy the src/js directory to your website static files directory.
  • Add this to the <head> element of the page:
<script type="text/javascript" src="js/wa-share.js"></script>
  • Add this inside the <body> element of the page:
<div id="<element-id>"></div>
<script type="text/javascript">
    WABTN.share({
        id: "<element-id>",
        text: "<text-to-share>",
        size: "<sm | md | lg>"
    });
</script>

Issues

To submit any issues, raise an issue through the Issues Page

License

MIT

About

A simple implementation of a WhatsApp sharing button

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages