https://github.com/edenreich/chat-jquery-plugin
A nice plugin to use a chat application on your website
https://github.com/edenreich/chat-jquery-plugin
Last synced: 3 months ago
JSON representation
A nice plugin to use a chat application on your website
- Host: GitHub
- URL: https://github.com/edenreich/chat-jquery-plugin
- Owner: edenreich
- Created: 2016-10-21T20:11:33.000Z (almost 9 years ago)
- Default Branch: master
- Last Pushed: 2022-12-12T06:24:53.000Z (almost 3 years ago)
- Last Synced: 2025-01-16T16:43:03.027Z (9 months ago)
- Language: JavaScript
- Homepage:
- Size: 32.2 KB
- Stars: 1
- Watchers: 2
- Forks: 2
- Open Issues: 2
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
#Chat jQuery Plugin
A nice plugin to use a chat application on your website##How To Use
All you need to do is to embed this code between your javascript tags.
```javascript
$.chat({
});
```##Available Options
you can pass your options as json object to the $.chat() plugin.
example:
```javascript
$.chat({
'available_option': 'my_option',
});
```####The URL to the script where you handle the backend get proccess to get the messages from the database like so:
```javascript
getURL: 'getMessages.php',
```####The URL to the script where you handle the backend post proccess to post the message to the database like so:
```javascript
postURL: 'postMessages.php',
```####The background color you wish for your chat like so:
```javascript
background: '#47b403',
```####The welcome message you wish to display as soon as the user clicks on start like so:
```javascript
welcome: 'customer team will contact you as soon as possible.',
```####The generated token you wish your chat to use for security purposes like so:
```javascript
_token: $('[name="csrf_token"]').attr('content'),
```