js虚拟键盘插件A-Keyboard

所属分类:输入-丰富的输入

 20260  184  查看评论 (0)
分享到微信朋友圈
X
js虚拟键盘插件A-Keyboard ie兼容12

A-Keyboard

A-Keyboard是一款js虚拟键盘插件。该插件可以在桌面端模拟普通键盘,移动端键盘和数字键盘。并且内置了几种可选用的主题效果。

使用方法

内置主题的CSS文件。

<!-- Default -->
<link rel="stylesheet" href="./css/index.css">
<!-- Classic -->
<link rel="stylesheet" href="./css/index-classic.css">
<!-- Dark -->
<link rel="stylesheet" href="./css/index-dark.css">
<!-- Grass Green -->
<link rel="stylesheet" href="./css/index-grassGreen.css">

普通键盘:

普通键盘

数字键盘:

数字键盘

手机键盘:

手机键盘

初始化插件

通过模块化的方式来使用插件。

<script src="./index.js"></script>
const keyboard = require('./keyboard'),
      numberKeyboard = require('./keyboard.number'),
      mobileKeyboard = require('./keyboard.mobile');
 
window.aKeyboard = {
  keyboard,
  numberKeyboard,
  mobileKeyboard
}

在指定的元素上使用虚拟键盘。

<textarea></textarea>
<div id="main"></div>                  
// keyboard
const keyboard = new aKeyboard.keyboard({
      el: '#main',
      style: {}, // additional styles
      fixedBottomCenter: true
});
 
keyboard.inputOn('#input', 'value');
 
// mobile keyboard
const keyboard = new aKeyboard.mobileKeyboard({
      el: '#main',
      style: {}, // additional styles
      fixedBottomCenter: true
});
 
keyboard.inputOn('#input', 'value');
 
// keypad
const keyboard = new aKeyboard.numberKeyboard({
      el: '#main',
      style: {}, // additional styles
      fixedBottomCenter: true
});
 
keyboard.inputOn('#input', 'value');
相关插件-丰富的输入

jQuery评论写入jquery.cookie.js

一个简单的评论框
  丰富的输入
 34424  372

移动端全屏画板

手机全屏画板,支持多种颜色,绘制完可下载为图片,适合小游戏开发。(例如:画出印象中的你)
  丰富的输入
 41366  345

仿多说留言、评论框,带微博表情。

仿多说留言、评论框,带微博表情。
  丰富的输入
 58545  626

jQuery的在线涂鸦插件wPaint

wPaint.js一个不错的在线实时绘图jQuery插件.提供了能够加载和保存绘制的图像绘制图像。它是基于HTML5的canvas。
  丰富的输入
 42505  350

讨论这个项目(0)回答他人问题或分享插件使用方法奖励jQ币 评论用户自律公约

😃
  • 😀
  • 😉
  • 😥
  • 😵
  • 😫
  • 😘
  • 😡
  • 👍
  • 🌹
  • 👏
  • 🍺
  • 🍉
  • 🌙
  • 💖
  • 💔
😃
  • 😀
  • 😉
  • 😥
  • 😵
  • 😫
  • 😘
  • 😡
  • 👍
  • 🌹
  • 👏
  • 🍺
  • 🍉
  • 🌙
  • 💖
  • 💔
取消回复