1.1.5 • Published 6 years ago

maltoses v1.1.5

Weekly downloads
1
License
MIT
Repository
github
Last release
6 years ago

Maltose

NPM version NPM downloads CircleCI

A cute emoticon and emoji keyboard for textarea and input.

Inspired by the lovely OwO maded by DIYgod.

More features:

Generate random emoticon or emoji or image 💃

Support markdown syntax to display the cute images.

Introduction

Demo

Preview

Screenshot

Install

$ yarn add maltoses --save

Usage

Work with the single JavaScript file and the css file.

HTML

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

JS

const maltose_demo = new maltose()

Work with module bundler

import maltose from 'maltoses'
import 'maltoses/dist/maltose.min.css'

const maltose_demo = new maltose()

Options

wrap



Type: string Default: document.getElementsByClassName('maltose')[0]

The main tag which contains emoji and emoticon.

The default tag is the first element which classname contains maltose.

target



Type: string Default: document.getElementsByTagName('textarea')[0]

The input or textarea tag which display the emoji or emoticon when you click it.

The default tag is the first textarea tag in DOM.

width



Type: string Default: 100%

The width of the panel.

The default width is 100%.

maxHeight



Type: string Default: 200px

The max-height of the panel.

The default max-height is 200px.

api



Type: string Default: https://luyilin.github.io/Maltose/demo/maltose.json

Request the json file to get emoji and emoticon.

Run
 maltose 
locally


$ yarn install



$ gulp

1.1.5

6 years ago

1.1.4

6 years ago

1.1.3

6 years ago

1.1.2

6 years ago

1.1.1

6 years ago

1.1.0

6 years ago

1.0.9

6 years ago

1.0.8

6 years ago

1.0.7

6 years ago

1.0.6

6 years ago

1.0.5

6 years ago

1.0.4

6 years ago

1.0.3

6 years ago

1.0.2

6 years ago

1.0.1

6 years ago

1.0.0

6 years ago

0.0.8

7 years ago

0.0.7

7 years ago

0.0.6

7 years ago

0.0.5

7 years ago

0.0.4

7 years ago

0.0.3

7 years ago

0.0.2

7 years ago

0.0.1

7 years ago