Giter Site home page Giter Site logo

klava's Introduction

Klãva

This jquery plugin is a tool that lets you type in your chosen keyboard layout even if the layout is not installed on your computer. Also you can simulate key presses using your mouse.

To use Klãva, include the following into the head of your document:

<link rel="stylesheet" href="klava.css" type="text/css" />
<script src="https://ajax.googleapis.com/ajax/libs/jquery/1.9.0/jquery.min.js"></script>
<script src="jquery.klava.js"></script>
<script>
$(document).ready(function() {
    var options = {
        layouts: [
            "layouts/kbd-us.js",
            "layouts/kbd-baltic.js",
            "layouts/kbd-rusphon.js",
            "layouts/kbd-de.js"
        ]
    };
    $('textarea').klava(options);
});
</script>

These are available options:

Option Description Default value
expanded Boolean determining if the visual keyboard is expanded false
str_keyboard_layout The title for the selection of the layouts "Keyboard layout"
layouts List of paths to keyboard layout definitions
[
    "layouts/kbd-us.js",
    "layouts/kbd-baltic.js",
    "layouts/kbd-rusphon.js",
    "layouts/kbd-de.js"
]

The tool is supported for the following browsers (but might also work on the older versions):

  • Chrome 24+
  • Firefox 18+
  • Safari 6+
  • Internet Explorer 9+
  • Opera 12+

Demo: https://aidas.bendoraitis.lt/archive/tools/klava_v2.0/

klava's People

Contributors

archatas avatar

Stargazers

 avatar

Watchers

 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.