guibot | API
Version | |
---|---|
Chrome | 33+ |
Chrome for Android | 59+ |
Firefox | 29+ |
Firefox for Android | 54+ |
Opera | 20+ |
Opera Mobile | 37+ |
Opera Mini | No |
Safari | 7.1+ |
iOS Safari | 8+ |
Internet Explorer | No |
IE Edge | 13+ |
IE Mobile | No |
Android Browser | 4.4.4+ |
Blackberry Browser | No |
UC Browser for Android | 11.4+ |
Samsung Internet | 4+ |
QQ Browser | 1.2+ |
Baidu Browser | 7.12 |
Include the files in your index.html
:
<link rel="stylesheet" href="guibot.css" />
<script src="guibot.min.js"></script>
var myChat = new guibot.Chat({
name: 'myChat',
users: [
{
name: 'Robot'
}, {
name: 'Me',
isLocal: true
}
]
});
myChat.say({
message: 'Hi! I\'m a message from local user',
userId: myChat.getLocalUser().id
});
Install dependencies, build the source files and preview
git clone https://github.com/Naimikan/guibot.git
npm install
grunt && grunt preview