GithubHelp home page GithubHelp logo

alphadevhq / virtualkeyboard Goto Github PK

View Code? Open in Web Editor NEW
2.0 2.0 0.0 173 KB

A quick way to a virtual keyboard in your website.

Home Page: https://abdheshnayak.github.io/virtualKeyboard/

HTML 100.00%

virtualkeyboard's Introduction

Virtual Keyboard with html, css, js(jquery)

Live Test

snap

Steps to implement in your website

Step 1

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>

Step 2

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>

Step 3

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.

Full page code

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>

virtualkeyboard's People

Contributors

abdheshnayak avatar

Stargazers

Nikolaos Dionelis avatar Programmer's Manual avatar

Watchers

James Cloos avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.