Permalink
Browse files

adding ctrl-n for new row, remove webkit forcus ring

  • Loading branch information...
1 parent 93f6a5e commit d31dd1d8bcb78d702489f59d5b9b9b8786d14279 @alexkingorg committed Jan 29, 2011
Showing with 18 additions and 1 deletion.
  1. +18 −1 index.php
View
@@ -47,6 +47,7 @@
border: 0;
border-bottom: 3px solid #ddd;
font-size: 20px;
+ outline: none;
}
.equation .math {
width: 60%;
@@ -198,16 +199,32 @@
i++;
});
});
+ $('body').keydown(function(e) {
+ if (e.ctrlKey && e.keyCode == 78) {
+ $('.new-eq').click();
+ keyUp = false;
+ }
+ });
});
</script>
<!--
Copyright 2011 Alex King, All rights reserved.
+FEATURES:
+
+- strips non numeric garbage when evaluating (you can leave $ and , in your numbers)
+- enter from expression side takes you to result side and selects result for easy copying
+- enter again will give you a new row
+- ctrl+n at any time will give you a new row
+- enter the result of one of the previous 10 rows (numbered) by using ctrl+(1-9)
+- numbers reset on every new row so that referencing the previous row is always 1, the second back is always 2, etc.
+- delete the current row with cmd+delete
+
TODO:
-- ctrl n for new row
+- position credits
- clear button?
- html storage to save page locally
- allow re-ordering of rows?

0 comments on commit d31dd1d

Please sign in to comment.