Skip to content

rohitnairtech/whatsapp-chat-plugin

Repository files navigation

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.

About

A plugin to create a floating whatsapp chat plugin that will redirect to whatsapp with optional message option

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published