Files
KaTeX/test/huxley/test.html
Emily Eisenberg 204270fa0d Somehow manage to fix the sizing bugs
Summary:
Remove a single `vertical-align: top`, and somewhow it now works. May
the gods of CSS have mercy on us. Also added some tests.

Test Plan:
 - See that the huxley tests don't have any changes
 - See that the new huxley screenshots look reasonable
 - Run the normal tests and see that they work

Reviewers: alpert

Reviewed By: alpert

Differential Revision: http://phabricator.khanacademy.org/D7494
2014-03-20 21:36:37 -04:00

33 lines
1.0 KiB
HTML

<!doctype html>
<html>
<head>
<title>Huxley test</title>
<script src="/katex.js" type="text/javascript"></script>
<link href="/fonts/fonts.css" rel="stylesheet" type="text/css">
<link href="/katex.less.css" rel="stylesheet" type="text/css">
<style type="text/css">
#math, #pre, #post {
font-size: 4em;
}
</style>
</head>
<body>
<span id="pre"></span>
<span id="math"></span>
<span id="post"></span>
<script type="text/javascript">
var query = {};
var queryVars = window.location.search.slice(1).split("&");
console.log(queryVars);
for (var i = 0; i < queryVars.length; i++) {
var split = queryVars[i].split("=");
query[split[0]] = decodeURIComponent(split[1]);
}
var mathNode = document.getElementById("math");
katex.process(query["m"], mathNode);
document.getElementById("pre").innerHTML = query["pre"] || "";
document.getElementById("post").innerHTML = query["post"] || "";
</script>
</body>
</html>