我想在我的项目中使用在屏幕上的键盘写在Aurelia平台(WebStorm + Aurelia + Typescript)。为此我们必须使用基于JavaScript/HTML的键盘。 下面的代码是适合我:如何在Aurelia的屏幕键盘上使用?
<html>
<head>
<meta http-equiv="content-type" content="text/html; charset=UTF-8">
<script src="https://code.jquery.com/jquery-git.js"></script>
<script src="//cdnjs.cloudflare.com/ajax/libs/jqueryui/1.12.1/jquery-ui.js"></script>
<link rel="stylesheet" href="//cdnjs.cloudflare.com/ajax/libs/jqueryui/1.12.1/jquery-ui.css">
<link rel="stylesheet" href="https://mottie.github.io/Keyboard/css/keyboard.css">
<script src="https://mottie.github.io/Keyboard/js/jquery.keyboard.js"></script>
<script src="https://mottie.github.io/Keyboard/js/jquery.mousewheel.js"></script>
<script src="https://mottie.github.io/Keyboard/js/jquery.keyboard.extension-typing.js"></script>
<script>
/* VIRTUAL KEYBOARD DEMO - https://github.com/Mottie/Keyboard */
$(function() {
$('#keyboard').keyboard({
layout: 'qwerty'
})
// activate the typing extension
.addTyping({
showTyping: true,
delay: 250
});
});
</script>
</head>
<body>
<div id="wrap">
<input id="keyboard" type="text" />
</div>
</body>
</html>
<body>
<div id="wrap">
<input class="keyboard" type="text" />
<input class="keyboard" type="text" />
<input class="numpad" type="text" />
</div>
</body>
</html>
我不知道我怎么能在这个项目中的代码集成。你可以帮我吗?
这是开放式的。请缩小范围。 – evolutionxbox
我做到了。谢谢。 – Sohrab
对不起,我的意思不是粗鲁。 --- _“我如何将这些代码整合到项目中”_是一个非常开放的问题。一篇文章可以写成如何完成。 IMO不适用于StackOverflow。 – evolutionxbox