Permalink
Browse files

webapp to help generate the event codes

  • Loading branch information...
1 parent 33c3da8 commit 2faab1aa858aa4754cf88493a8e97a23d3145281 @substack committed Mar 31, 2011
Showing with 30 additions and 0 deletions.
  1. 0 { → generate}/scrape.js
  2. +12 −0 generate/web.js
  3. +13 −0 generate/web/index.html
  4. +5 −0 generate/web/main.js
File renamed without changes.
View
@@ -0,0 +1,12 @@
+// mash all the keys with this webapp
+var express = require('express');
+var app = express.createServer();
+
+app.use(express.static(__dirname + '/web'));
+
+app.use(require('browserify')({
+ entry : __dirname + '/web/main.js',
+ require : [ 'jquery-browserify' ],
+}));
+
+app.listen(8080);
View
@@ -0,0 +1,13 @@
+<html>
+<head>
+ <script type="text/javascript" src="/browserify.js"></script>
+ <style type="text/css">
+ #codes {
+ font-size: 48pt;
+ }
+ </style>
+</head>
+<body>
+ <div id="codes"></div>
+</body>
+</html>
View
@@ -0,0 +1,5 @@
+var $ = require('jquery-browserify');
+
+$(window).keydown(function (ev) {
+ $('#codes').text(ev.which);
+});

0 comments on commit 2faab1a

Please sign in to comment.