scribble-math/main.js
Emily Eisenberg d2fa50c836 Refactor most of the javascript
Summary: Move MJLite into its own file, make a module. Now includes underscore.

Test Plan: Make sure it still parses stuff.

Reviewers: spicyj

Reviewed By: spicyj

CC: divad12

Differential Revision: http://phabricator.benalpert.com/D32
2013-07-05 20:34:24 -07:00

11 lines
254 B
JavaScript

window.onload = function() {
var input = document.getElementById("input");
var math = document.getElementById("math");
MJLite.process(input.value, math);
input.oninput = function() {
MJLite.process(input.value, math);
};
};