DIYgod mirror: OωO
Go to file
DIYgod ddd7a30be1
Merge pull request #4 from knewzen/master
remove codesponsor
2018-01-05 11:45:07 +08:00
demo add emoticon 2016-05-03 01:23:18 +08:00
dist fix line height 2016-04-16 05:11:36 +08:00
src fix line height 2016-04-16 05:11:36 +08:00
.gitignore first commit, unfinished 2016-04-11 09:36:36 +08:00
README.md remove codesponsor 2018-01-05 00:29:02 +08:00
gulpfile.js first commit, unfinished 2016-04-11 09:36:36 +08:00
package.json update npm version 2016-04-16 05:12:54 +08:00

README.md

OωO

npm npm devDependency Status npm %e2%9d%a4

Lovely Emoticon and Emoji Keyboard for textarea or input

Introduction

Demo

Screenshot

OwO

Install

$ npm install owo --save

Usage

HTML

<link rel="stylesheet" href="OwO.min.css">
<!-- ... -->
<div class="OwO"></div>
<!-- ... -->
<script src="OwO.min.js"></script>

JS

var OwO_demo = new OwO({
    logo: 'OωO表情',
    container: document.getElementsByClassName('OwO')[0],
    target: document.getElementsByClassName('OwO-textarea')[0],
    api: './OwO.json',
    position: 'down',
    width: '100%',
    maxHeight: '250px'
});

Options

{
    logo: 'OωO表情',                                               // OwO button text, default: `OωO表情`
    container: document.getElementsByClassName('OwO')[0],         // OwO container, default: `document.getElementsByClassName('OwO')[0]`
    target: document.getElementsByClassName('OwO-textarea')[0],   // OwO target input or textarea, default: `document.getElementsByTagName('textarea')[0]`
    api: './OwO.json',                                            // OwO Emoticon data api, default: `https://api.anotherhome.net/OwO/OwO.json`
    position: 'down',                                             // OwO body position, default: `down`
    width: '100%',                                                // OwO body width, default: `100%`
    maxHeight: '250px'                                            // OwO body max-height, default: `250px`
}

Work with module bundler

var OwO = require('owo');
var OwO_demo = new OwO({
    // ...
});

Data API

Provide emoticon data for OwO.

Example

Run in development

$ npm install
$ npm run dev

Make a release

$ npm install
$ npm run build

LICENSE

MIT © DIYgod