
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
11 lines
254 B
JavaScript
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);
|
|
};
|
|
};
|