Skip to content

A JavaScript library to quickly and easily add a customizable chat-box to your web applications.

Notifications You must be signed in to change notification settings

sarahhjchung/chattyjs

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 

Repository files navigation

Chatty.js

Getting Started

Follow this quick tutorial to get started with Chatty.js!

Installation

To install Chatty.js, download this zip folder. Extract all files and insert the extracted folder into the same level as all your html files.

Integration

Chatty.js can be integrated with plain JavaScript. The following code shows what scripts you must add to your html files that use Chatty.js:

<script defer src="https://ajax.googleapis.com/ajax/libs/jquery/3.5.1/jquery.min.js"></script>
<script defer type="text/javascript" src='chatty/js/Chatty.js'></script>
<link rel="stylesheet" type="text/css" href="chatty/chatty.css">

You must also include a script tag where src is the path to the JavaScript file that calls the Chatty.js functions. It should look something similar to:

<script defer type="text/javascript" src='fileName.js'></script>

Usage

Chatty.js is a JavaScript library to let you quickly set up a simple chatbox for your web application. Here is a short code snippet that your JavaScript file should contain something similar to when you set up your chatbox for the first time:

// These commands will generate a chatbox onto your webpage.
const cb = new Chatbox("#E07A5F", "light")
cb.makeChatbox()

Go to Examples to learn about all the different functionalities you can add to your chatbox!

About

A JavaScript library to quickly and easily add a customizable chat-box to your web applications.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published