First of all, you have to use two script tags one for keyboard another for jquery.
<script src="https://code.jquery.com/jquery-3.5.1.js" ></script>
<script src="https://cdn.progman.in/vkb/keyboard.js" onload="keyboard();"></script>
You have to add id="an_input" in the input
or textarea
tag
<textarea
id="an_input"
onblur="this.focus()"
inputmode="none"
name="input"
rows="12">Type Here
</textarea>
Add a div tag with id="keyboard" where you want to add a keyboard.
<div id="keyboard"></div>
Thats all you have to do. Now you can test it by running on the browser.
This is the full code of a page.
<html>
<head>
<title>Keybard | Abdhesh Nayak</title>
<script src="https://code.jquery.com/jquery-3.5.1.js"></script>
<script src="https://cdn.progman.in/vkb/keyboard.js" onload="keyboard();"></script>
<style>
#an_input{
margin: 0 auto;
width: 22em;
display: block;
background-color: #eeeeee;
border: none;
padding: 1em;
font-size: 1.2em;
}
</style>
</head>
<body>
<!-- Your textarea -->
<textarea id="an_input" onblur="this.focus()" inputmode="none" name="unicodebox" rows="12" cols="50">Type Here</textarea>
<!-- add this tag where you want keyboard-->
<div id="keyboard"></div>
</body>
</html>