Skip to content

Instantly share code, notes, and snippets.

@hadleyrich
hadleyrich / keyboard.html
Created February 29, 2012 08:14
A basic Javascript keyboard I hacked together as a PoC a while back.
<html>
<head>
<title>Keyboard</title>
<script type="text/javascript" src="http://code.jquery.com/jquery-1.7.1.min.js"></script>
<script type="text/javascript">
var re = /^[a-zA-Z]$/;
var current_case = 'lower';
var upper_keys = {
'1': '!', '2': '@', '3': '#',
'4': '$', '5': '%', '6': '^',