v1.0.11.1 Main changes:
- README improvements.
whatsappButton.js is a plugin made with javascript that creates a interactive button for your web aplications. It is easy-to-use, customizable and resilient.
Try it out at: https://alvesalexsander.github.io/whatsappButton/
Install via NPM! running command: npm install whatsapp-button.js
OR
CDN Links:
CSS styles: https://unpkg.com/whatsapp-button.js/dist/wpp_css/whatsappButton.min.css
JS file: https://unpkg.com/whatsapp-button.js/dist/wpp_js/whatsappButton.min.js
# How To Use:
- 1. Install via NPM! using 'npm install whatsapp-button.js' (recommended).
OR
Download plugin files at: whatsappButton.js page and put it inside your node_modules folder (path must to be node_modules/whatsapp-button.js).
-
2. Link the .CSS file or CDN .CSS URL with a link element in the head tag of your application.
-
3. Link the .JS file or CDN .JS URL with a script element in the head or body tags of your application.
-
4. Use the User Interface at https://alvesalexsander.github.io/whatsappButton/ to create your button layout
OR
check the documentation page for further information.
- 5. At the end of the creation process, the UI will present you an javascript code like this one:
new WhatsappButton('5522123456789', 'Could we help you?', 'We are at your service! Want help at choosing a wine? Any other thing we could help?', 'netWinez, can we help?', '1', '#6f2045', '#000000', '', 'https://fonts.googleapis.com/css?family=Satisfy&display=swap')
Then, you can call the code shown on any .js file or in a script element to create your button.
*Compatible with Google Chrome, Mozilla Firefox, Microsoft Edge and the most modern browsers.