JavaScript
// jQuery Bootstrap Touch Keyboard plugin
// By Matthew Dawkins
(function($) {
$.fn.keyboard = function(options) {
// Settings
var settings = $.extend({
keyboardLayout: [
[
["1", "1"],
["2", "2"],
["3", "3"],
["4", "4"],
["5", "5"],
["6", "6"],
["7", "7"],
["8", "8"],
["9", "9"],
["0", "0"],
["del", "del"]
],
[
["q", "Q"],
["w", "W"],
["e", "E"],
["r", "R"],
["t", "T"],
["y", "Y"],
["u", "U"],
["i", "I"],
["o", "O"],
["p", "P"],
["-", "="],
["_", "+"]
],
[
["a", "A"],
["s", "S"],
["d", "D"],
["f", "F"],
["g", "G"],
["h", "H"],
["j", "J"],
["k", "K"],
["l", "L"],
["'", ":"],
["@", ";"],
["#", "~"]
],
[
["z", "Z"],
["x", "X"],
["c", "C"],
["v", "V"],
["b", "B"],
["n", "N"],
["m", "M"],
[",", ","],
[".", "."],
["?", "!"]
],
[
["shift", "shift"],
["space", "space"],
["shift", "shift"]
]
],
numpadLayout: [
[
["7"],
["8"],
["9"]
],
[
["4"],
["5"],
["6"]
],
[
["1"],
["2"],
["3"]
],
[
["del"],
["0"],
["."]
]
],
telLayout: [
[
["1"],
["2"],
["3"]
],
[
["4"],
["5"],
["6"]
],
[
["7"],
["8"],
["9"]
],
[
["del"],
["0"],
["."]
]
],
wideNumpadLayout: [
[
["0"],
["1"],
["2"],
["3"],
["4"],
["5"],
["6"],
["7"],
["8"],
["9"],
["del"],
["."]
]
],
layout: false,
type: false,
btnTpl: '<button type="button" tabindex="-1">',
btnClasses: 'btn btn-default',
btnActiveClasses: 'active btn-primary',
initCaps: false,
placement: 'bottom',
container:'body',
trigger: 'manual'
}, options);
if (!settings.layout)...