js虚拟键盘插件A-Keyboard

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

 21372  185  查看评论 (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仿牛客网的在线测评考试

实现在线模拟测评,仿照的是牛客网的测评页面
  丰富的输入
 43033  437

jQuery电子签名

很多APP中用到的签署协议后或消费后需使用者签字后保存图片
  丰富的输入
 45136  413

jQuery移动端车牌号码输入

jQuery移动端车牌号码输入支持新熊源车号
  丰富的输入
 20157  209

移动端canvas实现涂鸦效果

实现涂鸦基本功能、更改笔触大小颜色、更改背景图、橡皮檫、历史记录、清屏和保存功能。
  丰富的输入
 26821  335

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

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