Skip to content

Latest commit

 

History

History
29 lines (21 loc) · 757 Bytes

README.md

File metadata and controls

29 lines (21 loc) · 757 Bytes

whatsapp-chat-plugin

Script

<script src="./whatsapp-chat-plugin/app.js">
//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!')</script> ```

Example

<div id="wa-floating-chat"></div>

<script src="https://raw.githubusercontent.com/rohitnairtech/whatsapp-chat-plugin/main/app.js">

<script>
	createWhatsappChat('+918149712865', 'Hi there!')
</script>

More improvements on the way.