Get started with jwerty CDN

MIT licensed

Jwerty: randomized QWERTY keyboard layout.

Tags:
  • key
  • dom
  • keyup
  • KeyboardEvent
  • addEventListener
  • jQuery
  • Zepto
  • browser
  • ender

Stable version

Copied!

How to start using jwerty CDN


<!DOCTYPE html>
<html>
<head>
    <title>Get started with jwerty CDN - cdnhub.io</title>
    <script src="https://cdn.cdnhub.io/jwerty/0.3.2/jwerty.min.js"></script>
    <style>
        #keyboard { width: 300px; height: 200px; border: 1px solid gray; }
    </style>
</head>
<body>
    <div id="keyboard"></div>
    <script>
        const keyboard = new Keyboard({
            target: document.getElementById('keyboard'),
            layout: 'qwerty'
        });

        keyboard.onPress(function(event) {
            console.log('Key pressed:', event.key);
        });

        keyboard.render();
    </script>
</body>
</html>
Copied!
Copied!
Copied!
Copied!
Copied!
Copied!

All versions