https://github.com/rohitnairtech/whatsapp-chat-plugin
A plugin to create a floating whatsapp chat plugin that will redirect to whatsapp with optional message option
https://github.com/rohitnairtech/whatsapp-chat-plugin
Last synced: 2 months ago
JSON representation
A plugin to create a floating whatsapp chat plugin that will redirect to whatsapp with optional message option
- Host: GitHub
- URL: https://github.com/rohitnairtech/whatsapp-chat-plugin
- Owner: rohitnairtech
- Created: 2021-02-26T03:11:14.000Z (over 4 years ago)
- Default Branch: main
- Last Pushed: 2021-02-26T03:58:09.000Z (over 4 years ago)
- Last Synced: 2024-10-19T02:15:07.593Z (8 months ago)
- Language: JavaScript
- Size: 3.91 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# whatsapp-chat-plugin
## Script
```//OR
<script src="https://raw.githubusercontent.com/rohitnairtech/whatsapp-chat-plugin/main/app.js">
```## How to use
> Create a <div> with id `wa-floating-chat` - ```<div id="wa-floating-chat"></div>```
> Import the script below the <div>
> Initate the object by passing in the whatsapp phone number and message (optional)
``` <script>createWhatsappChat('+918149712865', 'Hi there!') ```## Example
```
<script>
createWhatsappChat('+918149712865', 'Hi there!')```
More improvements on the way.